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

Re: [sc-users] Output bus arrays via routine or "GraphDef_Recv: name too long".



Demand UGens can't be used as inputs to other UGens without pulling
values from them using Demand.kr.

Since you have Dseq([-1, 1], inf) used directly as a TGrains input,
that's probably creating a corrupt synthdef.


Demand ugens can be used as input to grain ugens directly. So this is not the problem.



hjh

On Wed, Mar 11, 2009 at 1:46 PM, schrimshaw <will@xxxxxxxxxxxxxxxxxx> wrote:

 Hello.
 Can anyone tell me what this means, and what I might do about it:
 exception in GraphDef_Recv: name too long > 31 chars

        SynthDef(\gran, {
                arg trate = 100, pos = 44100, rate = 1, buf = 0, vol = 0.6;
                var dur, out;
                dur = 4 / (trate / 2.2);
                out = Control.names([\out]).kr(Array.new(8));
                //rate = Dseq([10, 1, 1, 0.5, 0.5, 0.2, 0.1], inf);

Out.ar(out, TGrains.ar(2, Impulse.ar(LinLin.kr(trate, 0, 600, 1.0, 70.1)),
 buf, rate, LinLin.kr(pos, 0, 600, BufDur.kr(buf),0), dur, Dseq([-1, 1],
 inf), vol, 4));

        }).send(s);

 I've also tried this:

        SynthDef(\gran, {
                arg trate = 100, pos = 44100, rate = 1, buf = 0, vol = 0.6;
                var dur, out;
                dur = 4 / (trate / 2.2);
                out = Control.names([\out]).kr(Array.newClear(8));
                //rate = Dseq([10, 1, 1, 0.5, 0.5, 0.2, 0.1], inf);

Out.ar(out, TGrains.ar(2, Impulse.ar(LinLin.kr(trate, 0, 600, 1.0,
 70.1)), buf, rate, LinLin.kr(pos, 0, 600, BufDur.kr(buf),0), dur, Dseq([-1,
 1],                                     inf), vol, 4));

        }).send(s);


 But this results in this:

 ERROR: Message 'asFloat' not understood.
 RECEIVER:
   nil
 ARGS:
 CALL STACK:
        DoesNotUnderstandError:reportError   15425700
                arg this = <instance of DoesNotUnderstandError>
        Nil:handleError   1910A840
                arg this = nil
                arg error = <instance of DoesNotUnderstandError>
        Thread:handleError   190FF660
                arg this = <instance of Thread>
                arg error = <instance of DoesNotUnderstandError>
        Object:throw   1558D3B0
                arg this = <instance of DoesNotUnderstandError>
        Object:doesNotUnderstand   190AD040
                arg this = nil
                arg selector = 'asFloat'
  ... etc ...

 This almost works:

        SynthDef(\gran, {
                arg trate = 100, pos = 44100, rate = 1, buf = 0, vol = 0.6;
                var dur, out;
                dur = 4 / (trate / 2.2);
                out = Control.names([\out]).kr(Array.newClear(8).fill(0));
                //rate = Dseq([10, 1, 1, 0.5, 0.5, 0.2, 0.1], inf);

Out.ar(out, TGrains.ar(2, Impulse.ar(LinLin.kr(trate, 0, 600, 1.0,
 70.1)), buf, rate, LinLin.kr(pos, 0, 600, BufDur.kr(buf),0), dur, Dseq([-1,
 1],     inf), vol, 4));

        }).send(s);

 ... but the problem with this is that each time the synth is called by a
 routine it automatically outputs on bus 0 rather than the bus I actually
 want it to output to.

 How can I sort out this Array so it is not interpreted as containing floats
 yet doesn't contain any values, which are to be specified later?

 Cheers,

 Will.



 --
View this message in context: http://www.nabble.com/Output-bus-arrays-via-routine-or-%22GraphDef_Recv%3A-name-too-long%22.-tp22460648p22460648.html
 Sent from the Supercollider - User mailing list archive at Nabble.com.


 _______________________________________________
 sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
 archive: https://listarc.bham.ac.uk/marchives/sc-users/
 search: https://listarc.bham.ac.uk/lists/sc-users/search/




--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/


--





.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/