-v0.9
-Tidied up menus into a GUI for easier use
-Added ‘selection in track’ (in pattern) range
-removed whole song range
0.71
There is a new preference menu entry under Tools:Ledger`s Scripts:Reorder Notes By Pitch in: ~Preserve Column Positions Enabled
If you uncheck this preference the reordering is done so that notes are left aligned in the track they are in.
You get three menu entries (under Tools:Ledger`s Scripts) and corresponding shortcuts, which all reorder the pattern notes by pitch over different ranges. With this updated version though the relative position of the notes is kept, so the note-offs etc are preserved properly.
Shortcuts and menu entries: ----------------------------------------
Reorder Notes By Pitch in Pattern Track
Just for the selected track in the current pattern
Reorder Notes By Pitch in Whole Track
Selected Track, all patterns
Reorder Notes By Pitch in Selected Patterns
All tracks in the pattern range selected in the sequencer. That means you can select all patterns and the re-ordering is applied to the whole song.
Status updates give progress as this can be quite a slow operation over large ranges.
Just tried it out to make sure it did what I thought it did, and THANK YOU! It’s so annoying when you play like a big block chord and the notes are out of order, and manually rearranging them is a pain in the ass. This works perfectly, and they don’t even have to be on the same line.
As requested there is a new preference menu entry under Tools:Ledger`s Scripts:Reorder Notes By Pitch in: ~Preserve Column Positions Enabled
If you uncheck this preference the reordering is done so that notes are left aligned in the track they are in.
Hey ledger thanks for this script/tool. There seems to be a bug in the algorithm: Note-offs doesn’t seem to be moved correctly with the note. A note-off have to be moved always with the note before, hasn’t it? But this doesn’t happen here.
EDIT: No, the problem seems to be, if there is a note still playing on a column and another note appears in another column, this still hold-down/sustaining note needs to be taken care of…
And is it possible to have this tool directly with two shortest in the right-click-contextmenu like “Track->Order by pitch” and “Track->Order by pitch (left-align)” ?
Of course I would prefer auto note-sorting natively done by Renoise already, optional, viewable already while recording…
EDIT: No, the problem seems to be, if there is a note still playing on a column and another note appears in another column, this still hold-down/sustaining note needs to be taken care of…
And is it possible to have this tool directly with two shortest in the right-click-contextmenu like “Track->Order by pitch” and “Track->Order by pitch (left-align)” ?
Is the EDIT still a bug, I`m not quite sure what you are refering to?
The note-offs are not moved along with the belonging note in any case, so the note offs will be mixed completely in a wrong way. For example if the notes do not play the same rhythm in each column, the result will be a bit chaotic. I think the algorithm needs to look for a new note if there is a note still playing in the column before/to the left. And if so, the target column moves one to the right and so on. So each column in the track needs a playing status, that will be deleted if a note-off appears.
I started with a quick attempt but soon realized that I would not be able to fix the issues that this tool has.
So there will be no merged version, sorry.
Instead I’ve been dedicating the last couple of weeks on a much more flexible alternative - one that could be integrated into any other tool that need note-sorting.
I would estimate that the work is 80% done. Will bump this thread once it’s ready for use.