I am using AudioKit to build a simple music application that plays sound when buttons are pressed. When a button is pressed, I call .openGate()
on an Amplitude Envelope that has a Dynamic Oscillator as an input.
However, I notice that when I call .setWaveForm(Table(.sine))
on the DynamicOscillators, the sound coming out of the speakers is very quiet when compared to when I call .setWaveForm(Table(.square))
. Using a .sawtooth
or .triangle
table results in an intermediate loudness.
Ideally, the DynamicOscillators would have the same loudness regardless of which waveform is set.
I have assigned an amplitude of 1.0 to each oscillator.
Any ideas?