diff --git a/tools/seq_model_midi.py b/tools/seq_model_midi.py new file mode 100755 index 0000000..c4f50e6 --- /dev/null +++ b/tools/seq_model_midi.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python3 + +# Standard MIDI sequencer model +ppq = 24 + +cc_count = 128 +cc_bits = 7 +note_bits = 127 # 1 = trig , 7 = monophon, 127 = polyphon + +bars = 1 +channels = 16 + + +bits_per_pulse = (cc_count * cc_bits) + note_bits +bytes_per_quarter = bits_per_pulse / 8 * ppq + +print('quarter size: {0} bits {1}bytes'.format(bytes_per_quarter * 8, bytes_per_quarter)) +print('sequence size: {0} kb'.format((bytes_per_quarter * 4 * bars * channels) / 1024)) + + + +