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 › News
1 2 Next »

Offline Sequencer

Pages (6): « Previous 1 2 3 4 5 6 Next »
Thread locked 
Thread tools
Offline Sequencer
guest Offline
Member
454 Posts:
   
#11
05-09-2018, 11:41 AM
jacob, theres no sound ;-;


MysticSwe Offline
Member
2,265 Posts:
   
#12
06-01-2018, 03:31 AM
As you said there's a single file. It's just a very big HTML file without directories and folders. 
Such a big HTML file I don't even dare to open. If there was folders with notes I could maybe
download new notes and instruments myself. And if there was some bad sounding notes I
could make my own. However this is not a functional offline sequencer. Please try again? Smile


My sequences < My forum thread > My Youtube channel
Frank Offline
Grey Hat Script Kiddie who can Compose Music
388 Posts:
 
#13
06-01-2018, 12:56 PM
(04-14-2018, 09:55 PM)dfhwze Wrote: Are we allowed to try to add some tools to it and reupload?

edit: my song reversal tool is available \o/

Code:
'reverse': {
           name: 'Reverse',
           action: function () {
               var reverseNotes = function (measureLength) {
                   /* get time index of last note that ends */
                   var lastNoteEndExact = 0;
                   for (i = 0; i < song.notes.length; i++) {
                       var note = song.notes[i];
                       if (isNumber(note.time) && isNumber(note.length) && note.time + note.length > lastNoteEndExact) {
                           lastNoteEndExact = note.time + note.length;
                       }
                   }
                   /* determine time index of end of song based on last note and grid measures */
                   var lastNoteEnd = Math.floor(lastNoteEndExact);
                   var songEnd = lastNoteEnd - lastNoteEnd % measureLength;
                   songEnd += lastNoteEndExact > songEnd ? measureLength : 0;
                   /* reverse all notes in time */
                   for (i = 0; i < song.notes.length; i++) {
                       var note = song.notes[i];
                       if (isNumber(note.time) && isNumber(note.length)) {
                           var newTime = songEnd - note.time - note.length;
                           song.moveNote(
                                    note,
                                    note.instrument,
                                    note.instrument,
                                    note.time,
                                    newTime,
                                    note.type,
                                    note.type);
                           song.update(note);
                       }
                   }
                   keySelect.selectedIndex = 0;
                   keySelect.onchange();
               }
               /* grid measure is by default 16 (4 beats of 4 '1/4th' notes) */
               /* TODO calculate measureLength from current grid settings */
               reverseNotes(16);
           }
       },
Why does this need to be a new object, why can't it be a function object? reverse.action() is much more lengthy than reverse().


Kim Wrote:##878337 + https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Palpatrump Offline
Member
27 Posts:
 
#14
06-01-2018, 12:58 PM
life is good :D


You Don't Know the Pwner of the Dark Side of Politics.
dfhwze Offline
Member
41 Posts:
 
#15
12-28-2018, 04:13 PM
(06-01-2018, 12:56 PM)Frank Wrote:
(04-14-2018, 09:55 PM)dfhwze Wrote: Are we allowed to try to add some tools to it and reupload?

edit: my song reversal tool is available \o/

Code:
'reverse': {
           name: 'Reverse',
           action: function () {
               var reverseNotes = function (measureLength) {
                   /* get time index of last note that ends */
                   var lastNoteEndExact = 0;
                   for (i = 0; i < song.notes.length; i++) {
                       var note = song.notes[i];
                       if (isNumber(note.time) && isNumber(note.length) && note.time + note.length > lastNoteEndExact) {
                           lastNoteEndExact = note.time + note.length;
                       }
                   }
                   /* determine time index of end of song based on last note and grid measures */
                   var lastNoteEnd = Math.floor(lastNoteEndExact);
                   var songEnd = lastNoteEnd - lastNoteEnd % measureLength;
                   songEnd += lastNoteEndExact > songEnd ? measureLength : 0;
                   /* reverse all notes in time */
                   for (i = 0; i < song.notes.length; i++) {
                       var note = song.notes[i];
                       if (isNumber(note.time) && isNumber(note.length)) {
                           var newTime = songEnd - note.time - note.length;
                           song.moveNote(
                                    note,
                                    note.instrument,
                                    note.instrument,
                                    note.time,
                                    newTime,
                                    note.type,
                                    note.type);
                           song.update(note);
                       }
                   }
                   keySelect.selectedIndex = 0;
                   keySelect.onchange();
               }
               /* grid measure is by default 16 (4 beats of 4 '1/4th' notes) */
               /* TODO calculate measureLength from current grid settings */
               reverseNotes(16);
           }
       },
Why does this need to be a new object, why can't it be a function object? reverse.action() is much more lengthy than reverse().

