Enum MidiEventType
The MIDI event type, to be used with StreamEvent(Int32, Int32, MidiEventType, Int32) or StreamGetEvent(Int32, Int32, MidiEventType) or CreateStream(MidiEvent[], Int32, BassFlags, Int32).
Namespace: System.Dynamic.ExpandoObject
Assembly: ManagedBass.Midi.dll
Syntax
public enum MidiEventType : int
Attack
Set the attack time (MIDI controller 73, NRPN 163h). param : attack time (0-127, 0=-64, 64=normal, 127=+63).
Bank
Select the bank to use (MIDI controller 0). param : bank number (0-127).
BankLSB
Bank LSB.
ChangePresetFilter
Change Preset Filter.
ChangePresetPitch
Change Preset Pitch.
ChangePresetVibrato
Change Preset Vibrato.
ChangePresetVolume
Change Preset Volume.
ChannelPressure
Set the channel pressure. param : pressure level (0-127).
Chorus
Set the chorus send level (MIDI controller 93). param : chorus level (0-127).
ChorusDelay
Set the chorus delay. param : chorus delay in millisecond 10ths.
ChorusDepth
Set the chorus depth. param : chorus depth in millisecond 10ths.
ChorusFeedback
Set the chorus feedback level. param : chorus feedback level (0=-100%, 100=off, 200=+100%).
ChorusLevel
Set the chorus level. param : chorus level (0=off, 100=0dB, 200=+6dB).
ChorusMacro
To be defined. param : to be defined.
ChorusRate
Set the chorus rate. param : chorus rate in hertz 100ths.
ChorusReverb
Set the chorus send to reverb level. param : chorus send to reverb level (0=off, 100=0dB, 200=+6dB).
CoarseTune
Set the coarse tuning (MIDI RPN 2). param : finetune in semitones (0-127, 0=-64, 64=normal, 127=+63).
Control
Control event.
CutOff
Set the low-pass filter cutoff (MIDI controller 74, NRPN 120h). param : cutoff level (0-127, 0=-64, 64=normal, 127=+63).
Decay
Set the decay time (MIDI controller 75, NRPN 164h) param : decay time (0-127, 0=-64, 64=normal, 127=+63).
DrumChorus
Set the chorus send level of a drum key (MIDI NRPN 1Eknh). param : LOBYTE = key number (0-127), HIBYTE = chorus level (0-127).
DrumCoarseTune
Set the coarse tuning of a drum key (MIDI NRPN 18knh). param : LOBYTE = key number (0-127), HIBYTE = finetune in semitones (0-127, 0=-64, 64=normal, 127=+63).
DrumCutOff
Set the low-pass filter cutoff of a drum key (MIDI NRPN 14knh). param : LOBYTE = key number (0-127), HIBYTE = cutoff level (0-127, 0=-64, 64=normal, 127=+63).
DrumFineTune
Set the fine tuning of a drum key (MIDI NRPN 19knh). param : LOBYTE = key number (0-127), HIBYTE = finetune in cents (0-127, 0=-100, 64=normal, 127=+100).
DrumLevel
Set the drum level NRPN of a drum key (MIDI NRPN 16knh). param : LOBYTE = key number (0-127), HIBYTE = level (0-127, 127=full/normal).
DrumPan
Set the pan position of a drum key (MIDI NRPN 1Cknh). param : LOBYTE = key number (0-127), HIBYTE = pan position (0-127, 0=random, 64=middle).
DrumResonance
Set the low-pass filter resonance of a drum key (MIDI NRPN 15knh). param : LOBYTE = key number (0-127), HIBYTE = resonance level (0-127, 0=-64, 64=normal, 127=+63).
DrumReverb
Set the reverb send level of a drum key (MIDI NRPN 1Dknh). param : LOBYTE = key number (0-127), HIBYTE = reverb level (0-127).
Drums
Set the percussion/drums channel switch. The bank and program are reset to 0 when this changes. param : use drums? (0=no, 1=yes).
DrumUserFX
Set the user effect send level of a drum key (MIDI NRPN 1Fknh) param : LOBYTE = key number (0-127), HIBYTE = user effect level (0-127, 127=normal/full).
End
Used with CreateStream(MidiEvent[], Int32, BassFlags, Int32) to mark the end of the event array.
EndTrack
Used with CreateStream(MidiEvent[], Int32, BassFlags, Int32) to mark the end of a track (the next event will be in a new track).
Expression
Set the expression (MIDI controller 11). param : expression level (0-127).
FineTune
Set the fine tuning (MIDI RPN 1). param : finetune in cents (0-16383, 0=-100, 8192=normal, 16383=+100).
KeyPressure
Set a key's pressure/aftertouch. param : LOBYTE = key number (0-127), HIBYTE = pressure level (0-127).
KeyPressureFilter
Set the maximum effect of key pressure/aftertouch on filter cutoff. param : filter cutoff effect in cents (0=-9600, 9600=none, 19200=+9600).
KeyPressurePitch
Set the maximum effect of key pressure/aftertouch on pitch. param : pitch effect in semitones (0=-24, 24=none, 48=+24).
KeyPressureVibrato
Set the maximum effect of key pressure/aftertouch on vibrato depth. param : vibrato depth effect in cents (0=none, 128=100, 256=200, etc).
KeyPressureVolume
Set the maximum effect of key pressure/aftertouch on volume. param : volume effect percentage (0=-100, 100=none, 200=+100).
Level
Set the level. param : the level (0=silent, 100=0dB, 200=+6dB).
MasterVolume
Set the master volume. param : volume level (0-16383, 0=silent, 16363=normal/full).
Mode
Set poly/mono mode (MIDI controllers 126 and 127). param : mode (0=poly, 1=mono).
ModFilter
Set the maximum effect of modulation (MIDI controller 1) on filter cutoff. param : filter cutoff effect in cents (0=-9600, 9600=none, 19200=+9600).
ModPitch
Set the maximum effect of modulation (MIDI controller 1) on pitch. param : pitch effect in semitones (0=-24, 24=none, 48=+24).
ModRange
Mod Range.
Modulation
Set the modulation (MIDI controller 1). param : modulation level (0-127).
ModVolume
Set the maximum effect of modulation (MIDI controller 1) on volume. param : volume effect percentage (0=-100, 100=none, 200=+100).
None
No event.
NoRunningStatus
Flag: no running status.
Note
Press or release a key, or stop without sustain/decay. param : LOBYTE = key number (0-127, 60=middle C), HIBYTE = velocity (0=release, 1-127=press, 255=stop).
Notes
Used with StreamGetEvent(Int32, Int32, MidiEventType) to check the total no of keys pressed in the specified channel. If a key is simultaneously pressed multiple times, it will still only be counted once.
NotesOff
Release all keys (MIDI controller 123). param : not used.
Pan
Set the pan position (MIDI controller 10). param : pan position (0-128, 0=left, 64=middle, 127=right, 128=random).
Pitch
Set the pitch wheel. param : pitch wheel position (0-16383, 8192=normal/middle).
PitchRange
Set pitch wheel range (MIDI RPN 0). param : range in semitones.
Portamento
Set the portamento switch (MIDI controller 65). param : enable portamento? (0-63=no, 64-127=yes).
PortamentoNote
Set the portamento start key - the next note starts at this key (MIDI controller 84). param : key number (1-127, 60=middle C).
PortamentoTime
Set the portamento time (MIDI controller 5). param : portamento time (0-127).
Program
Select the preset/instrument to use. Standard soundfont presets follow the General MIDI standard, and generally also include Roland GS variations in other banks (accessible via the Bank event). param : preset number (0-127).
Release
Set the release time (MIDI controller 72, NRPN 166h). param : release time (0-127, 0=-64, 64=normal, 127=+63).
Reset
Reset controllers (MIDI controller 121), that is modulation=0, expression=127, sustain=0, pitch wheel=8192, channel pressure=0. param : not used.
Resonance
Set the low-pass filter resonance (MIDI controller 71, NRPN 121h). param : resonance level (0-127, 0=-64, 64=normal, 127=+63).
Reverb
Set the reverb send level (MIDI controller 91). param : reverb level (0-127).
ReverbDelay
Set the reverb delay. param : reverb delay in millisecond 10ths.
ReverbHighPassCutOff
Set the reverb high-pass cutoff. param : reverb high-pass cutoff in hertz (0=off).
ReverbLevel
Set the reverb level. param : reverb level (0=off, 100=0dB, 200=+6dB).
ReverbLowPassCutOff
Set the reverb low-pass cutoff. param : reverb low-pass cutoff in hertz (0=off).
ReverbMacro
To be defined. param : to be defined.
ReverbTime
Set the reverb time. param : reverb time in milliseconds.
ScaleTuning
Set the tuning of a note in every octave. param : LOWORD = tuning change in cents (0-16383, 0=-100, 8192=normal, 16383=+100), HIWORD = note (0-11, 0=C).
Soft
Set the soft pedal/switch (MIDI controller 67). param : soft is on? (0-63=no, 64-127=yes).
Sostenuto
Set the sostenuto pedal/switch (MIDI controller 66). param : sostenuto is on? (0-63=no, 64-127=yes).
SoundOff
Stop all sounds (MIDI controller 120). param : not used.
Speed
Set a tempo modification. Changing the tempo affects the stream length, and the ChannelGetLength(Int32, PositionFlags) byte value will no longer be valid. The modification does not affect seeking. param : speed in 100ths of a percent (100=1%/min, 10000=100%/normal, 20000=200%).
Sustain
Set the sustain switch (MIDI controller 64). param : enable sustain? (0-63=no, 64-127=yes).
System
Set the system mode, resetting everything to the system's defaults. Default is identical to GS, except that channel 10 is melodic if there are not 16 channels. This does not reset things in any additional channels allocated to a MIDI file stream via the MidiChannels attribute, while SystemEx does. param : system mode (see MidiSystem).
SystemEx
Set the system mode, resetting everything to the system's defaults. Default is identical to GS, except that channel 10 is melodic if there are not 16 channels. System does not reset things in any additional channels allocated to a MIDI file stream via the MidiChannels attribute, while this does. param : system mode (see MidiSystem).
Tempo
Set the tempo (MIDI meta event 81). Changing the tempo affects the stream Length, and the ChannelGetLength(Int32, PositionFlags) value will no longer be valid. param : tempo in microseconds per quarter note.
Transpose
Transpose all notes. Changes take effect from the next note played, and affect melodic channels only (not drum channels). param : transposition amount in semitones (0=-100, 100=normal, 200=+100).
UserFX
Set the user effect send level (MIDI controller 94). This will have no audible effect unless custom processing is applied to the user effect mix via StreamGetChannel(Int32, Int32).
UserFXChorus
Set the user effect send to chorus level. param : user effect send to chorus level (0=off, 100=0dB, 200=+6dB).
UserFXLevel
Set the user effect level. param : user effect level (0=off, 100=0dB, 200=+6dB).
UserFXReverb
Set the user effect send to reverb level. param : user effect send to reverb level (0=off, 100=0dB, 200=+6dB).
Voices
Used with StreamGetEvent(Int32, Int32, MidiEventType) to check the total no of active voices.
Volume
Set the volume (MIDI controller 7). param : volume level (0-127).