alda-lang / alda-core

The core machinery of Alda
80 stars 26 forks source link

bug when mixing length of notes (ms or s) and default no-length #27

Closed damiendevienne closed 7 years ago

damiendevienne commented 7 years ago

Hi ! Great tool, thanks! Maybe this is wanted, but it is suprising: when trying to use length of notes in seconds or millisecons I noticed that these lengths cannot be mixed with no-length (default) notes. For example d e plays two notes (ok). d2s e2s plays both (2s each, ok). d2s e only plays the d (2 seconds...) Any thoughts?

daveyarwood commented 7 years ago

Nice catch - this is definitely a bug!

The intended behavior is for each "declared" note length (whether in seconds, milliseconds or standard notation like quarter notes) to be "sticky" and apply to every note following it as a "default" note length until there is another note with a declared note length.

daveyarwood commented 7 years ago

Fixed in 0.1.2. Thanks again for reporting this! :)