Skip to content

Hide some of the details of clojure/overtone #2

@pfeyz

Description

@pfeyz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions