resizing is working

also changed some bits in the melody generator