« 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

a = PitchClass(60)
a.pitch

returns:

cn

This is one of the classes I use as the basis for my GUIDO functions (for writing out GUIDO notation files) and are also going to be important for the MusicXML stuff I have started.

BUT... there isn't a helpfile! ack... I'll make one tonight.

Another nice feature... it spells correctly!

a = PitchClass(\cn, 4);
b = a.transpose(PitchInterval(\minor, 3))
b.pitch

returns:

ef


Best,

Josh

On Mar 17, 2008, at 3:06 PM, Andrea Valle wrote:

(Thanks Josh)

I'm in need of the contrary, midi --> name
I seem  to recall something but, hmm...

Is there anything ready or have I to implement something like that:

60.midinote 
// returms a string or a symbol
c4


Best

-a-

On 17 Mar 2008, at 20:32, Josh Parmenter wrote:

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

******************************************
/* Joshua D. Parmenter

“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

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------


"
Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty
"
(Ken Perlin on noise)





_______________________________________________
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