Reaper with Sample Accurate JSFX
Reaper with Sample Accurate JSFX

In the last DAW v DAW post I indicated that JSFX in Reaper may be flawed. I was obviously wrong, I knew I was wrong, and here’s where I explain how I was wrong.

No text today. If you like text, then go read the documentation.

THIS ARTICLE IS WRONG. IGNORE IT

Contents

Video

THIS VIDEO IS WRONG. IGNORE IT

You’ll clearly want to research how to do a bit more than having sample accurate parameter values. IMD and discontinuities await you with this naive code.

I simply wanted to show what is possible, and how simple it can be.

THIS VIDEO IS WRONG. IGNORE IT

Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
desc:Sample Accurate Volume
//author: Ripped off from Cockos

slider1:0<-60,0,0.1>Volume (dB)

in_pin:left input
in_pin:right input
out_pin:left output
out_pin:right output

@init

@slider
ddb = (10 ^ (slider1 / 20));

@block

@sample

db_chg_splpos = slider_next_chg(1, next_db_value);

db_chg_splpos > 0 ? 
(
  ddb = (10 ^ (next_db_value / 20));
);

spl0 *= ddb;
spl1 *= ddb;

Support Me!

This post took 9 hours to research, animation and screencast. If you appreciate the information presented then please consider joining patreon or paying me for my time spent bringing you quality content!