Online Sequencer Make music online
  • Sequences
  • Members
  • Import MIDI
  • Forum

Existing user? Sign In Create account
Login at Online Sequencer Forums

Online Sequencer Forums › Online Sequencer › Online Sequencer Discussion
« Previous 1 … 35 36 37 38 39 … 56 Next »

What have I done 2

Thread tools
What have I done 2
Frank Offline
Grey Hat Script Kiddie who can Compose Music
392 Posts:
 
#1
05-21-2018, 05:40 PM (This post was last modified: 05-21-2018, 05:41 PM by Frank.)


(05-21-2018, 10:24 AM)_4eJloBek_ Wrote: That's the content I'm here for

Be careful what you ask for. This took about an hour:



Code:
letters = [];
chars = 'abcdefghijklmnopqrstuvwxyz.,';
for (i = 0; i < 28 * 4; i += 4) {
   letter = [];
   for (j = i; j < i + 3; j++) {
       if (song.noteColumns[j]) {
           letter.push(Object.values(song.noteColumns[j]).map(x => x.type))
       } else {
           console.log(song.noteColumns[j])
           letter.push([])
       }
   }
   letters[chars[i / 4]] = letter
}
selectAll();
deleteSelection();
string = Bee;
for (i = 0; i < string.length; i++) {
   letter = letters[string[i]];
   if (letter) {
       for (j = 0; j < 3; j++) {
           for (k = 0; k < letter[j].length; k++) {
               song.addNote(new Note(song, letter[j][k], 4 * i + j, 1, 0))
           }
       }
   }
}
selectAll()
BEE-fore I execute that,
Code:
Bee="According to all known laws of aviation..."
Bee.slice(0,1000)
Bee=Bee.toLowerCase()


Kim Wrote: + https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
  • x1
    • x1
    • BasilBerylium
Reply
cork Offline
Local Nobody
273 Posts:
 
#2
05-21-2018, 05:42 PM
you could actually make a real song for a change


Reply
Frank Offline
Grey Hat Script Kiddie who can Compose Music
392 Posts:
 
#3
05-21-2018, 07:56 PM
(05-21-2018, 05:42 PM)dcsm Wrote: you could actually make a real song for a change

For a KEY change?


Kim Wrote: + https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Reply



Users browsing this thread:   1 Guest(s)


  •  Return to Top
  •  Contact Us
  •   Home
  •  Lite mode
© Rush Crafted with ❤ by iAndrew
Powered By MyBB, © 2002-2022 MyBB Group.
Linear Mode
Threaded Mode
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend