kroger / pyknon

Simple Python library to generate music in a hacker friendly way.
http://kroger.github.com/pyknon/
MIT License
391 stars 48 forks source link

MIDI with octaves not working? #23

Closed fosslinux closed 3 years ago

fosslinux commented 3 years ago

MIDI with octave specification (or maybe NoteSeq itself) or something else is broken.

For example, using the demo in the README creates a midi file that plays back with all notes in octave 4, whereas I would expect to hear the F# in octave 8.

Am I missing something, or is it truly broken?

kroger commented 3 years ago

Hi,

The number in the shorthand notation refers to the duration, in this case a 1/8th note. In the shorthand notation the octave is assigned by using single quotes. This is similar to the notation used by LilyPond. My book, Music for Geeks and Nerds has more information on how to use pyknon:

https://pedrokroger.net/mfgan/

Thanks!

fosslinux commented 3 years ago

OH! Thank you very much!