Online Sequencer Forums

Full Version: Ability to delete doubled up notes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It would be helpful if we had the ability or option to delete two notes of the same duration on the same spot. Having to go through entire sections, deleting notes one by one, and restoring them if they end up not being doubled up is a pain
You can avoid this by using ctrl+alt+v to paste at the mouse
You can do that already, using console commands. Open up the console (ctrl+shift+J) on chrome, then select the notes you want to dedupe, then run this code:

let s = new Set(); let t = new Set(); for (const n of selection.notes) { let k = n.toString(0); if (t.has(k)) { s.add(n); } else { t.add(k); }}; selectNotesIf(n => s.has(n) );

That code will select the duped notes, so then you can delete them or whatever you want.
(08-12-2021, 12:41 PM)Liam Wrote: [ -> ]You can do that already, using console commands. Open up the console (ctrl+shift+J) on chrome, then select the notes you want to dedupe, then run this code:

let s = new Set(); let t = new Set(); for (const n of selection.notes) { let k = n.toString(0); if (t.has(k)) { s.add(n); } else { t.add(k); }}; selectNotesIf(n => s.has(n) );

That code will select the duped notes, so then you can delete them or whatever you want.

the command didn't work anymore
EDIT: nevermind. it works but it won't work when you are importing your midi file