Changes

Extras script

251 bytes added, 09:14, 27 January 2018
/* Internal API */
* <tt>boxofstops.add_device_channel(device_name,channel)</tt> - register a new input device and channel to play to a [[Bank]] in Box Of Stops.<br/>The Bank will see this as new Midi input, but the point of the Extras script is to simulate a Midi input, while generating notes and events from an alternative source.
* <tt>boxofstops.midi_in_event(device_name,msg)</tt> - inject a note (or other MIDI event) into the Box Of Stops playing engine.<br/>This note_on/note_off will be played on the appropriate [[Bank]] for the <tt>device_name</tt> and the <tt>channel</tt> in the message.<br/>The <tt>msg</tt> is a <googa>https://mido.readthedocs.io/en/latest/messages.html|MIDO Message</googa>. Again please see the <googa>https://github.com/boxofstops/boxofstops-examples|examples code</googa> for an example examples of this being used. boxofstops.midi_in_event('''device_name''',mido.Message(''''note_on'''', note='''60''', channel='''0''', velocity='''80''')) boxofstops.midi_in_event('''device_name''',mido.Message(''''note_off'''', note='''60''', channel='''0''', velocity='''80'''))
== Debugging ==
437
edits