Changes

Extras script

335 bytes added, 18:24, 14 January 2018
* <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 of this being used.
 
== Debugging ==
 
Note that any output from the Extras script is automatically sent to the [[Logging output]].
* If no script is found, the logging output shows: <tt><<< Not loading extras.py</tt>
* If the script is found, typically the logging output shows any print statement at the top of the script. E.g. : <tt><<< In extras</tt>
437
edits