BASS.NET API for the Un4seen BASS Audio LibraryBASSMIDIEvent EnumerationBASS.NET API for the Un4seen BASS Audio Library

Namespace: Un4seen.Bass.AddOn.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public enum BASSMIDIEvent
Members

  Member nameValueDescription
MIDI_EVENT_NONE0 No event.
MIDI_EVENT_NOTE1 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).

MIDI_EVENT_PROGRAM2 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 MIDI_EVENT_BANK event).

param : preset number (0-127).

MIDI_EVENT_CHANPRES3 Set the channel pressure.

param : pressure level (0-127).

MIDI_EVENT_PITCH4 Set the pitch wheel.

param : pitch wheel position (0-16383, 8192=normal/middle).

MIDI_EVENT_PITCHRANGE5 Set pitch wheel range (MIDI RPN 0).

param : range in semitones.

MIDI_EVENT_DRUMS6 Set the percussion/drums channel switch. The bank and program are reset to 0 when this changes.

param : use drums? (0=no, 1=yes).

MIDI_EVENT_FINETUNE7 Set the fine tuning (MIDI RPN 1).

param : finetune in cents (0-16383, 0=-100, 8192=normal, 16383=+100).

MIDI_EVENT_COARSETUNE8 Set the coarse tuning (MIDI RPN 2).

param : finetune in semitones (0-127, 0=-64, 64=normal, 127=+63).

MIDI_EVENT_MASTERVOL9 Set the master volume.

param : volume level (0-16383, 0=silent, 16363=normal/full).

MIDI_EVENT_BANK10 Select the bank to use (MIDI controller 0).

param : bank number (0-127).

MIDI_EVENT_MODULATION11 Set the modulation (MIDI controller 1).

param : modulation level (0-127).

MIDI_EVENT_VOLUME12 Set the volume (MIDI controller 7).

param : volume level (0-127).

MIDI_EVENT_PAN13 Set the pan position (MIDI controller 10).

param : pan position (0-128, 0=left, 64=middle, 127=right, 128=random).

MIDI_EVENT_EXPRESSION14 Set the expression (MIDI controller 11).

param : expression level (0-127).

MIDI_EVENT_SUSTAIN15 Set the sustain switch (MIDI controller 64).

param : enable sustain? (0-63=no, 64-127=yes).

MIDI_EVENT_SOUNDOFF16 Stop all sounds (MIDI controller 120).

param : not used.

MIDI_EVENT_RESET17 Reset controllers (MIDI controller 121), that is modulation=0, expression=127, sustain=0, pitch wheel=8192, channel pressure=0.

param : not used.

MIDI_EVENT_NOTESOFF18 Release all keys (MIDI controller 123).

param : not used.

MIDI_EVENT_PORTAMENTO19 Set the portamento switch (MIDI controller 65).

param : enable portamento? (0-63=no, 64-127=yes).

MIDI_EVENT_PORTATIME20 Set the portamento time (MIDI controller 5).

param : portamento time (0-127).

MIDI_EVENT_PORTANOTE21 Set the portamento start key - the next note starts at this key (MIDI controller 84).

param : key number (1-127, 60=middle C).

MIDI_EVENT_MODE22 Set poly/mono mode (MIDI controllers 126 & 127).

param : mode (0=poly, 1=mono).

MIDI_EVENT_REVERB23 Set the reverb send level (MIDI controller 91).

param : reverb level (0-127).

MIDI_EVENT_CHORUS24 Set the chorus send level (MIDI controller 93).

param : chorus level (0-127).

MIDI_EVENT_CUTOFF25 Set the low-pass filter cutoff (MIDI controller 74, NRPN 120h).

param : cutoff level (0-127, 0=-64, 64=normal, 127=+63).

MIDI_EVENT_RESONANCE26 Set the low-pass filter resonance (MIDI controller 71, NRPN 121h).

param : resonance level (0-127, 0=-64, 64=normal, 127=+63).

MIDI_EVENT_RELEASE27 Set the release time (MIDI controller 72, NRPN 166h).

param : release time (0-127, 0=-64, 64=normal, 127=+63).

MIDI_EVENT_ATTACK28 Set the attack time (MIDI controller 73, NRPN 163h).

param : attack time (0-127, 0=-64, 64=normal, 127=+63).

MIDI_EVENT_REVERB_MACRO30 To be defined.

param : to be defined.

MIDI_EVENT_CHORUS_MACRO31 To be defined.

param : to be defined.

MIDI_EVENT_REVERB_TIME32 Set the reverb time.

param : reverb time in milliseconds.

MIDI_EVENT_REVERB_DELAY33 Set the reverb delay.

param : reverb delay in millisecond 10ths.

MIDI_EVENT_REVERB_LOCUTOFF34 Set the reverb low-pass cutoff.

param : reverb low-pass cutoff in hertz (0=off).

MIDI_EVENT_REVERB_HICUTOFF35 Set the reverb high-pass cutoff.

param : reverb high-pass cutoff in hertz (0=off).

MIDI_EVENT_REVERB_LEVEL36 Set the reverb level.

param : reverb level (0=off, 100=0dB, 200=+6dB).

MIDI_EVENT_CHORUS_DELAY37 Set the chorus delay.

param : chorus delay in millisecond 10ths.

