Need advice on how to do dynamic length

Im making a rythm game very similar to guitar hero for a school project

But im getting stuck on how i should create long notes
Right now notes are spawned randomly and moved using tweens

You can check out the code here (I know its kinda messy)
https://github.com/HOGENTJasperDeSmet/RythmGame