Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 9 of 9

Thread: Create Custom Objects in Audio System Design Tool?

  1. #1
    Senior Member
    Join Date
    Feb 2017
    Posts
    217

    Create Custom Objects in Audio System Design Tool?

    Hi, wondering if it’s possible (and straight forward) to add “shapes” to the online Audio System Design Tool to represent custom Audio Library classes I’ve created. Looks like you’d have to define number of inputs, number of outputs, name of the class, base name of the instances.

    I know nothing about the platform on which this tool is build, so please forgive if this is a naïve question.

  2. #2

  3. #3
    Senior Member
    Join Date
    Feb 2017
    Posts
    217
    Thanks Paul, I've used that as a guide for creating my own Audio Library classes. But, I was asking how include these classes in the online graphical design tool. I don't see anything at that page about custom "shapes" or creating a local version of the design tool with my own shapes.

  4. #4
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,006
    Quote Originally Posted by gfvalvo View Post
    Thanks Paul, I've used that as a guide for creating my own Audio Library classes. But, I was asking how include these classes in the online graphical design tool. I don't see anything at that page about custom "shapes" or creating a local version of the design tool with my own shapes.
    Editing "\hardware\teensy\avr\libraries\Audio\gui\index.ht ml" allows you to modify the gui, if that is what you want

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,038
    Also check out page 9 of the tutorial, regarding running the web design tool locally

    https://www.pjrc.com/store/audio_tutorial_kit.html

  6. #6
    Senior Member
    Join Date
    Nov 2012
    Posts
    998
    If you edit hardware\teensy\avr\libraries\audio\gui\index.html and look, for example, for "AudioMixer4" you can see how that particular object is added to the design tool. It occurs in three places.
    As you'll see, you can control the number of inputs and outputs but I don't think it allows you to make different shapes other than the rectangle.

    Pete

  7. #7
    Senior Member
    Join Date
    Feb 2017
    Posts
    217
    Quote Originally Posted by el_supremo View Post
    If you edit hardware\teensy\avr\libraries\audio\gui\index.html
    Thanks. I see the concept. But, way too tedious and error-prone with a text editor. I'd image that there's some tool or app that generates this file from a human-readable format?

  8. #8
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,038
    Nope, I just copy and paste the 2 sections for one of the existing objects and then edit the fields in the JSON and the html in the description. Really, not that hard.

  9. #9
    Senior Member
    Join Date
    Feb 2017
    Posts
    217
    Made a dumb copy / paste error. Got it now. Thanks all.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •