How to use the musictheory.chunk function in musictheory

To help you get started, we’ve selected a few musictheory examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github joaoperfig / mikezart / source / mikezario.py View on Github external
def previewbpm(bpm):
    c = musictheory.chunk(5)
    ins = filezart.getInstrument("Drum_Snare")
    for i in c.wholes():
        c.add(i, mnote.fromName("C0"))
    sidePlay(c.getAudio(ins, bpm))