[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] Ndef errors out with Pbind \type \instr
How come this?
(I have cxaudio loaded and it's Instr are in my Library)
( // compiles wihout error
Pdef(\foobar).play;
Pdef(\foobar,
Pbind(
\type, \instr,
\instr, "cymbals.tonal"
)
)
)
( // error see below
Ndef(\foobar).play;
Ndef(\foobar, // error
Pbind(
\type, \instr,
\instr, "cymbals.tonal"
)
)
)
Thank You for Your Attention
(Error dump from above)
ERROR: Message 'asGroup' not understood.
RECEIVER:
Instance of Function { (0x78819d8, gc=80, fmt=00, flg=00, set=02)
instance variables [2]
def : instance of FunctionDef in Method Event:buildForProxy
context : Frame (0x6ed0d88) of Event:buildForProxy
}
ARGS:
PROTECTED CALL STACK:
Meta_MethodError:new 0x2e81700
arg this = DoesNotUnderstandError
arg what = nil
arg receiver = a Function
Meta_DoesNotUnderstandError:new 0x2e836c0
arg this = DoesNotUnderstandError
arg receiver = a Function
arg selector = asGroup
arg args = [ ]
Object:doesNotUnderstand 0x291df80
arg this = a Function
arg selector = asGroup
arg args = nil
AbstractPlayer:play 0x31aaf80
arg this = Patch("cymbals.tonal")
arg group = a Function
arg atTime = 0.2
arg bus = nil
var timeOfRequest = 33.974273456
a FunctionDef 0x404c640
sourceCode = "<an open Function>"
arg server = localhost
var instr = Instr("cymbals.tonal")
var instrArgs = [ an IrNumberEditor, an IrNumberEditor, an
IrNumberEditor, an IrNumberEditor, an IrNumberEditor, an IrNumberEditor ]
var patch = Patch("cymbals.tonal")
a FunctionDef 0x3e78c00
sourceCode = "#{
var tempo, server, eventTypes, parentType;
parentType = ~parentTypes[~type];
parentType !? { currentEnvironment.parent =
parentType };
~finish.value(currentEnvironment);
server = ~server ? Server.default;
tempo = ~tempo;
tempo !? { thisThread.clock.tempo = tempo };
if(currentEnvironment.isRest.not) {
eventTypes = ~eventTypes;
(eventTypes[~type] ?? { eventTypes[\\note]
}).value(server)
};
~callback.value(currentEnvironmen...etc..."
var tempo = nil
var server = localhost
var eventTypes = ( 'fadeBus': a Function, 'freeAllocWrite': a
Function, 'tree': 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, 'freeAllocWriteID': a Function,
'rest': a Function, 'alloc': a Function, 'sine2': a Function,
'sine1': a Function, 'midi': a Function,
'set': a Function, 'setProperties': a Function, 'parGroup': a
Functi...etc...
var parentType = nil
a FunctionDef 0x3e24100
sourceCode = "<an open Function>"
Function:prTry 0x311b8c0
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 = 33.122809284
var nextTime = nil
var outEvent = <instance of Event>
< FunctionDef in Method EventStreamPlayer:init >
arg inTime = 33.122809284
Routine:prStart
arg this = <instance of Routine>
arg inval = 33.122809284
^^ The preceding error dump is for ERROR: Message 'asGroup' not understood.
RECEIVER: a Function
--
Time is an imaginary number. Entropy always wins.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/