Csound Csound-dev Csound-tekno Search About

[Csnd] faust2csound?

Date2020-03-27 10:16
Fromanders.vinjar@BEK.NO
Subject[Csnd] faust2csound?
Attachmentstestonepole.csd  testonepole.csd  testonepole.dsp.cpp  None  
Hi Csounders!

I want to build an opcode designed with faust, using the faust2csound
script, but the resulting .so doesn't work. It's possibly related to a
post in the csound-user archives:

>>>>> On Thu, 29 Nov 2018 10:21:57 +0000, Victor Lazzarini  said:

    V> It looks like the faust online compiler is not producing a good
    V> dylib on OSX. I compiled your code here and it seems to work. But
    V> I had to modify faust2csound for it work.

    V> I have informed the Faust devs.

I'm on fedora 31.  Checked both with current git master and stable
package of csound and faust/faust-tools.

Using the simple .dsp attached to test, csound says the .so gets loaded:

        Loading command-line libraries:
           ./testonepole.so

but further down:

   ...
   new alloc for instr 1:
   null opadr[m
   [mEarly return from csoundPerform().
   inactive allocs returned to freespace
   end of score.		   overall amps:  0.00000


Thanks for any pointers.

-anders

Here are the .dsp plus .csd, plus the intermediate .cpp, and a log from
trying to compile with csound:


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

Date2020-03-27 14:04
FromJohn ff
SubjectRe: [Csnd] faust2csound?
That error suggests that the OENTRY line for your opcode is wrong.  I do not read c++ but my guess is that the number after the name is asking for a performance or initialisation that is not provided.

⁣Sent from TypeApp ​

On Mar 27, 2020, 10:27, at 10:27, anders.vinjar@bek.no wrote:
>Hi Csounders!
>
>I want to build an opcode designed with faust, using the faust2csound
>script, but the resulting .so doesn't work. It's possibly related to a
>post in the csound-user archives:
>
>>>>>> On Thu, 29 Nov 2018 10:21:57 +0000, Victor Lazzarini
> said:
>
>    V> It looks like the faust online compiler is not producing a good
>   V> dylib on OSX. I compiled your code here and it seems to work. But
>    V> I had to modify faust2csound for it work.
>
>    V> I have informed the Faust devs.
>
>I'm on fedora 31.  Checked both with current git master and stable
>package of csound and faust/faust-tools.
>
>Using the simple .dsp attached to test, csound says the .so gets
>loaded:
>
>        Loading command-line libraries:
>           ./testonepole.so
>
>but further down:
>
>   ...
>   new alloc for instr 1:
>   null opadr[m
>   [mEarly return from csoundPerform().
>   inactive allocs returned to freespace
>   end of score.		   overall amps:  0.00000
>
>
>Thanks for any pointers.
>
>-anders
>
>Here are the .dsp plus .csd, plus the intermediate .cpp, and a log from
>trying to compile with csound:
>
>
>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

Date2020-03-27 14:14
FromJohn ff
SubjectRe: [Csnd] faust2csound?
Looking again you have a threads of 7 but the 2 field is null.  In the entry change 7 to 5

⁣Sent from TypeApp ​

On Mar 27, 2020, 10:27, at 10:27, anders.vinjar@bek.no wrote:
>Hi Csounders!
>
>I want to build an opcode designed with faust, using the faust2csound
>script, but the resulting .so doesn't work. It's possibly related to a
>post in the csound-user archives:
>
>>>>>> On Thu, 29 Nov 2018 10:21:57 +0000, Victor Lazzarini
> said:
>
>    V> It looks like the faust online compiler is not producing a good
>   V> dylib on OSX. I compiled your code here and it seems to work. But
>    V> I had to modify faust2csound for it work.
>
>    V> I have informed the Faust devs.
>
>I'm on fedora 31.  Checked both with current git master and stable
>package of csound and faust/faust-tools.
>
>Using the simple .dsp attached to test, csound says the .so gets
>loaded:
>
>        Loading command-line libraries:
>           ./testonepole.so
>
>but further down:
>
>   ...
>   new alloc for instr 1:
>   null opadr[m
>   [mEarly return from csoundPerform().
>   inactive allocs returned to freespace
>   end of score.		   overall amps:  0.00000
>
>
>Thanks for any pointers.
>
>-anders
>
>Here are the .dsp plus .csd, plus the intermediate .cpp, and a log from
>trying to compile with csound:
>
>
>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