Hi,

Please send me the DSP code, or even better a reduced DSP example that shows 
the problem.

Stéphane 


> Le 31 déc. 2018 à 16:36, Mykle James Hansen <my...@mykle.com> a écrit :
> 
> Hi, can I ask some advice?
> 
> I’m trying to compile a 60-line Faust program into a standalone app, 
> but Faust is generating some code that won’t compile on my system.
> The code tries to use a float as the argument to the modulo
> operator (%), yielding the error message in the subject line.
> Anybody seen this before?  
> 
> I’m experiencing this when I try to run faust2caqt — it dies with 
> a compiler error:
> 
>> looper3.cpp:16736:56: error: invalid operands to binary expression ('float' 
>> and 'float')
>>                        fRec4[0] = ((float(iSlow3) * (fRec1[0] + fRec4[1])) % 
>> fTemp2);
>>                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 
>> ~~~~~~
>> looper3.cpp:16737:42: error: invalid operands to binary expression ('float' 
>> and 'float')
>>                        ftbl0[int((iTemp1?((fRec4[0] + -1.0f) % 
>> fTemp2):131071.0f))] = fRec0[1];
>>                                           ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~
>> 
> 
> But the problem's not just faust2caqt.  Running just ‘faust looper3.dsp’ also 
> generates those lines.  
> 
> OTOH, I am able to run this same Faust program in FaustLive no
> problem, and I can also run it in the online editor.  
> 
> I just pulled and built the latest Faust compiler (master branch) to see if 
> that would help, but that didn’t seem to make a change.  
> Any advice would be most appreciated.
> 
> Yrs stumpedly,
> -mykle-
> 
> _______________________________________________
> Faudiostream-users mailing list
> Faudiostream-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users



_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to