At each step, your goal is to find what's new in the behavior on the right and ask ChatGPT to make those changes. Amend prompts to the single chat.
If you got stuck, start a new chat and paste the last working source code into it.
For the note pitches here use pentatonic scale: C3 Eb3 F3 G3 Bb3 C4 Eb4 ... from bottom to top