The OSP is a hackable, open source drum machine that accidentally got very, very close to the erica perkons hd-01, which is real beauty of instrument design that i truly love, except for its unhackable closed source nature. So, we new need gnu one.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
456 B

#!/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))