Wyngine audio (pt. 3)
I continued working on the audio feature of Wyngine, following javidx9’s excellent tutorials. The next step is sequencing (i.e. playing music)!
Now there’s polyphony! You can play more than one note at the same time, and they’ll be mixed into the audio buffer. I never knew it was trivial to mix sounds (literally, just adding the samples).
Controls:
1/2/3/4 = change instruments
Q/A = increase/decrease frequency
E/D = increase/decrease volume
UP/DOWN = increase/decrease octave
ZSXCFVGBNJMK,L./ = piano notes (A, A#, B, ... G#)