It's consistent with the Tools menu items of the sequencer program.


Lopyt   Away
(Banned)
2,721 Posts:
   
#16
04-01-2019, 02:11 PM
Is there a way to add the "new" Eguitar with code in this?


MysTrysT Offline
beklog
47 Posts:
 
#17
04-02-2019, 02:07 AM
omg thanks dfh, i am berry thankful for that reverse code


bek
dfhwze Offline
Member
41 Posts:
 
#18
04-02-2019, 10:17 AM
(04-01-2019, 02:11 PM)Sir_Guy Wrote: Is there a way to add the "new" Eguitar with code in this?

Is there a new instrument?


dfhwze Offline
Member
41 Posts:
 
#19
04-02-2019, 10:54 AM (This post was last modified: 04-02-2019, 11:42 AM by dfhwze.)
Update for the Online Sequencer:

Reverse Tool ->

Code:
menus[2].items.reverse = {
          name: 'Reverse',
          action: function () {
              var reverseNotes = function (measureLength) {
                  /* get time index of last note that ends */
                  var lastNoteEndExact = 0;
                  for (i = 0; i < song.notes.length; i++) {
                      var note = song.notes[i];
                      if (isNumber(note.time) && isNumber(note.length) && note.time + note.length > lastNoteEndExact) {
                          lastNoteEndExact = note.time + note.length;
                      }
                  }
                  /* determine time index of end of song based on last note and grid measures */
                  var lastNoteEnd = Math.floor(lastNoteEndExact);
                  var songEnd = lastNoteEnd - lastNoteEnd % measureLength;
                  songEnd += lastNoteEndExact > songEnd ? measureLength : 0;
                  /* reverse all notes in time */
                  for (i = 0; i < song.notes.length; i++) {
                      var note = song.notes[i];
                      if (isNumber(note.time) && isNumber(note.length)) {
                          var newTime = songEnd - note.time - note.length;
                          song.moveNote(
                                   note,
                                   note.instrument,
                                   note.instrument,
                                   note.time,
                                   newTime,
                                   note.type,
                                   note.type);
                          song.update(note);
                      }
                  }
                  keySelect.selectedIndex = 0;
                  keySelect.onchange();
              }
              /* grid measure is by default 16 (4 beats of 4 '1/4th' notes) */
              /* TODO calculate measureLength from current grid settings */
              reverseNotes(16);
          }
      };

       menuContainer = $('#menubar_menus');
        menuContainer.empty();

        for (var i = 0; i < menus.length; i++) {
            (function(i) {
                var menu = menus[i];
                var menuTitle = menu.name
                var menuElement = $('<div id="menu_' + menu.name + '" class="menu_title">' + menu.name + '</div>');
                createMenuPopup(menuElement, menuElement, menu);
                menuContainer.append(menuElement);
            })(i);
        }

createMenus();


theboiidonitello Offline
Member
1 Posts:
 
#20
04-02-2019, 10:57 AM
(04-14-2018, 09:55 PM)dfhwze Wrote: Wink hey p.s. im severely stupid so can you explain how to plug this script in?Are we allowed to try to add some tools to it and reupload?

edit: my song reversal tool is available \o/

Code:
'reverse': {
           name: 'Reverse',
           action: function () {
               var reverseNotes = function (measureLength) {
                   /* get time index of last note that ends */
                   var lastNoteEndExact = 0;
                   for (i = 0; i < song.notes.length; i++) {
                       var note = song.notes[i];
                       if (isNumber(note.time) && isNumber(note.length) && note.time + note.length > lastNoteEndExact) {
                           lastNoteEndExact = note.time + note.length;
                       }
                   }
                   /* determine time index of end of song based on last note and grid measures */
                   var lastNoteEnd = Math.floor(lastNoteEndExact);
                   var songEnd = lastNoteEnd - lastNoteEnd % measureLength;
                   songEnd += lastNoteEndExact > songEnd ? measureLength : 0;
                   /* reverse all notes in time */
                   for (i = 0; i < song.notes.length; i++) {
                       var note = song.notes[i];
                       if (isNumber(note.time) && isNumber(note.length)) {
                           var newTime = songEnd - note.time - note.length;
                           song.moveNote(
                                    note,
                                    note.instrument,
                                    note.instrument,
                                    note.time,
                                    newTime,
                                    note.type,
                                    note.type);
                           song.update(note);
                       }
                   }
                   keySelect.selectedIndex = 0;
                   keySelect.onchange();
               }
               /* grid measure is by default 16 (4 beats of 4 '1/4th' notes) */
               /* TODO calculate measureLength from current grid settings */
               reverseNotes(16);
           }
       },


Pages (6): « Previous 1 2 3 4 5 6 Next »
Thread locked 



Users browsing this thread:   2 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