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

[sc-users] [linux][quarks] VoicerMIDISocket problem



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