mutwo.converters.frontends.midi_constants module¶
Several constants which are used for the midi converter module.
- There are basically two types of constants:
Default values for
mutwo.converters.frontends.MidiFileConverterconstructor.Values that are defined by the midi file standard.
Data:
midi channels that are allowed (following the standard midi file definition). |
|
default value for |
|
default value for |
|
default value for |
|
default value for |
|
default value for |
|
default value for |
|
the highest allowed value for midi pitch bend |
|
factor to multiply beats-in-seconds to get beats-in-microseconds (which is the tempo unit for midi) |
|
the value for midi pitch bend when the resulting pitch doesn't change |
- ALLOWED_MIDI_CHANNELS = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)¶
midi channels that are allowed (following the standard midi file definition).
- DEFAULT_AVAILABLE_MIDI_CHANNELS = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)¶
default value for
available_midi_channelsin MidiFileConverter
- DEFAULT_MAXIMUM_PITCH_BEND_DEVIATION_IN_CENTS = 200¶
default value for
maximum_pitch_bend_deviation_in_centsin MidiFileConverter
- DEFAULT_MIDI_FILE_TYPE = 1¶
default value for
midi_file_typein MidiFileConverter
- DEFAULT_MIDI_INSTRUMENT_NAME = 'Acoustic Grand Piano'¶
default value for
midi_instrument_namein MidiFileConverter
- DEFAULT_N_MIDI_CHANNELS_PER_TRACK = 1¶
default value for
n_midi_channels_per_trackin MidiFileConverter
- DEFAULT_TEMPO_ENVELOPE: expenvelope.envelope.Envelope = Envelope((TempoPoint(BPM: 120, reference: 1), TempoPoint(BPM: 120, reference: 1)), (1,), (0,), 0)¶
default value for
tempo_envelopein MidiFileConverter
- DEFAULT_TICKS_PER_BEAT = 480¶
default value for
ticks_per_beatin MidiFileConverter
- MAXIMUM_PITCH_BEND = 16382¶
the highest allowed value for midi pitch bend
- MIDI_TEMPO_FACTOR = 1000000¶
factor to multiply beats-in-seconds to get beats-in-microseconds (which is the tempo unit for midi)
- NEUTRAL_PITCH_BEND = 8191¶
the value for midi pitch bend when the resulting pitch doesn’t change