Skip to content

A hardware device that allows users to play a fun, fast-paced game using only an Arduino.

Notifications You must be signed in to change notification settings

SaltyQuetzals/wordaround

Repository files navigation

Wordaround

Still in development.

Need to get a song from Online Sequencer? Try opening a song, pressing Ctrl + Shift/Opt + J, pasting the code below and hitting enter:

for(var out="",skip=0,i=0;i<song.noteColumns.length;i++){if(skip>0)out+="NOTE_EXT,";else{var note=song.noteColumns[i];if("undefined"==typeof note)out+="0,";else{var count=0,upmostpitch=0,upmostindex;for(var index in note){count++;var pitch=note[index].type,asnum=0;asnum+=24*parseInt(pitch.charCodeAt(pitch.length-1)),asnum+=2*(pitch.charCodeAt(0)-97),"#"==pitch.charCodeAt(1)&&asnum++,asnum>upmostpitch&&(upmostpitch=asnum,upmostindex=index)}note=note[upmostindex],count>1&&console.warn("More than one note at t="+note.intTime+". Only "+note.type+" is used."),skip=note.length,out+="NOTE_"+note.type.replace("#","S")+","}}i%4==3&&i>0&&(out+="\n"),skip--}for(;skip>0;)out+="NOTE_EXT,",skip--;out=out.substr(0,out.length-1);

About

A hardware device that allows users to play a fun, fast-paced game using only an Arduino.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •