mutwo.converters.frontends.midi_constants module

Several constants which are used for the midi converter module.

There are basically two types of constants:
  1. Default values for mutwo.converters.frontends.MidiFileConverter constructor.

  2. Values that are defined by the midi file standard.

Data:

ALLOWED_MIDI_CHANNELS

midi channels that are allowed (following the standard midi file definition).

DEFAULT_AVAILABLE_MIDI_CHANNELS

default value for available_midi_channels in MidiFileConverter

DEFAULT_MAXIMUM_PITCH_BEND_DEVIATION_IN_CENTS

default value for maximum_pitch_bend_deviation_in_cents in MidiFileConverter

DEFAULT_MIDI_FILE_TYPE

default value for midi_file_type in MidiFileConverter

DEFAULT_MIDI_INSTRUMENT_NAME

default value for midi_instrument_name in MidiFileConverter

DEFAULT_N_MIDI_CHANNELS_PER_TRACK

default value for n_midi_channels_per_track in MidiFileConverter

DEFAULT_TICKS_PER_BEAT

default value for ticks_per_beat in MidiFileConverter

MAXIMUM_PITCH_BEND

the highest allowed value for midi pitch bend

MIDI_TEMPO_FACTOR

factor to multiply beats-in-seconds to get beats-in-microseconds (which is the tempo unit for midi)

NEUTRAL_PITCH_BEND

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_channels in MidiFileConverter

DEFAULT_MAXIMUM_PITCH_BEND_DEVIATION_IN_CENTS = 200

default value for maximum_pitch_bend_deviation_in_cents in MidiFileConverter

DEFAULT_MIDI_FILE_TYPE = 1

default value for midi_file_type in MidiFileConverter

DEFAULT_MIDI_INSTRUMENT_NAME = 'Acoustic Grand Piano'

default value for midi_instrument_name in MidiFileConverter

DEFAULT_N_MIDI_CHANNELS_PER_TRACK = 1

default value for n_midi_channels_per_track in 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_envelope in MidiFileConverter

DEFAULT_TICKS_PER_BEAT = 480

default value for ticks_per_beat in 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