Okay, boys and girls. Santa's got presents for you. With this patch, MIDI scripting is a go on Linux with ALSA. (To support other platforms, all that needs to happen is MidiObject's sendShortMsg() and sendSysexMsg() virtual functions need to be overridden in MidiObject<platform>.cpp/.h. Everything else should work as-is cross-platform.)
I've already set up MidiScriptEngine to support loading multiple script files, so have moved the Hercules stuff into its own file (attached.) The main midi-mappings-scripts.js file is now blank with just a comment. Note that any script files must end with a blank line (carriage return at the end of the last line) or you will get errors on load. To adjust which files get loaded, edit midiobject.cpp, around line 50. (You can keep doing m_pScriptEngine->loadScript(filepath); to bring in another script file. Use m_pScriptEngine->clearCode(); to wipe out all the data and start fresh.) Nearly all of the changes to dlgprefmidibindings.cpp are whitespace only (changed all tabs to 4 spaces) but there are some key functional ones, specifically around lines 103-106, and 135-136. There are also a few whitespace fixes in midiobject.cpp but most of the changes are functional. Let me know if you need any clarification. Merry Christmas! Next up: full SCS.3d support. Sincerely, Sean M. Pappalardo "D.J. Pegasus" <<--------------------------------------------------------------------------------->> This E-Mail message has been scanned for viruses and cleared by >>SmartMail<< from Smarter Technology, Inc. <<--------------------------------------------------------------------------------->>
Hercules-MK2-scripts.js
Description: application/javascript
FinalMIDIScriptingPatch.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________ Mixxx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mixxx-devel
