Inducing Color-Sound Synesthesia with the Web Audio API and via autocorrelation

Color-sound synesthesia can be developed for letters as determined by Cambridge doing 30 minutes reading colored letters a day for 9 weeks, break on weekends. I am trying to see if I can induce color-sound synesthesia for the music letters C, C#, D, D#, E, F, F#, G, G#, A, A#, and B, by practicing with colored note-head music via flat dot io music program, playing piano. But I also wanted to see the note I am playing in real time, and the color I want to associate with it. I start with red for C and follow the rainbow up until reaching C again, according to Boomwhackers color scheme.

Press start to begin

Rounding options:

Smoothing options: