How to use the musictheory.theme 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
break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._ge = musictheory.theme(pal._scale, cprogN1, pal._progcount, pal._csize)
        elif inp == "n2":
            if cprogN2 != None:
                print("Creating Verses 2 Theme")
                if pal._n2 != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._n2 = musictheory.theme(pal._scale, cprogN2, pal._progcount, pal._csize)
                            break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._n2 = musictheory.theme(pal._scale, cprogN2, pal._progcount, pal._csize)
        elif inp == "bg":
            if cprogCH != None:
                print("Creating Bridge Theme")
                if pal._bg != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._bg = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)
github joaoperfig / mikezart / source / mikezario.py View on Github external
print("bg - Create Bridge Theme")
            print("ch - Create Chorus Theme")
        print("Qq - Quit")
        inp = usrinp()
        if inp in "Qq":
            return
        elif inp == "n1":
            if cprogN1 != None:
                print("Creating Verses 1 Theme")
                if pal._n1 != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._n1 = musictheory.theme(pal._scale, cprogN1, pal._progcount, pal._csize)
                            break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._n1 = musictheory.theme(pal._scale, cprogN1, pal._progcount, pal._csize)
        elif inp == "ge":
            if cprogN1 != None:
                print("Creating General Theme")
                if pal._ge != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._ge = musictheory.theme(pal._scale, cprogN1, pal._progcount, pal._csize)
github joaoperfig / mikezart / source / mikezario.py View on Github external
elif inp == "ge":
            if cprogN1 != None:
                print("Creating General Theme")
                if pal._ge != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._ge = musictheory.theme(pal._scale, cprogN1, pal._progcount, pal._csize)
                            break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._ge = musictheory.theme(pal._scale, cprogN1, pal._progcount, pal._csize)
        elif inp == "n2":
            if cprogN2 != None:
                print("Creating Verses 2 Theme")
                if pal._n2 != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._n2 = musictheory.theme(pal._scale, cprogN2, pal._progcount, pal._csize)
                            break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._n2 = musictheory.theme(pal._scale, cprogN2, pal._progcount, pal._csize)
github joaoperfig / mikezart / source / mikezario.py View on Github external
break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._bg = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)
        elif inp == "ch":
            if cprogCH != None:
                print("Creating Chorus Theme")
                if pal._ch != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._ch = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)
                            break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._ch = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)
github joaoperfig / mikezart / source / mikezario.py View on Github external
elif inp == "ch":
            if cprogCH != None:
                print("Creating Chorus Theme")
                if pal._ch != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._ch = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)
                            break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._ch = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)
github joaoperfig / mikezart / source / mikezario.py View on Github external
break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._n2 = musictheory.theme(pal._scale, cprogN2, pal._progcount, pal._csize)
        elif inp == "bg":
            if cprogCH != None:
                print("Creating Bridge Theme")
                if pal._bg != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._bg = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)
                            break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._bg = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)
        elif inp == "ch":
            if cprogCH != None:
                print("Creating Chorus Theme")
                if pal._ch != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._ch = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)
github joaoperfig / mikezart / source / mikezario.py View on Github external
break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._n1 = musictheory.theme(pal._scale, cprogN1, pal._progcount, pal._csize)
        elif inp == "ge":
            if cprogN1 != None:
                print("Creating General Theme")
                if pal._ge != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._ge = musictheory.theme(pal._scale, cprogN1, pal._progcount, pal._csize)
                            break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._ge = musictheory.theme(pal._scale, cprogN1, pal._progcount, pal._csize)
        elif inp == "n2":
            if cprogN2 != None:
                print("Creating Verses 2 Theme")
                if pal._n2 != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._n2 = musictheory.theme(pal._scale, cprogN2, pal._progcount, pal._csize)
github joaoperfig / mikezart / source / mikezario.py View on Github external
elif inp == "n2":
            if cprogN2 != None:
                print("Creating Verses 2 Theme")
                if pal._n2 != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._n2 = musictheory.theme(pal._scale, cprogN2, pal._progcount, pal._csize)
                            break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._n2 = musictheory.theme(pal._scale, cprogN2, pal._progcount, pal._csize)
        elif inp == "bg":
            if cprogCH != None:
                print("Creating Bridge Theme")
                if pal._bg != None:
                    print("This theme already exists, are you sure you want to override? Yy Nn")
                    while True:
                        inp = usrinp()
                        if inp in "Yy":
                            print("Overriding")
                            pal._bg = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)
                            break
                        elif inp in "Nn":
                            print("Canceling")
                            break
                else:
                    pal._bg = musictheory.theme(pal._scale, cprogCH, pal._progcount, pal._csize)