Change volume curve.

pull/4/head
Holger Wirtz 6 years ago
parent c871886063
commit 3f1b534730
  1. 2
      MicroDexed.ino

@ -703,7 +703,7 @@ void set_volume(float v, float p)
// http://files.csound-tutorial.net/floss_manual/Release03/Cs_FM_03_ScrapBook/b-panning-and-spatialization.html // http://files.csound-tutorial.net/floss_manual/Release03/Cs_FM_03_ScrapBook/b-panning-and-spatialization.html
#ifdef TEENSY_AUDIO_BOARD #ifdef TEENSY_AUDIO_BOARD
sgtl5000_1.dacVolume(pow(v * sinf(p * PI / 2), 0.1), pow(v * cosf(p * PI / 2), 0.1)); sgtl5000_1.dacVolume(pow(v,0.2) * sinf(p * PI / 2), pow(v,0.2) * cosf(p * PI / 2));
#else #else
volume_master.gain(v); volume_master.gain(v);
volume_r.gain(sinf(p * PI / 2)); volume_r.gain(sinf(p * PI / 2));

Loading…
Cancel
Save