Re: [Faudiostream-users] faust2juce: slider scale not working ?

2022-11-17 Thread Simon Hill
Hi Stéphane
The issue seems to come from a conversion that is performed when setting the 
slider’s value (lines 525, 567, 574)
The functions are fConverter->faust2ui() & fConverter->ui2faust()
Removing these functions and passing the unchanged value solves the problem, at 
least partially.
The values are no longer incoherent, but the scaling is not the same. For a 
frequency slider with a range of 10Hz-22kHz, the middle value is ~470Hz in 
FaustIDE and 1421Hz in JUCE plugin

—
Simon Hill
+33 6 59 14 00 97
[simonhill.fr ]

> On 17 Nov 2022, at 21:57, Stéphane Letz  wrote:
> 
> Similar problems were reported: can you possibly debug what happens  ?
> 
> https://github.com/grame-cncm/faust/blob/master-dev/architecture/faust/gui/JuceGUI.h
> 
> Stéphane 
> 
>> Le 17 nov. 2022 à 21:32, Simon Hill  a écrit :
>> 
>> Hello,
>> 
>> I’m using « faust2juce » to generate ready-to-use JUCE effect plugins.
>> However the scale of the sliders defined in Faust (e.g. [scale: log]) does 
>> not transfer properly to the Juce GUI sliders. 
>> On the other hand the parameter values in Ableton's « Device Parameters » 
>> panel are correct, although the scale is linear.
>> As an example, a "log" knob with a range of 10Hz to 22kH defaults to these 
>> values: Faust=200Hz, JuceGUI=8569.6Hz, Ableton=200Hz
>> I’m joining some screenshots of the Faust UI vs the JUCE one.
>> 
>> Is this a known problem or am I doing something wrong ? Is there a way to 
>> work around this?
>> Thank you   
>> 
>> > 21.12.05.png>
>> 
>> Simon
>> 
>> 
>> 
>> ___
>> 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] faust2juce: slider scale not working ?

2022-11-17 Thread Stéphane Letz
Similar problems were reported: can you possibly debug what happens  ?

https://github.com/grame-cncm/faust/blob/master-dev/architecture/faust/gui/JuceGUI.h

Stéphane 

> Le 17 nov. 2022 à 21:32, Simon Hill  a écrit :
> 
> Hello,
> 
> I’m using « faust2juce » to generate ready-to-use JUCE effect plugins.
> However the scale of the sliders defined in Faust (e.g. [scale: log]) does 
> not transfer properly to the Juce GUI sliders. 
> On the other hand the parameter values in Ableton's « Device Parameters » 
> panel are correct, although the scale is linear.
> As an example, a "log" knob with a range of 10Hz to 22kH defaults to these 
> values: Faust=200Hz, JuceGUI=8569.6Hz, Ableton=200Hz
> I’m joining some screenshots of the Faust UI vs the JUCE one.
> 
> Is this a known problem or am I doing something wrong ? Is there a way to 
> work around this?
> Thank you   
> 
>  21.12.05.png>
> 
> Simon
> 
> 
> 
> ___
> 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