Garth Dahlstrom wrote: > Basically start with what is on the wiki right now. Calling the > script library midi-mapping-scripts.js or something descriptive (.js > so editors do highlighting correctly). > > Put all functions for all controllers in that file (initially there > shouldn't be much there).
We'll need this in any case (this is the common.script[.js] Albert was referring to) so I'll try to start on this. > In phase 2 implement an optional script block within each controller > xml file (change option type to script-binding) and fetch script from > there and the midi-mapping-scripts.js. Apart from the paranoia I > share with Albert about scripts living inside XML getting mangled and > so on, there are other wrinkles to consider like namespace of > functions across controllers (someday we'll probably want to support > multiple controller set-ups), and no doubt other things... What about <include> tags in the XML with separate script files? This way you could have a set of functions that applied to a group of controllers (so you wouldn't have to recopy them,) then have device-specific ones. <include>SCSCommon.midi.js</include> <!-- SYSEX messages and such --> <include>SCS.3d.midi.js</include> <!-- Specifics --> Or is the idea to have completely self-contained device files? Sean <<--------------------------------------------------------------------------------->> This E-Mail message has been scanned for viruses and cleared by >>SmartMail<< from Smarter Technology, Inc. <<--------------------------------------------------------------------------------->> ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Mixxx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mixxx-devel
