Online Sequencer Make music online
  • Sequences
  • Members
  • Chat
  • Forum
  • Wiki

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

Online Sequencer Forums › Online Sequencer › Suggestions
« Previous 1 … 26 27 28 29 30 … 48 Next »

Time Tool

Thread tools
Time Tool
korwynkim Offline
cat
16 Posts:
 
#3
03-18-2018, 05:58 PM
You really should write cleaner code and use more descriptive variable names Tounge

Here it is cleaned up

Code:
multiplier  =  parseFloat(prompt("How much do you want to scale the note lengths?"))

for(i  =  0;  i  <  selectedNotes.length;  i++){
       note  =  selectedNotes[i]
       song.moveNote(note,  note.instrument,  note.instrument,  note.time,  note.time*multiplier,  note.type,  note.type)
       song.update(note)
}


Trophy: https://imgur.com/a/4B0juxZ
Reply

Messages In This Thread
Time Tool - by Frank - 03-18-2018, 04:42 PM
RE: Time Tool - by Tests - 03-18-2018, 04:57 PM
RE: Time Tool - by korwynkim - 03-18-2018, 05:58 PM
RE: Time Tool - by Frank - 03-18-2018, 09:01 PM
RE: Time Tool - by environmentalSlimePreference - 06-16-2021, 02:05 PM
RE: Time Tool - by Liam - 06-17-2021, 09:52 AM



Users browsing this thread:   1 Guest(s)


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