[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Overwriting names of classes/ugens
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.
--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman