Csound Csound-dev Csound-tekno Search About

[Csnd] Questions on using opcodes built from Faust (parameters)

Date2026-09-15 21:03
From"Jeanette C." <000015cdd0ffa6cd-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] Questions on using opcodes built from Faust (parameters)
Hello again,
so now I can load an opcode which was compiled from Faust using faust2csound. 
So it is an external library.

Now, I wonder how the parameters work. Is there a system to it, or is it trial 
and error?

I assumed that the parameters to the Csound opcode might be in the order of 
their appearance in the Faust dsp code. But that isn't right. I could only 
work out one parameter safely. Anyway, Csound would only accept six 
parameters, whereas the Faust code specifies 7 hsliders. Is that perhaps a 
limit I should be aware of?

I'd appreciate any help.

Best wishes,

Jeanette

--
  * PeerTube: https://makertube.net/@jeanette_c
  * GitHub: https://github.com/jeanette-c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g

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

Date2026-09-16 09:18
FromEduardo Moguillansky
SubjectRe: [Csnd] Questions on using opcodes built from Faust (parameters)
I would take a look at the generated c++ code

On Tue, Sep 15, 2026 at 10:02 PM Jeanette C. <000015cdd0ffa6cd-dmarc-request@listserv.heanet.ie> wrote:
Hello again,
so now I can load an opcode which was compiled from Faust using faust2csound.
So it is an external library.

Now, I wonder how the parameters work. Is there a system to it, or is it trial
and error?

I assumed that the parameters to the Csound opcode might be in the order of
their appearance in the Faust dsp code. But that isn't right. I could only
work out one parameter safely. Anyway, Csound would only accept six
parameters, whereas the Faust code specifies 7 hsliders. Is that perhaps a
limit I should be aware of?

I'd appreciate any help.

Best wishes,

Jeanette

--
  * PeerTube: https://makertube.net/@jeanette_c
  * GitHub: https://github.com/jeanette-c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g

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

Date2026-09-16 16:12
From"Jeanette C." <000015cdd0ffa6cd-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] Questions on using opcodes built from Faust (parameters)
Hi Eduardo,
thanks for that tip. With a little more digging I found the answers. By 
default k-rate parameters are ordered alphabetically. Prefixing the names of 
UI components with
[n]
where n is an integer, you can specify the order of parameters to be used. -- 
Just in case anyone else might be wondering.

Best wishes,

Jeanette

Eduardo Moguillansky, Sep 16 2026:

> I would take a look at the generated c++ code
>
> On Tue, Sep 15, 2026 at 10:02 PM Jeanette C. <
> 000015cdd0ffa6cd-dmarc-request@listserv.heanet.ie> wrote:
>
>> Hello again,
>> so now I can load an opcode which was compiled from Faust using
>> faust2csound.
>> So it is an external library.
>>
>> Now, I wonder how the parameters work. Is there a system to it, or is it
>> trial
>> and error?
>>
>> I assumed that the parameters to the Csound opcode might be in the order
>> of
>> their appearance in the Faust dsp code. But that isn't right. I could only
>> work out one parameter safely. Anyway, Csound would only accept six
>> parameters, whereas the Faust code specifies 7 hsliders. Is that perhaps a
>> limit I should be aware of?
>>
>> I'd appreciate any help.
>>
>> Best wishes,
>>
>> Jeanette
>>
>> --
>>   * PeerTube: https://makertube.net/@jeanette_c
>>   * GitHub: https://github.com/jeanette-c
>>   * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
>>
>> 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
>

--
  * PeerTube: https://makertube.net/@jeanette_c
  * GitHub: https://github.com/jeanette-c
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g

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