MIDI_EVENT_CHORUS_DEPTH38 Set the chorus depth.

param : chorus depth in millisecond 10ths.

MIDI_EVENT_CHORUS_RATE39 Set the chorus rate.

param : chorus rate in hertz 100ths.

MIDI_EVENT_CHORUS_FEEDBACK40 Set the chorus feedback level.

param : chorus feedback level (0=-100%, 100=off, 200=+100%).

MIDI_EVENT_CHORUS_LEVEL41 Set the chorus level.

param : chorus level (0=off, 100=0dB, 200=+6dB).

MIDI_EVENT_CHORUS_REVERB42 Set the chorus send to reverb level.

param : chorus send to reverb level (0=off, 100=0dB, 200=+6dB).

MIDI_EVENT_DRUM_FINETUNE50 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).

MIDI_EVENT_DRUM_COARSETUNE51 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).

MIDI_EVENT_DRUM_PAN52 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).

MIDI_EVENT_DRUM_REVERB53 Set the reverb send level of a drum key (MIDI NRPN 1Dknh).

param : LOBYTE = key number (0-127), HIBYTE = reverb level (0-127).

MIDI_EVENT_DRUM_CHORUS54 Set the chorus send level of a drum key (MIDI NRPN 1Eknh).

param : LOBYTE = key number (0-127), HIBYTE = chorus level (0-127).

MIDI_EVENT_DRUM_CUTOFF55 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).

MIDI_EVENT_DRUM_RESONANCE56 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).

MIDI_EVENT_DRUM_LEVEL57 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).

MIDI_EVENT_SOFT60 Set the soft pedal/switch (MIDI controller 67).

param : soft is on? (0-63=no, 64-127=yes).

MIDI_EVENT_SYSTEM61 Set the system mode, resetting everything to the system's defaults. MIDI_SYSTEM_DEFAULT is identical to MIDI_SYSTEM_GS, except that channel 10 is melodic if there are not 16 channels. MIDI_EVENT_SYSTEM does not reset things in any additional channels allocated to a MIDI file stream via the BASS_ATTRIB_MIDI_CHANS attribute, while MIDI_EVENT_SYSTEMEX does.

param : system mode (see BASSMIDISystem).

MIDI_EVENT_TEMPO62 Set the tempo (MIDI meta event 81). Changing the tempo affects the stream length, and the BASS_ChannelGetLength(Int32, BASSMode) value will no longer be valid.

param : tempo in microseconds per quarter note.

MIDI_EVENT_SCALETUNING63 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).

MIDI_EVENT_CONTROL64 Control event.
MIDI_EVENT_CHANPRES_VIBRATO65 Change Preset Vibrato.
MIDI_EVENT_CHANPRES_PITCH66 Change Preset Pitch.
MIDI_EVENT_CHANPRES_FILTER67 Change Preset Filter.
MIDI_EVENT_CHANPRES_VOLUME68 Change Preset Volume.
MIDI_EVENT_MODRANGE69 Mod Range.
MIDI_EVENT_BANK_LSB70 Bank LSB.
MIDI_EVENT_KEYPRES71 Set a key's pressure/aftertouch.

param : LOBYTE = key number (0-127), HIBYTE = pressure level (0-127).

MIDI_EVENT_KEYPRES_VIBRATO72 Set the maximum effect of key pressure/aftertouch on vibrato depth.

param : vibrato depth effect in cents (0=none, 128=100, 256=200, etc).

MIDI_EVENT_KEYPRES_PITCH73 Set the maximum effect of key pressure/aftertouch on pitch.

param : pitch effect in semitones (0=-24, 24=none, 48=+24).

MIDI_EVENT_KEYPRES_FILTER74 Set the maximum effect of key pressure/aftertouch on filter cutoff.

param : filter cutoff effect in cents (0=-9600, 9600=none, 19200=+9600).

MIDI_EVENT_KEYPRES_VOLUME75 Set the maximum effect of key pressure/aftertouch on volume.

param : volume effect percentage (0=-100, 100=none, 200=+100).

MIDI_EVENT_SOSTENUTO76 .

param : .

MIDI_EVENT_MIXLEVEL65536 Set the level.

param : the level (0=silent, 100=0dB, 200=+6dB).

MIDI_EVENT_TRANSPOSE65537 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).

MIDI_EVENT_SYSTEMEX65538 Set the system mode, resetting everything to the system's defaults. MIDI_SYSTEM_DEFAULT is identical to MIDI_SYSTEM_GS, except that channel 10 is melodic if there are not 16 channels. MIDI_EVENT_SYSTEM does not reset things in any additional channels allocated to a MIDI file stream via the BASS_ATTRIB_MIDI_CHANS attribute, while MIDI_EVENT_SYSTEMEX does.

param : system mode (see BASSMIDISystem).

MIDI_EVENT_END_TRACK65539 Used with BASS_MIDI_StreamCreateEvents(BASS_MIDI_EVENT, Int32, BASSFlag, Int32) to mark the end of a track (the next event will be in a new track).
MIDI_EVENTS_NORSTATUS33554432 Flag: no running status.
MIDI_EVENT_END0 Used with BASS_MIDI_StreamCreateEvents(BASS_MIDI_EVENT, Int32, BASSFlag, Int32) to mark the end of the event array.
Remarks

See Also

Reference