[Python] transpose pitch down an octave?

Discussão em 'Python' iniciado por Stack, Fevereiro 17, 2025.

  1. Stack

    Stack Membro Participativo

    Using music21, how can I transpose a pitch down an octave?

    If I use p.transpose(-12), flats get changed to sharps:

    import music21
    p = music21.pitch.Pitch('D-4')
    print(p.transpose(-12))


    output

    C#3

    Continue reading...

Compartilhe esta Página