« Return to Thread: choose your own price to attend summer SuperCollider workshop week in London

Re: note names to midi number / hz

by Josh Parmenter :: Rate this Message:

Reply to Author | View in Thread

In the Ctk quark, there is a class called PitchClass. It can do this:

a = PitchClass.new(\fs, 4);
a.keynum;
a.freq;
a.pitch;
a.note;
a.acc;
a.octave;

// returns:


a PitchClass

66

369.99442271163

fs

f

s

4

Best,

Josh

On Mar 17, 2008, at 10:21 AM, morgan packard wrote:

> Hello List,
>
> I know about number.midicps, and number.cps midi. Does
> anyone have anthing that will nicely deal with, say
> f#4?
>
> thanks,
>
> -m-
>
> +++++++++++++++++++++++++++++++++++
> morganpackard.com
> myspace.com/morganpackard
> +++++++++++++++++++++++++++++++++++
> -->
>
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

 « Return to Thread: choose your own price to attend summer SuperCollider workshop week in London