alda-lang / alda

A music programming language for musicians. :notes:
https://alda.io
Eclipse Public License 2.0
5.6k stars 288 forks source link

Octaves and Notes #298

Closed MinaBombo closed 7 years ago

MinaBombo commented 7 years ago

Isn't it a bit misleading that C3 doesn't mean C note the thirds octave and instead means C duration 3? xD

elydpg commented 7 years ago

imo it's a lot faster when writing to have c4 mean a quarter note c instead of the pitch "C4", since typically I write within the range of a few octaves, whereas the duration might change a lot.

Also, it seems like you have a lot of questions, which is great, except you also haven't read #293 yet. Also, feel free to chat on slack!

MinaBombo commented 7 years ago

I totally agree but nevertheless musicians who are accustomed to numbers relating to octaves might get misguided And think about arranging harmonies for different voice types with different octaves I suggest adding a way of accessing a note in a certain octave directly And sorry I forgot to change the title

elydpg commented 7 years ago

I suggest adding a way of accessing a note in a certain octave directly

try o$n $p, where $n is the octave you want and $p is the note you want. For example, o4 g will always play a "G4" (about 392 Hz).

MinaBombo commented 7 years ago

My bad, overlooked that notation.