Updated Tool (3.1): Sort Instruments


(KMaki) #21

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.


(joule) #22

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” :)


#23

Great tool. Would love an update for 2.8.


(joule) #24

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


(Laffik) #25

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:


(Ledger) #26

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


(lilith) #27

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


(lilith) #28

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?


(joule) #29

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.


(lilith) #30

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?


(joule) #31

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:


(lilith) #32

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


(lilith) #33

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


(joule) #34

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:


(lilith) #35

Cool thanks :slight_smile: