I'm getting a strange error with .sort on a Score. I hope I'm not misunderstanding the syntax of the .add method.
If have have the following:
(
x = [
[0.0, [\b_allocRead, 0, "/scsound/blackman.wav"]],
[0.0, [\b_allocRead, 1, "/scsound/blackmanHarris.wav"]],
[0.0, [\b_allocRead, 2, "/scsound/nuttall.wav"]],
[0.0, [\b_allocRead, 3, "/scsound/sinc.wav"]],
[0.0, [\b_allocRead, 4, "/Users/Scott/Compositions/PercElec/OperaGongs/cogong3-7.wav"]],
[0.0, [\b_allocRead, 5, "/Users/Scott/Compositions/PercElec/Bongos/bongo4-1.wav"]],
[0.0, [\b_allocRead, 6, "/Users/Scott/Compositions/PercElec/Bongos/bongo3-1.wav"]],
[0.0, [\b_allocRead, 7, "/Users/Scott/Compositions/PercElec/Bongos/bongo4-2.wav"]]
]
)
(
a = Pbind(
\instrument, \fileGran,
\sndbuf, 4,
\windowbuf, 2,
\freq, Pseq([\rest, Pwhite(1,1)]),
\delta, Pseq([1, Pwhite(0.005, 0.01, 730)]),
\beg, Env([1000, 10000], [5]),
\end, Pkey(\beg) + Env([100, 10000], [5]),
\pan, Env([-1, 0.5, -0.5, 0.2, 1, 0], [5, 5, 5, 5, 6]),
\trans, 1.8,
\db, Env([-60, 0, -80], [3, 3])
);
)
d = a.asScore(7.5);
d.add(x);
d.sort;
The d.sort throws this error:
ERROR: Message '>=' not understood.
RECEIVER:
nil
ARGS:
Integer 0
CALL STACK:
DoesNotUnderstandError:reportError 061B3430
arg this = <instance of DoesNotUnderstandError>
Nil:handleError 064A3810
arg this = nil
arg error = <instance of DoesNotUnderstandError>
Thread:handleError 064A3D50
arg this = <instance of Thread>
arg error = <instance of DoesNotUnderstandError>
Object:throw 064A4470
arg this = <instance of DoesNotUnderstandError>
Object:doesNotUnderstand 064A47D0
arg this = nil
arg selector = '>='
arg args = [*1]
< FunctionDef in Method Collection:collectAs > 064A5370
arg elem = "/scsound/blackman.wav"
arg i = 2
ArrayedCollection:do 064A57F0
arg this = [*3]
arg function = <instance of Function>
var i = 2
Collection:collectAs 06528990
arg this = [*3]
arg function = <instance of Function>
arg class = class Array
var res = [*2]
< FunctionDef in Method Collection:collectAs > 064A5490
(there's more after this that I'm assuming isn't necessary to debug, but I can post if needed).
Thanks very much,
sw
--
Scott Worthington
stwbass@...www.scottworthington.com