[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Pdef and midi out



Hi 

sorry for posting this thing again and again. Has someone a brief
explanation on how to send out notes with Pdefs?
this didn't work:

MIDIClient.init;

m = MIDIOut(0, MIDIClient.destinations.at(1).uid);

Pdef(\bell1,\type,\midi,Pbind(\note, Pseq([60],inf))).play

throws this error:



a Pdef
ERROR: Message 'noteOn' not understood.
RECEIVER:
   nil
ARGS:
   Integer 0
Instance of Function {    (B61D3BD0, gc=84, fmt=00, flg=00, set=01)
  instance variables [2]
    def : instance of FunctionDef - closed
    context : Frame (B69FD310) of Interpreter-functionCompileContext
}
   Integer 12
CALL STACK:
	DoesNotUnderstandError-reportError   B5045080
		arg this = <instance of DoesNotUnderstandError>
	Nil-handleError   B5044F00
		arg this = nil
		arg error = <instance of DoesNotUnderstandError>
	Object-throw   B5044C30
		arg this = <instance of DoesNotUnderstandError>
	Object-doesNotUnderstand   B5044D50
		arg this = nil
		arg selector = 'noteOn'
		arg args = [*3]
	Function-awake   B5951FB0
		arg this = <instance of Function>
		arg beats = 3.2
		arg seconds = 1125594621.4376929
		arg clock = <instance of TempoClock>
		var time = 1125594621.4376929
ERROR: Message 'noteOff' not understood.
RECEIVER:
   nil
ARGS:
   Integer 0
Instance of Function {    (B61D3BD0, gc=84, fmt=00, flg=00, set=01)
  instance variables [2]
    def : instance of FunctionDef - closed
    context : Frame (B69FD310) of Interpreter-functionCompileContext
}
   Integer 12
CALL STACK:
	DoesNotUnderstandError-reportError   B5045B90
		arg this = <instance of DoesNotUnderstandError>
	Nil-handleError   B50459B0
		arg this = nil
		arg error = <instance of DoesNotUnderstandError>
	Object-throw   B50456E0
		arg this = <instance of DoesNotUnderstandError>
	Object-doesNotUnderstand   B50457D0
		arg this = nil
		arg selector = 'noteOff'
		arg args = [*3]
	Function-awake   B59516F0
		arg this = <instance of Function>
		arg beats = 4.0
		arg seconds = 1125594621.837693
		arg clock = <instance of TempoClock>
		var time = 1125594621.837693