go-music-theory / music-theory

Go models of Note, Scale, Chord and Key
https://gopkg.in/music-theory.v0
GNU General Public License v3.0
432 stars 44 forks source link

Note returns Pitch in Hz #8

Open charneykaye opened 8 years ago

charneykaye commented 8 years ago

Any note (with a pitch class + octave) ought to be able to return a Pitch.

Allow for future selection of different tunings.

See jFugue for an example of a pitch algorithm

There would be a configuration for master tune as well, e.g. 440Hz vs. 432Hz

tirpen commented 7 years ago

Hi,

Not sure if I understand. Does this means that I can pass, say C#3 as a single note or as a scale/chord, and get its pitch value in Hz? Because that would be really useful when working with other tools (Supercollider).

charneykaye commented 7 years ago

Yes!! That's exactly the feature I imagine. There would be a configuration for master tune as well, e.g. 440Hz vs. 432Hz

charneykaye commented 4 years ago

Following #28 there are two additional enhancements I'd like to see before we mark this issue closed:

Here's an example of both of these enhancements in action:

music-theory --tuning 432 pitch A5
864.00Hz