You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not entirely sure if the problem lies with the library itself, but I just couldn't find another explanation.
So... I have a basic for loop in which the audio output stream is formed based on the wave table and the parameters of the ADSR envelope.
In the range of amplitude from 0.25 to 1.0, the resulting volume sounds exactly the same. Initially, I assumed that the problem lay in the implementation of ADSR, since when setting sustain= 0.25, the amplitude remained at the maximum level (that is, the final phase of the attack). Then I decided to remove the process function call and implemented the modulation using a knob controller. The problem has not disappeared, but I noticed that the variable oscillator->volume (as opposed to the actual volume) changes according to the parameters of the envelope (as it should be). This may mean that the problem is still in the implementation of the library itself. If this behavior had occurred as a result of an incorrectly formed wave table during the initialization of the oscillators, then even with the key held down, I would certainly have noticed a malfunction. In addition, the only block of code where an amplitude change can occur is precisely the for loop inside the callback function.
The text was updated successfully, but these errors were encountered:
I'm not entirely sure if the problem lies with the library itself, but I just couldn't find another explanation.
So... I have a basic for loop in which the audio output stream is formed based on the wave table and the parameters of the ADSR envelope.
In the range of amplitude from 0.25 to 1.0, the resulting volume sounds exactly the same. Initially, I assumed that the problem lay in the implementation of ADSR, since when setting sustain= 0.25, the amplitude remained at the maximum level (that is, the final phase of the attack). Then I decided to remove the process function call and implemented the modulation using a knob controller. The problem has not disappeared, but I noticed that the variable oscillator->volume (as opposed to the actual volume) changes according to the parameters of the envelope (as it should be). This may mean that the problem is still in the implementation of the library itself. If this behavior had occurred as a result of an incorrectly formed wave table during the initialization of the oscillators, then even with the key held down, I would certainly have noticed a malfunction. In addition, the only block of code where an amplitude change can occur is precisely the for loop inside the callback function.
The text was updated successfully, but these errors were encountered: