home/ atoms/ sc-pbind-pitch-hierarchy

Pbind has a built-in pitch hierarchy: midinote, note, degree all resolve to freq if the SynthDef uses 'freq'

If a SynthDef uses the argument name freq for pitch, Pbind can accept alternative pitch keys that sit higher in a predefined hierarchy: degree (scale degree), note (chromatic offset), midinote (MIDI note number 0-127), and freq (Hz). These are automatically converted to freq by the event system. The hierarchy is only activated by the conventional argument name freq; if your SynthDef uses hz or cycles, the conversion chain breaks and you must supply freq or your argument name directly. Similarly, harmonic combined with midinote enables partial-series pitch specification.

Examples

\midinote, Pseq([60,65,67,74], inf) — works if SynthDef has arg freq. \harmonic, Pexprand(1,80,inf).round, \midinote, 33 — generates overtones of a 55 Hz fundamental.

Assessment

A SynthDef uses arg hz=440. You set \midinote, 60 in a Pbind. What pitch do you hear and why? How would you fix it?

“if you use freq, lowercase f-r-e-q in your SynthDef for the pitch of your sound, then you have the option of using midinote, note, or degree in your Pbind.”
corpus · supercollider-tutorials-full-transcripts-and-code-eli-fields · chunk 26