Online Sequencer Forums

Full Version: bounce.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
var x = 0;
var dx = 1;
var y = 0;
var dy = 0;
var ddy = 0.5;
for (var i = 0; dx > 0.01; i++) {
 song.addNote(new Note(song, piano[Math.ceil(y)], x, dx, 0));
 x += dx;
 y += dy;
 dx *= 0.999;
 if (y > piano.length) {
   y = 71;
   dy *= -0.9;
 }
 if (y < 0) {
   y = 0;
   dy *= -0.9;
 }
 dy += ddy;
 if (Math.abs(dy) < 0.1) ddy *= -1;
}


bounce.
remix.
If you put it at 999, once the notes reach just being C2 and C#2, it sounds as if there's a third pitch that slowly rises.
I know why this happens I just thought it was pretty neat.
(11-30-2018, 05:09 PM)Kirbyderp Wrote: [ -> ]If you put it at 999, once the notes reach just being C2 and C#2, it sounds as if there's a third pitch that slowly rises.
I know why this happens I just thought it was pretty neat.

Can you save it?
Believe it or not I actually think musically this is useful. Time to copy paste some things.
(11-30-2018, 05:22 PM)LucentTear Wrote: [ -> ]Believe it or not I actually think musically this is useful. Time to copy paste some things.

This comment is why I don't get banned 1337 times per hour.