Dragging multiple samples into renoise -> how to decide what to do with it

hi, i’d like to drag 200 samples into renoise. i don’t want the 200 samples to be loaded into a single instrument. i want 200 instruments.

how do i change how this dragging behaviour is responded to by Renoise? can the API modify it?

1 Like

If you drag a group of selected samples from the internal browser onto the instrument list it populates as individual instruments, no?

@slujr
yes, you’re correct – if i use the disk browser.

but i would like to modify how renoise behaves when i drag, from outside sources (think Finder, Explorer, etc), and modify what is done with them. i.e. “drag sample in? → create new instrument, load”… or “drag sample in?” → add new slot to current instrument and load to new slot" type stuff.
or “drag sample in? slice into 16 pieces automatically”.

From a tool you can upload any sample anywhere. But you must create a custom browser to be able to select specific files and certain upload options.

The problem is selecting files from a specific folder.

yep, i’m aware of the finder + explorer based custom browsers, and how linux doesn’t have that, instead showing a truly limited renoise file browser.

and am also unfortunately very aware of the fact that can’t spawn the finder/explorer/linux-renoise-browser in a specific folder directly, either.

but i was hoping there was a way to hijack the “file being dragged into Renoise from outside Renoise” method to do x or y with it.

is it possible to override the .wav file-extension so that a script automatically does something specific with it? like with the EXS support?

( i’m under the impression that dragging an .EXS external file format into Renoise, with EXS Tool installed, will result in the EXS being loaded. or did i misunderstand/misremember?)

Yes it is possible via “add_file_import_hook”

hi… is it possible to then hijack the current file import hook for wavefiles, mp3s and flacs?
i mean, so i could decide what to do, maybe with a keymodifier or something?