Green flag to initialize A-G letters to play notes, up and down arrows if kept pressed will change octave. I'm trying to reproduce the "vibrato" effect of string instruments
I easily associate in my mind computer keyboard with musical instrument keyboard so when I read the prompt for today I immediately thought about music. To try something different I decided to work on the possibility to press two keys at the same time to obtain some effect (in this case the shift in octave). Then I realized that the sound was a bit "plain" and decided to add the "vibrato" effect. The vibrato effect in bowed string instruments is obtained by moving the finger on the keyboard to make a slight change in pitch. To obtain the effect, first I tried to loop some "play note" blocks with slightly different pitches but the effect was terrible (and I deleted the code, which was a mistake in hindsight). This second implementation requires the "correct" note and two small shifts to be played at the same time (almost at the same time as you can see), the effect is a bit better but still not completely satisfying I think I will work on it a bit more in the future