top

MIDIDEVICE

This class defines constants that are related with MIDI and functions that can get MIDI device data, send a message from DTV to MIDI device for implementing MIDI controller, etc.

Add the following line for MIDIDevice class into a html file your own :

  script type="text/javascript" src="$MANAGER_WIDGET/Common/webapi/1.0/webapis.js">/script>

You can declare MIDIDevice class like this :

  ex) var mididevice = webapis.mididevice;


Contents

Constants

NameValueDescription
MIDI_STREAM_STATUS_FAIL0Call failed.
MIDI_STREAM_STATUS_SUCCESS1
Call succeeded.
MIDI_STREAM_STATUS_BUSY2Stream presently active or busy.
MIDI_CC_ALL_NOTE_OFF123turns off all currently active notes
MIDI_CC_BALANCE_LSB40balance value LSB. Value ranges between 0 to 127
MIDI_CC_BALANCE_MSB8balance value MSB. Value ranges between 0 to 127
MIDI_CC_BANK_SELECT_LSB32bank select LSB. Value ranges between 0 to 127
MIDI_CC_BANK_SELECT_MSB0bank select MSB. Selects bank between 0 to 127
MIDI_CC_BREATH_CONTROLLER_LSB34breath controller LSB value. Value ranges between 0 to 127
MIDI_CC_BREATH_CONTROLLER_MSB2breath controller MSB value. Value ranges between 0 to 127
MIDI_CC_CELESTE_DEPTH94celeste depth. Value ranges between 0 to 127
MIDI_CC_CHANNEL_VOLUME_LSB39volume level LSB. Value ranges between 0 to 127
MIDI_CC_CHANNEL_VOLUME_MSB7volume level MSB. Value ranges between 0 to 127
MIDI_CC_CHORUS_DEPTH93chorus depth. Value ranges between 0 to 127
MIDI_CC_EXPRESSION_CONTROLLER_LSB43expression value LSB. Value ranges between 0 to 127
MIDI_CC_EXPRESSION_CONTROLLER_MSB11expression value MSB. Value ranges between 0 to 127
MIDI_CC_EXTERNAL_EFFECT_DEPTH91external effects depth. Value ranges between 0 to 127
MIDI_CC_FOOT_CONTROLLER_LSB36foot controller LSB value. Value ranges between 0 to 127
MIDI_CC_FOOT_CONTROLLER_MSB4foot controller MSB value. Value ranges between 0 to 127
MIDI_CC_HOLD_269hold 2. <=63 off,="">=63 on
MIDI_CC_MODULATION_LSB33modulation value LSB. Value ranges between 0 to 127
MIDI_CC_MODULATION_MSB1modulation value MSB. Value ranges between 0 to 127
MIDI_CC_PAN_LSB42panning LSB. Value ranges between 0 to 127
MIDI_CC_PHASER_DEPTH95phaser depth. Value ranges between 0 to 127
MIDI_CC_PORTAMENTO65portamento On/Off. <=63 off,="">=63 on
MIDI_CC_PORTAMENTO_TIME_LSB37portamento Time LSB value. Value ranges between 0 to 127
MIDI_CC_PORTAMENTO_TIME_MSB5portamento Time MSB value. Value ranges between 0 to 127
MIDI_CC_RESET_CONTROLLER121reset. Reset all controller.
MIDI_CC_SOFT_PEDAL67soft Pedal On/Off. <=63 off,="">=63 on
MIDI_CC_SOSTENUTO66sostenuto On/Off. <=63 off,="">=63 on
MIDI_CC_SUSTAIN64sustain on/off. <=63 is="" sustain="" off="" and="">=63 is sustain on
MIDI_CC_TREMOLO_DEPTH92tremolo depth. Value ranges between 0 to 127
MIDI_EVENT_CHANNEL_PRESSURE12channel pressure
MIDI_EVENT_CONTROL_CHANGE10channel control change. For control parameters refer MIDI_CC_PARAM. Control change command aNumber with control parameter and it value should be sent to change the channel control parameter such as volume, modulation values
MIDI_EVENT_NOTE_OFF7note off
MIDI_EVENT_NOTE_ON6note on
MIDI_EVENT_PITCH_BEND13channel pitchbend
MIDI_EVENT_PROGRAM_CHANGE11channel program change
MGR_EVENT_DEV_CONNECT11MIDI device plugin event
MGR_EVENT_DEV_DISCONNECT12MIDI device plugout event
MIDI_DEVICE_CONTROLLER1Valid MIDI controller input device such as MIDI keyboard
MIDI_DEVICE_SYNTHESIZER2Valid MIDI output device. Only builtin synthesizer is supported.
MIDI_DEVICE_FILE4Valid MIDI input or output device. Currently standard MIDI file playback is supported. Recording is not supported.