justin = {
main feed
,
music
,
code
= {
cockos
,
reaper
,
wdl
,
ninjam
,
jsfx
,
more
}
,
askjf
,
pubkey
};
Ask Justin Frankel
No reasonable question unanswered since 2009!
Suggested topics: programming, music, sleep, coffee, etc.
Note: please do not ask questions about REAPER features, bugs or scheduling, use the
forums
instead.
Name:
Ask:
Human (enter yes):
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Question:
1. In JSFX, does a non-slider dependent math like makeup_gain = 10^(8 / 20); gets recalculated any time a slider value changes simply because this math is in @slider, or non-slider dependent math in @slider doesnt get recalculated any time a slider moves? 2. What's the difference putting it in @init vs @slider, and which is best?
Asked by init vs slider (154.161.251.x) on May 24 2026, 11:35pm
Reply on May 25 2026, 1:15pm:
FYI, makeup_gain = 10^(8 / 20) is optimized to makeup_gain = 2.5118864315 or whatever (it will precalculate constants). but yeah that will get executed on every time any slider changes if it is in @slider. having said that, that only takes a few cycles so you can put it wherever. If you put it in @init that's also fine, but if other code ever modifies it then it will behave differently...
Comments:
Posted by init vs slider (154.161.227.x) on May 25 2026, 4:37pm:
Alright, thanks
Comment:
Your Name:
-- Site Owner's Name:
(for human-verification) Comment:
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Copyright 2026 Justin Frankel
.
|
RSS