Skip to content

Commit

Permalink
Release JS3Osc v1.0.1 (#346)
Browse files Browse the repository at this point in the history
Fix coarse tuning in semi-tones
  • Loading branch information
tiagolr authored Dec 2, 2023
1 parent 4c2e9b6 commit 28be46c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Synth/tilr_JS3Osc.jsfx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
desc: JS3Osc
author: tilr
version: 1.0
version: 1.0.1
changelog: Fix coarse tuning in semi-tones
provides:
tilr_JS3Osc/3o.adsr.jsfx-inc
tilr_JS3Osc/3o.array.jsfx-inc
Expand Down Expand Up @@ -196,17 +197,17 @@ function on_slider() (
osc1_gain = db2gain(osc1_vol);
osc1_st_det = pow(2, osc1_phase_det / 1200); // stereo detune
osc1_fine_det = pow(2, osc1_fine / 1200);
osc1_coarse_det = pow(2, osc1_coarse / 12);
osc1_coarse_det = pow(2, (osc1_coarse|0) / 12);

osc2_gain = db2gain(osc2_vol);
osc2_st_det = pow(2, osc2_phase_det / 1200);
osc2_fine_det = pow(2, osc2_fine / 1200);
osc2_coarse_det = pow(2, osc2_coarse / 12);
osc2_coarse_det = pow(2, (osc2_coarse|0) / 12);

osc3_gain = db2gain(osc3_vol);
osc3_st_det = pow(2, osc3_phase_det / 1200);
osc3_fine_det = pow(2, osc3_fine / 1200);
osc3_coarse_det = pow(2, osc3_coarse / 12);
osc3_coarse_det = pow(2, (osc3_coarse|0) / 12);
);

@slider
Expand Down

0 comments on commit 28be46c

Please sign in to comment.