Mattias, thank you so much: you gave me all the tools I need to study more and understand the sound generation process.
The code you provided worked. I'm also using this video series (https://www.youtube.com/watch?v=tgamhuQnOkM) by javidx9 to practically understand the formula used in oscillator generation (to create a square wave, for example), but you've already tied up all the loose ends I needed to use a buffer and generate sound with control (amplitude, frequency, type, etc.).
Thank you for your help and precious time, my friend (I am really a beginner in sound synthesis, learning as I go).
Regarding the project, you've already helped me a lot (all the questions I had have been answered; now it's just a matter of understanding and programming).
Thank you and if you need help in your projects (promotion, testing etc.) I am available.


