UNPKG

museaikit

Version:

A powerful music-focused AI toolkit

42 lines 1.6 kB
null; export const DEFAULT_QUARTERS_PER_MINUTE = 120.0; export const DEFAULT_STEPS_PER_BAR = 16; export const DEFAULT_STEPS_PER_QUARTER = 4; export const DEFAULT_STEPS_PER_SECOND = 100; export const DEFAULT_VELOCITY = 80; export const DEFAULT_PROGRAM = 0; export const DEFAULT_TICKS_PER_QUARTER = 220; export const DEFAULT_CHANNEL = 0; export const DRUM_CHANNEL = 9; export const NON_DRUM_CHANNELS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15]; export const DEFAULT_DRUM_PITCH_CLASSES = [ [36, 35], [38, 27, 28, 31, 32, 33, 34, 37, 39, 40, 56, 65, 66, 75, 85], [42, 44, 54, 68, 69, 70, 71, 73, 78, 80], [46, 67, 72, 74, 79, 81], [45, 29, 41, 61, 64, 84], [48, 47, 60, 63, 77, 86, 87], [50, 30, 43, 62, 76, 83], [49, 55, 57, 58], [51, 52, 53, 59, 82] ]; export const MIN_MIDI_VELOCITY = 0; export const MAX_MIDI_VELOCITY = 127; export const MIDI_VELOCITIES = MAX_MIDI_VELOCITY - MIN_MIDI_VELOCITY + 1; export const NO_CHORD = 'N.C.'; export const NUM_PITCH_CLASSES = 12; export const MIN_MIDI_PITCH = 0; export const MAX_MIDI_PITCH = 127; export const MIDI_PITCHES = MAX_MIDI_PITCH - MIN_MIDI_PITCH + 1; export const MIN_PIANO_PITCH = 21; export const MAX_PIANO_PITCH = 108; export const MIN_DRUM_PITCH = 35; export const MAX_DRUM_PITCH = 81; export const MIN_MIDI_PROGRAM = 0; export const MAX_MIDI_PROGRAM = 127; export const LO_CLICK_PITCH = 89; export const HI_CLICK_PITCH = 90; export const LO_CLICK_CLASS = 9; export const HI_CLICK_CLASS = 10; export const MIN_NOTE_LENGTH = 1; //# sourceMappingURL=constants.js.map