[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] [linux][quarks] VoicerMIDISocket problem
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] [linux][quarks] VoicerMIDISocket problem
- From: krgn <k.gebbert@xxxxxxxxx>
- Date: Sun, 30 Nov 2008 19:54:06 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=8eBG338Biq0cmB7xXU4+I1AOlgqpEMjGObccRd409K0=; b=V5dCIhlwnh58sywjsA7dFElPXbng9KI+aICvP3mVzYBT/KLFVixQJepnHRIHLnjK13 pQzZChihEHljJvreQUHbyrD+jM46LmgIk364AUbUwlCTKHoeUnnlMxrDpg2Q+ew/TSgt rmkXcCiM2qjxwrnYpBjyhlBE7Il9VzEAhj+rs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=KoY44BYvNxUEifvVTzX/bRfs7GBXP/uDKQGa2zvitXY8hePfLebXQYQBhYpDihO/aR h1TUZ/bYUEvzD53+6dJvWCZyG4tlIIb+HQodQqRkzNginv0OuWuG4QKvsLvrYb0vWcfN 5hKvnXRZMrJ7pnsUijXlUxfhNUbQYvIY8OvtE=
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Hi James and All,
today I tried VoicerMIDISocket and unfortunately it doesn't work with the code below (taken from the examples). It throws the error I pasted below the codeblock:
MIDIClient.init;
(
i = Instr([\test, \miditest], {
arg freq = 440, gate = 0, env, pb = 1, ffreq = 1000, rq = 1;
var out, amp;
amp = Latch.kr(gate, gate); // velocity sensitivity
out = EnvGen.kr(env, gate, doneAction:2) *
RLPF.ar(Pulse.ar(freq * pb, 0.25, amp), ffreq, rq);
[out,out]
}, [\freq, \amp, nil, nil, \freq, \rq]);
v = Voicer(10, i, [\env, Env.adsr(0.01, 0.2, 0.75, 0.1), \rq, `0.2]);
k = VoicerMIDISocket(0, v);
k.addControl(1, \ffreq, 1000, \freq); // filt. cutoff by mw
k.addControl(\pb, \pb, 1, 3); // 3-semitone bend
//v.gui; // the controllers show up in the window, w/ visual feedback when you move the wheels
)
//free when done
v.free
//---------------------------------------------------------------------------
// the error
//---------------------------------------------------------------------------
InstrSynthDef built: miditest*-598608799
InstrSynthDef built: miditest*1105254662
a VoicerMIDISocket
ERROR: Message 'at' not understood.
RECEIVER:
nil
ARGS:
Integer 0
CALL STACK:
DoesNotUnderstandError:reportError B77AD160
arg this = <instance of DoesNotUnderstandError>
Nil:handleError B77AD1F0
arg this = nil
arg error = <instance of DoesNotUnderstandError>
Thread:handleError B77AADA0
arg this = <instance of Thread>
arg error = <instance of DoesNotUnderstandError>
Object:throw B77AA9E0
arg this = <instance of DoesNotUnderstandError>
Object:doesNotUnderstand B77A8DF0
arg this = nil
arg selector = 'at'
arg args = [*1]
< FunctionDef in Method Meta_MIDIPort:init > B78637F0
arg src = "">
arg chan = 0
arg note = 67
arg vel = 127
MIDIResponder:value B785EE70
arg this = <instance of NoteOnResponder>
arg src = ""> arg chan = 0
arg a = 67
arg b = 127
MIDIResponder:respond B785DF20
arg this = <instance of NoteOnResponder>
arg src = ""> arg chan = 0
arg num = 67
arg value = 127
< FunctionDef in Method Collection:any > B779DFA0
arg elem = <instance of NoteOnResponder>
arg i = 0
ArrayedCollection:do B779E240
arg this = [*1]
arg function = <instance of Function>
var i = 0
Collection:any B77A8C40
arg this = [*1]
arg function = <instance of Function>
Meta_MIDIIn:doNoteOnAction B7848870
arg this = class MIDIIn
arg src = "">
arg chan = 0
arg num = 67
arg veloc = 127
//---------------------------------------------------------------------------
Also, when I call .gui on the VoicerMIDISocket I get this error. I'm using SwingOSC 0.60.
ERROR: Message 'recursiveResize' not understood.
RECEIVER:
Instance of StartRow { (091E14F0, gc=68, fmt=00, flg=00, set=01)
instance variables [1]
view : nil
}
ARGS:
CALL STACK:
DoesNotUnderstandError:reportError B775AC00
arg this = <instance of DoesNotUnderstandError>
Nil:handleError B775B990
arg this = nil
arg error = <instance of DoesNotUnderstandError>
Thread:handleError B775A3C0
arg this = <instance of Thread>
arg error = <instance of DoesNotUnderstandError>
Object:throw B7759790
arg this = <instance of DoesNotUnderstandError>
SCViewHolder:doesNotUnderstand 08116500
arg this = <instance of StartRow>
arg selector = 'recursiveResize'
arg args = [*0]
var result = nil
ArrayedCollection:do B775A210
arg this = [*7]
arg function = <instance of Function>
var i = 5
JSCContainerView:recursiveResize B7761AF0
arg this = <instance of JSCCompositeView>
SCViewHolder:doesNotUnderstand 08058DE0
arg this = <instance of FlowView>
arg selector = 'recursiveResize'
arg args = [*0]
var result = nil
ArrayedCollection:do B776CC80
arg this = [*1]
arg function = <instance of Function>
var i = 0
JSCContainerView:recursiveResize B7758AD0
arg this = <instance of JSCCompositeView>
SCViewHolder:doesNotUnderstand 08F53870
arg this = <instance of FixedWidthFlowView>
arg selector = 'recursiveResize'
arg args = [*0]
var result = nil
ResizeFlowWindow:recursiveResize B776F6D0
arg this = <instance of ResizeHeightFlowWindow>
ResizeFlowWindow:resizeToFit B777D9F0
arg this = <instance of ResizeHeightFlowWindow>
ObjectGui:gui 08F504F0
arg this = <instance of VoicerProxyGui>
arg lay = nil
arg bounds = nil
arg args = [*0]
var layout = <instance of ResizeHeightFlowWindow>
Interpreter:interpretPrintCmdLine B77327A0
arg this = <instance of Interpreter>
var res = nil
var func = <instance of Function>
var code = "v.gui; // the controllers sh..."
Process:interpretPrintCmdLine B7782A20
arg this = <instance of Main>
I should add that my quarks are up-to-date and so is SC (latest svn). Am I missing an important step here?
Thank you,
Karsten
--
( c * k ) ^ g