[Csnd] OSClisten issue?
Date | 2018-08-03 18:01 |
From | Dave Seidel |
Subject | [Csnd] OSClisten issue? |
Hi all.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
I have the following code: kk = OSClisten(gi_osc_handle, "/implication_organ/preset", "ffffffffffffffffffffffffffffff", kp1, kp2, kp3, kp4, kp5, kp6, kp7, kp8, kp9, kp10, kp11, kp12, kp13, kp14, kp15, kp16, kp17, kp18, kp19, kp20, kp21, kp22, kp23, kp24, kp25, kp26, kp27, kp28, kp29, kp30) when I run Csound, I get: INIT ERROR in instr 2 (opcode read_osc): invalid number of arguments kk OSClisten gi_osc_handle "/implication_organ/preset" "ffffffffffffffffffffffffffffff" kp1 kp2 kp3 kp4 kp5 kp6 kp7 kp8 kp9 kp10 kp11 kp12 kp13 kp14 kp15 kp16 kp17 kp18 kp19 kp20 kp21 kp22 kp23 kp24 kp25 kp26 kp27 kp28 kp29 kp30 What am I doing wrong? I have 30 output variables and 30 'f's. (BTW, have tried this with the old-style syntax with the same result.) Thanks, Dave |
Date | 2018-08-03 19:37 |
From | jpff |
Subject | Re: [Csnd] OSClisten issue? |
For reasons I cannot remember there us a limit of 28 to the number of arguments to OSClisten On Fri, 3 Aug 2018, Dave Seidel wrote: > Hi all. > I have the following code: > > kk = OSClisten(gi_osc_handle, "/implication_organ/preset", > "ffffffffffffffffffffffffffffff", > kp1, kp2, kp3, kp4, kp5, kp6, kp7, kp8, kp9, kp10, > kp11, kp12, kp13, kp14, kp15, kp16, kp17, kp18, kp19, kp20, > kp21, kp22, kp23, kp24, kp25, kp26, kp27, kp28, kp29, kp30) > > when I run Csound, I get: > > INIT ERROR in instr 2 (opcode read_osc): invalid number of arguments > kk OSClisten gi_osc_handle "/implication_organ/preset" > "ffffffffffffffffffffffffffffff" kp1 kp2 kp3 kp4 kp5 kp6 kp7 kp8 kp9 kp10 kp11 > kp12 kp13 kp14 kp15 kp16 kp17 kp18 kp19 kp20 kp21 kp22 kp23 kp24 kp25 kp26 > kp27 kp28 kp29 kp30 > > What am I doing wrong? I have 30 output variables and 30 'f's. (BTW, have > tried this with the old-style syntax with the same result.) > > Thanks, > Dave > Csound mailing list Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to > https://github.com/csound/csound/issues Discussions of bugs and features can > be posted here > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2018-08-03 19:43 |
From | jpff |
Subject | Re: [Csnd] OSClisten issue? |
More detail; the limit is 32 minus a few housekeping as there is a 32bit mask used in the selection process. It couls be extended at some cost and possible instability -- the code is rather delicate. On Fri, 3 Aug 2018, Dave Seidel wrote: > Hi all. > I have the following code: > > kk = OSClisten(gi_osc_handle, "/implication_organ/preset", > "ffffffffffffffffffffffffffffff", > kp1, kp2, kp3, kp4, kp5, kp6, kp7, kp8, kp9, kp10, > kp11, kp12, kp13, kp14, kp15, kp16, kp17, kp18, kp19, kp20, > kp21, kp22, kp23, kp24, kp25, kp26, kp27, kp28, kp29, kp30) > > when I run Csound, I get: > > INIT ERROR in instr 2 (opcode read_osc): invalid number of arguments > kk OSClisten gi_osc_handle "/implication_organ/preset" > "ffffffffffffffffffffffffffffff" kp1 kp2 kp3 kp4 kp5 kp6 kp7 kp8 kp9 kp10 kp11 > kp12 kp13 kp14 kp15 kp16 kp17 kp18 kp19 kp20 kp21 kp22 kp23 kp24 kp25 kp26 > kp27 kp28 kp29 kp30 > > What am I doing wrong? I have 30 output variables and 30 'f's. (BTW, have > tried this with the old-style syntax with the same result.) > > Thanks, > Dave > Csound mailing list Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to > https://github.com/csound/csound/issues Discussions of bugs and features can > be posted here > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2018-08-03 19:50 |
From | Dave Seidel |
Subject | Re: [Csnd] OSClisten issue? |
Disappointing, but thanks for the explanation. I'm using Lemur to create a UI, and using their "Switches" object in radio-button mode. There are 30 different presets from which to select. I guess I will need to find a different way to do it. This should really be documented in the manual, as no limit is indicated. On Fri, Aug 3, 2018 at 2:43 PM jpff <jpff@codemist.co.uk> wrote: More detail; the limit is 32 minus a few housekeping as there is a 32bit
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
|