Re: [Faudiostream-users] problem building VST3 via JUCE, AU works

2022-05-27 Thread Stéphane Letz
There were several issues, fixed here, textes with a simple stereo OSC, in 
-single and -double mode, AU et VST3 plugins, in Reaper.

https://github.com/grame-cncm/faust/commit/37c7c0a2da790eaa079fac2080dd03817e82c38a

Ca you test and report?

Thanks.

Stéphane 

> Le 27 mai 2022 à 16:51, Klaus Scheuermann  a écrit :
> 
> Hi,
> A relatively simple noisegate results in distortion both -double and single 
> as VST3. AU is fine.
>>> MacOS 12.15.7
> Xcode 12.4
> 
> @Juan Carlos: does it mean only AAX works in -double?
> 
> Klaus
> 
> 
> 
> import("stdfaust.lib");
> 
> init_noisegate_threshold = -70;
> 
> process = _,_ : noisegate(2) : _,_;
> 
> // NOISE GATE
> noisegate(N) = 
> gate_any(N,noisegate_thresh,noisegate_attack,noisegate_hold,noisegate_release)
>  with {
>   noisegate_thresh = vslider("[0]threshold",init_noisegate_threshold, -95, 0, 
> 1);
>   noisegate_attack = 0.01;
>   noisegate_hold = 1;
>   noisegate_release = 2;
> 
>   gate_any(N,thresh,att,hold,rel) = B <: B, (B :> ggm : vbargraph("[2]gate 
> level",0,1) <: B) : ro.interleave(N,2) : par(i,N,*)
>   with {
>   B = si.bus(N);
>   ggm = gate_gain_mono(thresh,att,hold,rel);
>   };
> 
>   gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : 
> an.amp_follower_ar(att,rel) with {
>   extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
>   rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
>   minrate = min(att,rel);
>   inlevel = an.amp_follower_ar(minrate,minrate);
>   holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
>   holdsig(x) = holdcounter(x) > 0;
>   holdreset(x) = rawgatesig(x) < rawgatesig(x)'; // reset hold when raw 
> gate falls
>   holdsamps = int(hold*ma.SR);
>   };
> };
> 
> 
>> On 27. May 2022, at 16:22, Juan Carlos Blancas  wrote:
>> 
>> Hi Klaus,
>> 
>> macOS 12.1, Xcode 13.3.1
>> 
>> Seems to work fine for me: AAX, AU, VST3 and VST
>> 
>> -double only AAX.
>> 
>> Best regards,
>> Juan Carlos
>> 
>>> El 27 may 2022, a las 13:17, Klaus Scheuermann  escribió:
>>> 
>>> Hi All, I am running into trouble again ;)
>>> Your help is very much appreciated.
>>> 
>>> Here is my dsp file (a modified version of master_me): 
>>> https://github.com/trummerschlunk/master_me/blob/master/soundsgood09.dsp
>>> 
>>> For various reasons, I decided to go via JUCE (VST3, VST2 from faustIDE 
>>> crashing on MacOS and Win, no -double support on faustIDE). Here is my 
>>> workflow. I am on MacOS 12.15.7 for this project.
>>> - make a juicer project with faust2juce -double soundsgood09.dsp
>>> - copy folder containing jucer file to JUCE/Examples
>>> - open jucer file, select VST3 and AU, save and open in Xcode
>>> - build all in Xcode: one issue in FaustPluginProcessor.cpp:8988:39: 
>>> Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') 
>>> to 'int'
>>> 
>>> The AU version runs in Reaper - yay!
>>> The VST3 version only outputs full level saw tone - autsch!
>>> 
>>> Can someone confirm? And hopefully help please?
>>> Thank you so much!
>>> 
>>> Klaus
>>> 
>>> ___
>>> 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



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


Re: [Faudiostream-users] problem building VST3 via JUCE, AU works

2022-05-27 Thread Klaus Scheuermann
Hi,
A relatively simple noisegate results in distortion both -double and single as 
VST3. AU is fine.
>> MacOS 12.15.7
Xcode 12.4

@Juan Carlos: does it mean only AAX works in -double?

Klaus



import("stdfaust.lib");

init_noisegate_threshold = -70;

process = _,_ : noisegate(2) : _,_;

// NOISE GATE
noisegate(N) = 
gate_any(N,noisegate_thresh,noisegate_attack,noisegate_hold,noisegate_release) 
with {
noisegate_thresh = vslider("[0]threshold",init_noisegate_threshold, -95, 0, 
1);
noisegate_attack = 0.01;
noisegate_hold = 1;
noisegate_release = 2;

gate_any(N,thresh,att,hold,rel) = B <: B, (B :> ggm : vbargraph("[2]gate 
level",0,1) <: B) : ro.interleave(N,2) : par(i,N,*)
with {
B = si.bus(N);
ggm = gate_gain_mono(thresh,att,hold,rel);
};

gate_gain_mono(thresh,att,hold,rel,x) = x : extendedrawgate : 
an.amp_follower_ar(att,rel) with {
extendedrawgate(x) = max(float(rawgatesig(x)),holdsig(x));
rawgatesig(x) = inlevel(x) > ba.db2linear(thresh);
minrate = min(att,rel);
inlevel = an.amp_follower_ar(minrate,minrate);
holdcounter(x) = (max(holdreset(x) * holdsamps,_) ~-(1));
holdsig(x) = holdcounter(x) > 0;
holdreset(x) = rawgatesig(x) < rawgatesig(x)'; // reset hold when raw 
gate falls
holdsamps = int(hold*ma.SR);
};
};


> On 27. May 2022, at 16:22, Juan Carlos Blancas  wrote:
> 
> Hi Klaus,
> 
> macOS 12.1, Xcode 13.3.1
> 
> Seems to work fine for me: AAX, AU, VST3 and VST
> 
> -double only AAX.
> 
> Best regards,
> Juan Carlos
> 
>> El 27 may 2022, a las 13:17, Klaus Scheuermann  escribió:
>> 
>> Hi All, I am running into trouble again ;)
>> Your help is very much appreciated.
>> 
>> Here is my dsp file (a modified version of master_me): 
>> https://github.com/trummerschlunk/master_me/blob/master/soundsgood09.dsp
>> 
>> For various reasons, I decided to go via JUCE (VST3, VST2 from faustIDE 
>> crashing on MacOS and Win, no -double support on faustIDE). Here is my 
>> workflow. I am on MacOS 12.15.7 for this project.
>> - make a juicer project with faust2juce -double soundsgood09.dsp
>> - copy folder containing jucer file to JUCE/Examples
>> - open jucer file, select VST3 and AU, save and open in Xcode
>> - build all in Xcode: one issue in FaustPluginProcessor.cpp:8988:39: 
>> Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') 
>> to 'int'
>> 
>> The AU version runs in Reaper - yay!
>> The VST3 version only outputs full level saw tone - autsch!
>> 
>> Can someone confirm? And hopefully help please?
>> Thank you so much!
>> 
>> Klaus
>> 
>> ___
>> 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


Re: [Faudiostream-users] faust2lv2

2022-05-27 Thread Klaus Scheuermann
Merci :)

On Fri, 2022-05-27 at 15:53 +0200, Stéphane Letz wrote:
> I guess you’ll need to install boost. 
> 
> Stéphane 
> 
> > Le 27 mai 2022 à 15:51, Klaus Scheuermann  a
> > écrit :
> > 
> > This is probably a simple one for you... Any ideas? Thank you
> > 
> > [ks@home soundsgood]$ faust2lv2 -double soundsgood09.dsp 
> > -std=c++11 -fvisibility=hidden -O3
> > lv2.cpp:292:10: fatal error: boost/circular_buffer.hpp: No such
> > file or
> > directory
> > compilation terminated.
> > 
> > 
> > 
> > 
> > 
> > ___
> > 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


Re: [Faudiostream-users] problem building VST3 via JUCE, AU works

2022-05-27 Thread Stéphane Letz
It seems the -double does not work correctly with VST3 format, but work OK with 
AU.

 Tested with simpler examples here. Can you confirm that ? (even if you DSP 
confirm needs -double in the first place…)

Stéphane

> Le 27 mai 2022 à 13:17, Klaus Scheuermann  a écrit :
> 
> Hi All, I am running into trouble again ;)
> Your help is very much appreciated.
> 
> Here is my dsp file (a modified version of master_me): 
> https://github.com/trummerschlunk/master_me/blob/master/soundsgood09.dsp
> 
> For various reasons, I decided to go via JUCE (VST3, VST2 from faustIDE 
> crashing on MacOS and Win, no -double support on faustIDE). Here is my 
> workflow. I am on MacOS 12.15.7 for this project.
> - make a juicer project with faust2juce -double soundsgood09.dsp
> - copy folder containing jucer file to JUCE/Examples
> - open jucer file, select VST3 and AU, save and open in Xcode
> - build all in Xcode: one issue in FaustPluginProcessor.cpp:8988:39: Implicit 
> conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
> 
> The AU version runs in Reaper - yay!
> The VST3 version only outputs full level saw tone - autsch!
> 
> Can someone confirm? And hopefully help please?
> Thank you so much!
> 
> Klaus
> 
> ___
> 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


