|
|
@@ -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 |