1 changed files with 22 additions and 0 deletions
@ -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…
Reference in new issue