Below is an error message and stack trace resulting from this:
(
Pn( (dur:Pn(1)) )
<> Pbind()
).play
It seems like it should work since this works:
(
Pn( (dur:1) )
<> Pbind()
).play
I can’t really understand the error message, though, to figure out what is going on.
-> an EventStreamPlayer
ERROR: Message 'schedBundleArrayOnClock' not understood.
RECEIVER:
Instance of Pbinop { (0x11cf8d6a8, gc=9C, fmt=00, flg=00, set=02)
instance variables [4]
operator : Symbol '+'
a : instance of Pbinop (0x11ac70fe8, size=4, set=2)
b : Integer 0
adverb : nil
}
ARGS:
Instance of TempoClock { (0x1148a7fa8, gc=A0, fmt=00, flg=00, set=03)
instance variables [7]
queue : instance of Array (0x11487d1c0, size=1, set=11)
ptr : RawPointer 0x7fd28a57bac0
beatsPerBar : Float 4.000000 00000000 40100000
barsPerBeat : Float 0.250000 00000000 3FD00000
baseBarBeat : Float 0.000000 00000000 00000000
baseBar : Float 0.000000 00000000 00000000
permanent : true
}
Instance of Array { (0x11a8c4e28, gc=9C, fmt=01, flg=00, set=02)
indexed slots [1]
0 : instance of Array (0x11acdd818, size=4, set=2)
}
Float 0.000000 00000000 00000000
Instance of Server { (0x1148b6908, gc=A0, fmt=00, flg=00, set=05)
instance variables [30]
name : Symbol 'localhost'
addr : instance of NetAddr (0x1148a83c8, size=4, set=2)
clientID : Integer 0
isLocal : true
inProcess : false
sendQuit : true
remoteControlled : false
maxNumClients : Integer 1
options : instance of ServerOptions (0x1148acbb8, size=38, set=6)
latency : Float 0.200000 9999999A 3FC99999
dumpMode : Integer 0
nodeAllocator : instance of NodeIDAllocator (0x11b4fcca8, size=7, set=3)
controlBusAllocator : instance of ContiguousBlockAllocator (0x1147b7f08, size=6, set=3)
audioBusAllocator : instance of ContiguousBlockAllocator (0x11473e2a8, size=6, set=3)
bufferAllocator : instance of ContiguousBlockAllocator (0x1146e84a8, size=6, set=3)
scopeBufferAllocator : instance of StackNumberAllocator (0x11b3389f8, size=4, set=2)
tree : nil
defaultGroup : instance of Group (0x11b47c158, size=5, set=3)
defaultGroups : instance of Array (0x11b3a8748, size=1, set=2)
syncThread : nil
syncTasks : nil
window : nil
scopeWindow : nil
emacsbuf : nil
volume : instance of Volume (0x1148b2278, size=15, set=4)
recorder : instance of Recorder (0x1148b1e78, size=14, set=4)
statusWatcher : instance of ServerStatusWatcher (0x1148b6b38, size=20, set=5)
pid : Integer 64513
serverInterface : instance of ServerShmInterface (0x11ac22da8, size=2, set=2)
pidReleaseCondition : instance of Condition (0x1148ab878, size=2, set=2)
}
nil
PROTECTED CALL STACK:
Meta_MethodError:new 0x116366380
arg this = DoesNotUnderstandError
arg what = nil
arg receiver = a Pbinop
Meta_DoesNotUnderstandError:new 0x116368340
arg this = DoesNotUnderstandError
arg receiver = a Pbinop
arg selector = schedBundleArrayOnClock
arg args = [ a TempoClock, [ [ 15, 1283, gate, 0 ] ], 0.0, localhost, nil ]
Object:doesNotUnderstand 0x11b0cd640
arg this = a Pbinop
arg selector = schedBundleArrayOnClock
arg args = nil
a FunctionDef 0x119919bc0
sourceCode = "#{
var tempo, server, eventTypes, parentType;
parentType = ~parentTypes[~type];
parentType !? { currentEnvironment.parent = parentType };
server = ~server = ~server ? Server.default;
~finish.value(currentEnvironment);
tempo = ~tempo;
tempo !? { thisThread.clock.tempo = tempo };
if(currentEnvironment.isRest.not) {
eventTypes = ~eventTypes;
(eventTypes[~type] ?? { eventTypes[\\note] }).value(server)
};
~callback.value(current...etc..."
var tempo = nil
var server = localhost
var eventTypes = ( 'fadeBus': a Function, 'freeAllocWrite': a Function, 'tree': a Function, 'vst_set': a Function,
'instr': a Function, 'on': a Function, 'load': a Function, 'freeBuffer': a Function, 'group': a Function,
'freeAllocRead': a Function, 'allocWrite': a Function, 'cue': a Function, 'grain': a Function, 'Synth': a Function,
'vst_midi': a Function, 'freeAllocWriteID': a Function, 'rest': a Function, 'alloc': a Function, 'sine2': a Function,
'sine1': a Function, 'midi': a Function, 'set': a Function, 's...etc...
var parentType = nil
a FunctionDef 0x1198cfbc0
sourceCode = "<an open Function>"
Function:prTry 0x116e8e4c0
arg this = a Function
var result = nil
var thread = a Routine
var next = nil
var wasInProtectedFunc = false
CALL STACK:
DoesNotUnderstandError:reportError
arg this = <instance of DoesNotUnderstandError>
Nil:handleError
arg this = nil
arg error = <instance of DoesNotUnderstandError>
Thread:handleError
arg this = <instance of Thread>
arg error = <instance of DoesNotUnderstandError>
Thread:handleError
arg this = <instance of Routine>
arg error = <instance of DoesNotUnderstandError>
Object:throw
arg this = <instance of DoesNotUnderstandError>
Function:protect
arg this = <instance of Function>
arg handler = <instance of Function>
var result = <instance of DoesNotUnderstandError>
Environment:use
arg this = <instance of Event>
arg function = <instance of Function>
var result = nil
var saveEnvir = <instance of Environment>
Event:play
arg this = <instance of Event>
Event:playAndDelta
arg this = <instance of Event>
arg cleanup = <instance of EventStreamCleanup>
arg mute = false
EventStreamPlayer:prNext
arg this = <instance of EventStreamPlayer>
arg inTime = 233.63841868303
var nextTime = nil
var outEvent = <instance of Event>
< FunctionDef in Method EventStreamPlayer:init >
arg inTime = 233.63841868303
Routine:prStart
arg this = <instance of Routine>
arg inval = 233.63841868303
^^ The preceding error dump is for ERROR: Message 'schedBundleArrayOnClock' not understood.
RECEIVER: a Pbinop