There is the code (not perfect) for sustain notes
var swagRect = new Bounds();
swagRect.height = (playerStrumGrp[Math.floor(Math.abs(i.noteData))].y
+ i.tile.width / 2
- i.y) / i.scaleY;
swagRect.y = i.tile.height*2 - swagRect.height;
if(!i.isEndSustain){ // THIS IS FOR THE LAST NOTE TAIL
i.y = swagRect.y+10;
}
else {
i.y = swagRect.y-i.tile.height/2 + 5;
}
i.scaleY -= ((songSpeed*0.1)*Conductor.stepCrochet/100)/(songSpeed); // THIS IS WEIRD WHEN FAST OR SLOW SPEED
There is the code (not perfect) for sustain notes
var swagRect = new Bounds();