Browse Source

Fix AudioSynthWaveformSineModulated amplitude without mod input (thanks neurofun)

https://forum.pjrc.com/threads/48307
dds
PaulStoffregen 7 years ago
parent
commit
368261dcfe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      synth_sine.cpp

+ 1
- 1
synth_sine.cpp View File

@@ -192,7 +192,7 @@ void AudioSynthWaveformSineModulated::update(void)
scale = (ph >> 8) & 0xFFFF;
val2 *= scale;
val1 *= 0x10000 - scale;
block->data[i] = (val1 + val2) >> 16;
block->data[i] = multiply_32x32_rshift32(val1 + val2, magnitude);
ph += inc;
}
}

Loading…
Cancel
Save