[Csnd] OSClisten issue?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] OSClisten issue?

Dave Seidel
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 [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] OSClisten issue?

jpff
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 [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] OSClisten issue?

jpff
In reply to this post by Dave Seidel
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 [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] OSClisten issue?

Dave Seidel
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 <[hidden email]> wrote:
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 [hidden email]
> 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
[hidden email]
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 [hidden email] 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