Workaround (sorry if the formatting is poor). The idea is to use a
custom-named class to return an instance of Pitch, which the server
will understand.
MyPitch {
*kr { arg in = 0.0, initFreq = 440.0, minFreq = 60.0, maxFreq =
4000.0,
execFreq = 100.0, maxBinsPerOctave = 16, median = 1,
ampThreshold = 0.01, peakThreshold = 0.5, downSample = 1;
^Pitch.kr(in, initFreq, minFreq, maxFreq, execFreq, maxBinsPerOctave,
median, ampThreshold, peakThreshold, downSample);
}
}
hjh
On 8/26/05, nick collins <nikolaicollinsky@xxxxxxxxxxx> wrote:
best not to change the Pitch UGen's name, it's possible but you'd have
to alter the source code for this (and it would only work on your
system). I think you should assume that all UGen names are reserved
words and change your own Pitch class to something even more
descriptive of its functionality.