Online Sequencer Forums

Full Version: Beat Swap Remix Challenge
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

In the desc. of the video (by me):
ME
Script -
https://pastebin.com/pB0RR1y6
Sequence -

NOT ME
Based On -

I chose a random ***** sequence to use my latest script on, but my challenge is to find the most interesting songs to use this script on! Feel free to edit the script, just tell us what you changed. I made my code readable for anyone who knows JS.
Code:
function timeToBeat(time) {
   return Math.floor((time % 16) / 4);
}

function changeTime(note, change) {
   song.moveNote(note, note.instrument, note.instrument, note.time, note.time + change, note.type, note.type);
}

var notes = song.notes;
for (var i = 0; i < notes.length; i++) {
   var note = notes[i];
   var beat = timeToBeat(note.time);
   switch (beat) {
       case 1:
       changeTime(note, 8);
       break;
       case 3:
       changeTime(note, -8);
       break;
   }
}

SCRIPT RUNNING TUTORIAL
1. Press f12 to open the dev menu.
2. Navigate to the console tab.
3. Paste the code in. *and press enter*
4. PROFIT
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa