Browse Source

tools - add sequencer size calculator - general midi model

master
heck 8 months ago
parent
commit
e376b2d71e
  1. 22
      tools/seq_model_midi.py

22
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))
Loading…
Cancel
Save