Browse Source

Merge pull request #204 from FrankBoesing/patch-1

Calculation of delay_rate_incr
dds
Paul Stoffregen 8 years ago
parent
commit
877c40bda9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      effect_flange.cpp

+ 2
- 2
effect_flange.cpp View File

@@ -77,7 +77,7 @@ if(0) {
// initial index
l_delay_rate_index = 0;
l_circ_idx = 0;
delay_rate_incr = delay_rate / (2147483648.0 * AUDIO_SAMPLE_RATE_EXACT);
delay_rate_incr =(delay_rate * 2147483648.0)/ AUDIO_SAMPLE_RATE_EXACT;
//Serial.println(delay_rate_incr,HEX);

delay_offset_idx = delay_offset;
@@ -100,7 +100,7 @@ boolean AudioEffectFlange::voices(int delay_offset,int d_depth,float delay_rate)
delay_depth = d_depth;

delay_rate_incr = delay_rate / (2147483648.0 * AUDIO_SAMPLE_RATE_EXACT);
delay_rate_incr =(delay_rate * 2147483648.0)/ AUDIO_SAMPLE_RATE_EXACT;
delay_offset_idx = delay_offset;
// Allow the passthru code to go through

Loading…
Cancel
Save