alda-lang / alda-core

The core machinery of Alda
80 stars 26 forks source link

Flexibility in expressing tempo / metric modulation #19

Closed daveyarwood closed 7 years ago

daveyarwood commented 7 years ago

Moved from https://github.com/alda-lang/alda/issues/222.

See the original issue for details.

tl;dr:

Flexibility in expressing tempo:

"♩. = 150 " could be expressed as:

(tempo! "4." 150)

and Alda would interpret that as setting the tempo to 225 bpm (where the quarter note gets the beat).

Metric modulation:

(tempo-transition! "4." 2)   # dotted quarter note => half note
daveyarwood commented 7 years ago

Closed via #54

daveyarwood commented 7 years ago

@pzxwang While working on describing the new metric modulation feature in the changelog, it occurred to me that I'd rather call it metric-modulation, as it's more precise than tempo-transition.

To me, tempo-transition sounds too much like it would be a function that introduces a gradual shift from one tempo into another.

I'm about to make that change myself on master -- just a heads up.