I don't really expect anyone to understand what's going on here I coded these scripts for efficiency, as I was organizing the values in the "midi" list to be imported. I used this project to make my Desmos project: https://www.desmos.com/calculator/yj23k19sk7 I shared the proj in case of the small chance that it's useful to anyone
its in Desmos format, ready to be pasted in its graphing calculator its arranged so the note is aligned correctly with midi notes (hence the initial gap)