Old 07-14-2018, 09:00 AM   #1
mawi
Human being with feelings
 
Join Date: Apr 2011
Location: Germany
Posts: 1,185
Default Search for help in customizing the JS Tone Generator

The frequency range of the "Base Frequency (Hz)" slider ranges from 20 - 24000 Hz and 12000 Hz is approximately in the middle of the slider. This is not a good slider setting for me, because the audible slider range is less than half. Since audio is logarithmic, it would be more user-friendly for me if the "Base Frequency (Hz)" slider took this into account. Because I'm bad at math and programming, it would be nice if someone could do it and improve the "Base Frequency (Hz)" slider with log 10, so that 12000 Hz is no longer in the middle but far to the right.
mawi is offline   Reply With Quote
Old 07-14-2018, 09:18 AM   #2
Time Waster
Human being with feelings
 
Time Waster's Avatar
 
Join Date: Aug 2013
Location: Bowral, Australia
Posts: 1,638
Default

Unfortunately, the sliders in JSFX are only linear. You can just type in the frequency you want though. If you want non linear sliders, you have to create them yourself in the graphics area.

Another option is to use an arbitrary range for the slider, e.g. 0 to 1, and have the calculated frequency displayed in the graphics area.
__________________
Mal, aka The Wasters of Time
Mal's JSFX: ReaRack2 Modular Synth

Last edited by Time Waster; 07-14-2018 at 09:26 AM.
Time Waster is offline   Reply With Quote
Old 07-14-2018, 09:27 AM   #3
mawi
Human being with feelings
 
Join Date: Apr 2011
Location: Germany
Posts: 1,185
Default

Thanks for the hint, I didn't know that only linear sliders are possible. That's too bad.
mawi is offline   Reply With Quote
Old 07-14-2018, 09:40 AM   #4
bezusheist
Human being with feelings
 
bezusheist's Avatar
 
Join Date: Nov 2010
Location: Mullet
Posts: 829
Default

this might be of help...
https://forum.cockos.com/showpost.ph...61&postcount=5

implemented something like...
Code:
slider1:0<0,100,0.01>percent
slider2:20<20,20000,1>Hz

@slider

x = slider1;
y = (exp((16+x*1.20103)*0.0573250666192694)*8.17742)|0;
slider2 = y;
__________________
I like turtles
bezusheist is offline   Reply With Quote
Old 07-14-2018, 11:14 AM   #5
ashcat_lt
Human being with feelings
 
Join Date: Dec 2012
Posts: 7,272
Default

Quote:
Originally Posted by Time Waster View Post
...and have the calculated frequency displayed in the graphics area.
...or on a "dummy" slider. I bet the gfx stuff isn't actually as difficult as it looks, but I have a big old mental block that won't let me get too far into it.
ashcat_lt is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.