monome / dust

norns incantations
GNU General Public License v3.0
72 stars 51 forks source link

Introduce common library for notes, scales, and chords #191

Open nf opened 6 years ago

nf commented 6 years ago

Both awake and rebound use near-identical code for scale/mode selection. It would be nice to unify this into a library that can be used by any norns script. The library could also provide various utilities for expressing notes, scales, and chords as strings, midi notes, and frequencies (and converting between them).

Does this sound desirable? I already have a WIP of this on my norns that just needs to be tidied up.

markwheeler commented 6 years ago

There is this lib in dust already: https://github.com/monome/dust/blob/master/lib/lua/mark_eats/musicutil.lua Would be great to expand it to cover the use cases you mention 👍

nf commented 6 years ago

Awesome. I missed that somehow. That would make a great basis for a common library.