Updated Tool (3.1): Sort Instruments

yeah, if it also detected which patterns are muted in the pattern matrix, and sorted by “first actually played note” instead of “first note on first pattern, no matter if muted or not”, it’d be awesome.

Thanks!

A wish: Similar tool for samples! :)

This would organize samples within an instrument, keeping the key mapping updated but changing the order of samples in the instrument?

I seldom use multi-sampled instruments, but if it is truly usable I could probably make a tool like that. I think it would fit better as a context menu somewhere in the instrument/sample editor? Please give suggestions on sensible options.

Well this makes things so much easier for me. Thanks Joule! :)

I don’t know about others, but for me this would be useful. Especially the possibility to randomize the sample list. I’m looking for efficient ways to build lively acoustic drum instruments with multisampled sample material. I’d use the randomize in conjunction with Velocity Layerer and Grab Sample Keyzones for some hardcore layering. :)

If you see it fit to take this on, I’d figure the best place to put the tool would be the sample list context menu, as the Organize instruments -tool appears in the instrument list context menu. I’d figure the feasible organization methods in the instrument organizer tool, that would correlate for samples would be:

-Name
—just for general neatness, maybe some specific purposes such as ordering a botched up list of samples,

-Most used
—for clarity, I guess this could be useful

-Size
—possibly? there might be some weird usage scenario for that, but cannot think one up right now… :wacko:

-Random
—yes! this is the one for me. Especially to use with the tools i mentioned.

-Reverse
—I actually have a tool for that already, but it would be SO cool if your thorough instrument organizing code could be used here also…

The appearance order -stuff seems a bit far fetched… Cannot think why someone would do that. Maybe? Consider someone that stuffs all his speech samples as a drum kit into a single instrument, then composes, then wants to order the samples. So maybe, but that’s probably a rare scenario. (Not to mention that this would demand a lot of coding…)

One other option, that I think could be useful would be the possibility to reorder samples somehow based on the key zones. (left to right, up to down?) I don’t know.

For me the true killer feature, as I’ve said too many times already (sorry bout that…) would be: randomize.

That seems doable. I would make the tool updating the keyboard mapping as well, but I’d put a toggle for that in case you want true randomization then.

-Name
-Most used (in patterns then)
-Size
-Random
-Reverse
-By keymapping

I’m kind of on a musical period right now but this could be my next thing. “Sample organizer” :)

Great tool. Would love an update for 2.8.

Updated for 3.1 with speed optimizations et c. It’s all in the original post!

1 Like

Very useful. Always when tracking there’s some unused sounds left between tons of used. There was no way to find them. Now just enough to sort them with this tool by most used, and I got them. Salvation. Cheers. :slight_smile:

Bit of a bug when three instruments have the same name , they don`t sort properly:

Start with simple reversed order of instruments to tracks:

00: a_sample --on track 3
01: a_sample --on track 2
02: a_sample --on track 1

goes to

00: a_sample --on track 1 --right
01: a_sample --on track 3 --wrong
02: a_sample --on track 2 --wrong

after horizontal sort

7781 Sort Horizontal Bug.xrns

Thanks, I was looking for this. I sorted it by hand all the time :confused: Should be natively available in Renoise.

Mh… the horizontal and vertical sort feature doesn’t work under Linux or I don’t get it.
Is it supposed to work for sample based instruments and plugins?

Yes. What is happening?

The horizontal sorting will sort the instrument list according to the first track an instrument is found in (left to right). Example: If instrument 2 is used in track 1 and instrument 1 is used in track 2, they will switch place.

The vertical sorting will sort the instrument list according to the first line an instrument is used on.
Example: The very first note found in a song would always refer to instrument 00. The very last note found in a song would always refer to the last used instrument in the instrument list.

Ok, then I got it. I’ll post an example xrns the next days and play with it again.
Sometimes it’s doing nothing. Does it matter if Track name is the same as instrument name?

No, that doesn’t matter. Let me know what bugs you find! The tool was released for Renoise 2.8 and it’s possible that I should revisit the code :slight_smile:

This is what I get when sorting horizontally:

Sorting vertically and according to name works though.sort.xrns (143.5 KB)

Testet in version 3.1 and 3.1.1

1 Like

@joule: could you reproduce it or am I missing something?

Yes! (that’s why i liked your comment). I’m refactoring the code. I can’t say how long that will be, but I’m guesssing it’s not crucial anyway :slight_smile:

1 Like

Cool thanks :slight_smile: