Online Sequencer Forums

Full Version: A "Clean up selection" button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'd love a button that would snap all selected note positions and lengths to the grid, this would save a lot of time cleaning up messy midi files.
This is usually called quantize, and is a feature of most DAWs. I agree, would be nice to have on OS
(04-26-2024, 04:38 AM)Lopyt Wrote: [ -> ]This is usually called quantize, and is a feature of most DAWs. I agree, would be nice to have on OS

omg I would love that
(04-26-2024, 04:38 AM)Lastie Wrote: [ -> ]
(04-26-2024, 04:38 AM)Lopyt Wrote: [ -> ]This is usually called quantize, and is a feature of most DAWs. I agree, would be nice to have on OS

omg I would love that

I would to pls
Good idea.
Select the notes you want to quantize, then navigate to the browser console with f12 or ctrl+shift+i and use this function.

tweakNotes(n=>n.time = Math.round(n.time * grid) / grid)

You can learn more about console commands on the wiki at https://onlinesequencer.net/wiki/Console_Commands
(04-27-2024, 05:30 AM)Веn Wrote: [ -> ]Select the notes you want to quantize, then navigate to the browser console with f12 or ctrl+shift+i and use this function.

tweakNotes(n=>n.time = Math.round(n.time * grid) / grid)

You can learn more about console commands on the wiki at https://onlinesequencer.net/wiki/Console_Commands

ohh this is great, is there also something like this that works on the length of the notes? this only seems to alter their positions
That would be nice.
(04-28-2024, 09:00 AM)toonwa Wrote: [ -> ]
(04-27-2024, 05:30 AM)Веn Wrote: [ -> ]Select the notes you want to quantize, then navigate to the browser console with f12 or ctrl+shift+i and use this function.

tweakNotes(n=>n.time = Math.round(n.time * grid) / grid)

You can learn more about console commands on the wiki at https://onlinesequencer.net/wiki/Console_Commands

ohh this is great, is there also something like this that works on the length of the notes? this only seems to alter their positions

No.  
However there may be a couple of tricks depending on your specific case.  

If a lot of your notes are meant to be mostly similar lengths, you can select them and drag the length all the way to the left, which will make them all the minimum length of the current grid.  Then you just have to do some minor fixing, which will probably be quicker than manually editing all of them.

You may also be able to make use of truncateNotesAt(time), which will chop the selected notes off at the designated time stamp (which is the number that appears in the url when you click somewhere on the measure bar).
This would be interesting, although since its just a console command I feel like it would be craftier to have it as a button as well for people who don't know how to use the console correctly.