Re: [Faudiostream-users] faust2lv2

2022-05-27 Thread Stéphane Letz
I guess you’ll need to install boost. 

Stéphane 

> Le 27 mai 2022 à 15:51, Klaus Scheuermann  a écrit :
> 
> This is probably a simple one for you... Any ideas? Thank you
> 
> [ks@home soundsgood]$ faust2lv2 -double soundsgood09.dsp 
> -std=c++11 -fvisibility=hidden -O3
> lv2.cpp:292:10: fatal error: boost/circular_buffer.hpp: No such file or
> directory
> compilation terminated.
> 
> 
> 
> 
> 
> ___
> 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


[Faudiostream-users] faust2lv2

2022-05-27 Thread Klaus Scheuermann
This is probably a simple one for you... Any ideas? Thank you

[ks@home soundsgood]$ faust2lv2 -double soundsgood09.dsp 
-std=c++11 -fvisibility=hidden -O3
lv2.cpp:292:10: fatal error: boost/circular_buffer.hpp: No such file or
directory
compilation terminated.





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


[Faudiostream-users] problem building VST3 via JUCE, AU works

2022-05-27 Thread Klaus Scheuermann
Hi All, I am running into trouble again ;)
Your help is very much appreciated.

Here is my dsp file (a modified version of master_me): 
https://github.com/trummerschlunk/master_me/blob/master/soundsgood09.dsp

For various reasons, I decided to go via JUCE (VST3, VST2 from faustIDE 
crashing on MacOS and Win, no -double support on faustIDE). Here is my 
workflow. I am on MacOS 12.15.7 for this project.
- make a juicer project with faust2juce -double soundsgood09.dsp
- copy folder containing jucer file to JUCE/Examples
- open jucer file, select VST3 and AU, save and open in Xcode
- build all in Xcode: one issue in FaustPluginProcessor.cpp:8988:39: Implicit 
conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'

The AU version runs in Reaper - yay!
The VST3 version only outputs full level saw tone - autsch!

Can someone confirm? And hopefully help please?
Thank you so much!

Klaus

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