# Tool Idea (Multiple sample grabber)

**URL:** <https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862>\
**Category:** Renoise Tools\
**Created:** [December 30, 2022, 4:48pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862 "2022-12-30T16:48:05Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![tris](https://forum.renoise.com/letter_avatar/tris/32/6_449c533f586939b6e5f246632a46421f.png) [@tris](https://forum.renoise.com/u/tris)\
**Post date:** [January 30, 2023, 6:49pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/21 "2023-01-30T18:49:14Z")

</div>

Ok… I’ve made a good start on this and it wasn’t too painfull!

I’ve added the following menu options - they’re pretty much self explanatory:

- Main Menu:Tools:Copy all used Samples to a new Instrument
- Main Menu:Tools:Copy all used Samples from Pattern to a new Instrument
- Main Menu:Tools:Copy all used Samples from Track to a new Instrument

It works really well for drum/one-shots in it’s current state. It even copies layered samples across as pairs/trios etc.

I still need to think about:

- how to combine melodic instruments
- how to order the sample’s once collected and
- how to handle samples that are use multiple different pitches
- only operating on a selected area in the pattern
- remapping note’s in pattern’s to the new instrument
- documentation!

At the moment it blows up if you try to capture a sliced instrument… In order to work around that remember to “Destructively Render Samples” first.

I’ll add some warnings and options later tonight.

Here’s the XRNX:  
[org.tris.CollectSamples.xrnx](https://forum.renoise.com/uploads/short-url/hjQKLFCuOUG7MWx7sfgqn8IUKZg.xrnx) (1.8 KB)

And you’ll find the source here: [GitHub - triss/org.tris.CollectSamples.xrnx: Add used samples in to a new Instrument](https://github.com/triss/org.tris.CollectSamples.xrnx)

What feature’s would you lot like to see added?

What bugs have you all found?

---

<div class="post-metadata">

**Author:** ![ToybOx](https://forum.renoise.com/user_avatar/forum.renoise.com/toybox/32/632_2.png) [@ToybOx](https://forum.renoise.com/u/ToybOx)\
**Post date:** [January 30, 2023, 8:44pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/22 "2023-01-30T20:44:46Z")

</div>

Thank you,let me test it out!

---

<div class="post-metadata">

**Author:** ![xenobaba](https://forum.renoise.com/user_avatar/forum.renoise.com/xenobaba/32/28431_2.png) [@xenobaba](https://forum.renoise.com/u/xenobaba)\
**Post date:** [January 30, 2023, 9:13pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/23 "2023-01-30T21:13:20Z")

</div>

haven’t tested the tool yet, but would suggest the addition of keybindings for menu options 🙂

---

<div class="post-metadata">

**Author:** ![ToybOx](https://forum.renoise.com/user_avatar/forum.renoise.com/toybox/32/632_2.png) [@ToybOx](https://forum.renoise.com/u/ToybOx)\
**Post date:** [January 30, 2023, 9:13pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/24 "2023-01-30T21:13:39Z")

</div>

CollectSamples.xrnx' failed to execute in one of its menu entry functions.

Please contact the author Tristan Strange for assistance…

std::logic\_error: ‘can not copy a sliced sample to another sample. copy the whole instrument (to copy the slices as well) or only the raw sample data instead.’  
stack traceback:  
[C]: in function ‘copy\_from’  
main.lua:79: in function ‘copy\_sample\_mappings\_to\_new\_instrument’  
main.lua:103: in function main.lua:102

---

<div class="post-metadata">

**Author:** ![ToybOx](https://forum.renoise.com/user_avatar/forum.renoise.com/toybox/32/632_2.png) [@ToybOx](https://forum.renoise.com/u/ToybOx)\
**Post date:** [January 30, 2023, 9:15pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/25 "2023-01-30T21:15:28Z")

</div>

Yes also keybindings please.

---

<div class="post-metadata">

**Author:** ![xenobaba](https://forum.renoise.com/user_avatar/forum.renoise.com/xenobaba/32/28431_2.png) [@xenobaba](https://forum.renoise.com/u/xenobaba)\
**Post date:** [January 30, 2023, 9:32pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/26 "2023-01-30T21:32:45Z")

</div>

would it be possible to render fx chains for samples as well, or would this be a whole other sort of tool? As it is, this tool seems useful for collating source sounds, but seems to ignore processing of samples… I could see there being some serious utility for a tool that made renders of each track in pattern or pattern range, then sliced them at their note positions.  
But maybe this tool is already doing the trick for which it was requested

---

<div class="post-metadata">

**Author:** ![ToybOx](https://forum.renoise.com/user_avatar/forum.renoise.com/toybox/32/632_2.png) [@ToybOx](https://forum.renoise.com/u/ToybOx)\
**Post date:** [January 30, 2023, 9:40pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/27 "2023-01-30T21:40:16Z")

</div>

The tool so far is acting exactly as i requested,if tris feels like it,he could add on whatever he likes to this tool however i would request that the ‘copy all used samples from pattern to new instrument’ is left in its simplicity,this is the most important thing to me.

---

<div class="post-metadata">

**Author:** ![error.eyes](https://forum.renoise.com/user_avatar/forum.renoise.com/error.eyes/32/29786_2.png) [@error.eyes](https://forum.renoise.com/u/error.eyes)\
**Post date:** [January 30, 2023, 9:40pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/28 "2023-01-30T21:40:42Z")

</div>

I am curious if there is a workaround for this error. As far as I know, this is due to a limitation in the Lua API that doesn’t allow to copy sliced sample aliases.

---

<div class="post-metadata">

**Author:** ![ToybOx](https://forum.renoise.com/user_avatar/forum.renoise.com/toybox/32/632_2.png) [@ToybOx](https://forum.renoise.com/u/ToybOx)\
**Post date:** [January 30, 2023, 9:41pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/29 "2023-01-30T21:41:35Z")

</div>

Yes,i would prefer if the whole sample in that case is copied,if this cant be then i would prefer this sample to be ignored.

---

<div class="post-metadata">

**Author:** ![xenobaba](https://forum.renoise.com/user_avatar/forum.renoise.com/xenobaba/32/28431_2.png) [@xenobaba](https://forum.renoise.com/u/xenobaba)\
**Post date:** [January 30, 2023, 10:12pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/30 "2023-01-30T22:12:24Z")

</div>

Sounds like a good use case for an option dialog

---

<div class="post-metadata">

**Author:** ![tris](https://forum.renoise.com/letter_avatar/tris/32/6_449c533f586939b6e5f246632a46421f.png) [@tris](https://forum.renoise.com/u/tris)\
**Post date:** [January 30, 2023, 11:14pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/31 "2023-01-30T23:14:36Z")

</div>

Ok great stuff…

I’ll add the keyboard shortcuts and sort the copying and skipping of sliced samples in the morning (and add an options window!)

I can me self adding rather a lot to this:

- kb shortcuts
- option to copy or skip sliced samples
- operate on a selection
- possibly someway of stacking multiple melodic instruments (shifting things by octave or similar?)

---

<div class="post-metadata">

**Author:** ![xenobaba](https://forum.renoise.com/user_avatar/forum.renoise.com/xenobaba/32/28431_2.png) [@xenobaba](https://forum.renoise.com/u/xenobaba)\
**Post date:** [January 31, 2023, 11:24am UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/32 "2023-01-31T11:24:16Z")

</div>

I’d also suggest creating the new instrument in the next available instrument slot, instead of the last one, if possible, and adding a placeholder instrument name

---

<div class="post-metadata">

**Author:** ![Jonas](https://forum.renoise.com/user_avatar/forum.renoise.com/jonas/32/6937_2.png) [@Jonas](https://forum.renoise.com/u/Jonas)\
**Post date:** [January 31, 2023, 11:32am UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/33 "2023-01-31T11:32:21Z")

</div>

Seeing how this idea comes to fruition is great. Perhaps some kind of bounty system imbedded to the forum would be cool for these kind of threads? If another forum member would want to add to the total amount of the bounty for an idea, he/she could add. Adding to the incentive for an idea.

---

<div class="post-metadata">

**Author:** ![tris](https://forum.renoise.com/letter_avatar/tris/32/6_449c533f586939b6e5f246632a46421f.png) [@tris](https://forum.renoise.com/u/tris)\
**Post date:** [January 31, 2023, 12:04pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/34 "2023-01-31T12:04:01Z")

</div>

Good shout. I’ll sort that when I get home this afternoon.

---

<div class="post-metadata">

**Author:** ![tris](https://forum.renoise.com/letter_avatar/tris/32/6_449c533f586939b6e5f246632a46421f.png) [@tris](https://forum.renoise.com/u/tris)\
**Post date:** [January 31, 2023, 12:04pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/35 "2023-01-31T12:04:39Z")

</div>

I’m out of work at the moment… I’d love to see this happen!

---

<div class="post-metadata">

**Author:** ![tris](https://forum.renoise.com/letter_avatar/tris/32/6_449c533f586939b6e5f246632a46421f.png) [@tris](https://forum.renoise.com/u/tris)\
**Post date:** [January 31, 2023, 12:07pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/36 "2023-01-31T12:07:02Z")

</div>

@ToybOx here’s a version that does what you asked.

It now copies the source sample for any slices it comes across.

There are also keyboard shortcuts under **Global:Copy all used samples**

Let me know if there’s any tweaks you want and I’ll make them later this afternoon.

[org.tris.CollectSamples.xrnx](https://forum.renoise.com/uploads/short-url/n68pXK3robu8wmUUrhG9QWXrijm.xrnx) (2.5 KB)

---

<div class="post-metadata">

**Author:** ![ToybOx](https://forum.renoise.com/user_avatar/forum.renoise.com/toybox/32/632_2.png) [@ToybOx](https://forum.renoise.com/u/ToybOx)\
**Post date:** [January 31, 2023, 12:10pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/37 "2023-01-31T12:10:44Z")

</div>

Was thinking exact same thing,also it may just be me but all my kits begin on c-4 rather than c-3?

---

<div class="post-metadata">

**Author:** ![ToybOx](https://forum.renoise.com/user_avatar/forum.renoise.com/toybox/32/632_2.png) [@ToybOx](https://forum.renoise.com/u/ToybOx)\
**Post date:** [January 31, 2023, 12:11pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/38 "2023-01-31T12:11:26Z")

</div>

Working atm,will test when I get home

---

<div class="post-metadata">

**Author:** ![tris](https://forum.renoise.com/letter_avatar/tris/32/6_449c533f586939b6e5f246632a46421f.png) [@tris](https://forum.renoise.com/u/tris)\
**Post date:** [January 31, 2023, 1:02pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/39 "2023-01-31T13:02:15Z")

</div>

I reckon that’s just you mate! C-3 for drum kits and slices ftw.

That said I’ve already laid the groundwork for making the start note an option… Will sort over next hour or two.

---

<div class="post-metadata">

**Author:** ![ToybOx](https://forum.renoise.com/user_avatar/forum.renoise.com/toybox/32/632_2.png) [@ToybOx](https://forum.renoise.com/u/ToybOx)\
**Post date:** [January 31, 2023, 1:24pm UTC](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862/40 "2023-01-31T13:24:45Z")

</div>

Ok great,will send payment when home,if you want to send private message with details go ahead there,also other tools I might discuss with you.

[Previous page](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862.md?page=1)

[Next page](https://forum.renoise.com/t/tool-idea-multiple-sample-grabber/68862.md?page=3)
