-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
I hacked around on some stuff to make working with synced-up musical durations easier.
https://github.com/pfeyz/overtone/tree/wrapping-details
I added an on-downbeat macro which is like a do form that evaluates its body on the next downbeat, a play-pattern function which uses duration/pitch pairs like [1/4 :C4] for quarter note C4, a beat-length function to map from note lengths to ms and a few other things in lib.clj. I dropped a couple of examples in examples.clj.
play-pattern might be too high-level, but I think using an implicit metronome and working with time like "2 eight notes from now" rather than ms offsets might mesh better with the curriculum