How to use the musictheory.getNote 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 / mikezart2.py View on Github external
def adjustTest(pack = None, splay=True):
    if pack == None:
        pack = filezart.getInfo()
    else:
        pack = filezart.getPack(pack)
    for i in pack:
        clip = musictheory.getNote(i, musictheory.listNotes(i)[len(musictheory.listNotes(i))//2])
        dest = -30
        if splay:
            play(clip)
        print("audio:",clip.max_dBFS)
        print("delta:",dest-clip.max_dBFS)