New Tool (3.0): dBatchProcess


(re.dread) #1

dBatchProcess.png

Since batch processing sample data with lua is pretty slow, i wrote a new tool, mainly for trimming silence from recorded samples and normalizing.

The “SoX: Normalize (Relative)” preset normalizes all samples relative to the loudest sample in the instrument.

I added a couple more presets, see http://sox.sourceforge.net/sox.html for full documentation, some of the examples didn’t really work for me tho.

You can use other executables than SoX too ofc, @in and @out represent the oringal/processed files, if there is no output file it will load the @in file back into the instrument.

Should work on Windows and Linux (Mac too?) … make sure the PATH ends with a slash!

Cheers


some questions about looping samples
trimming from sample_buffer
how to normalize samples from a drummaschine without loose the dynamic
Removing silence from multiple samples?
How to Sort Tables That Appear in Popup Menus?
Removing silence from multiple samples?
Make all samples 8 bit-tool
SoX Resampler library, GNU LGPL 2.1 license - perfect resampling
(toimp) #2

Great, i was planning to programming a sox tool , too. But yours is great for basic stuff. Are you planning to add a preset editor?


(re.dread) #3

Thx. No preset editor planned for now. Was thinking about it, but it does the job for me, and putting more effort into the presets, you pretty much end up rewriting the CDP tool. I think it might make more sense to add other executables and batch processing to CDP in the long run.


(kytdkut) #4

hey, I find your tool really useful but I can’t seem to get it working

every time I try to process a sample I’m getting this “WARNING: No output file produced[…]”

I’m using linux (arch, x64), but know nothing about lua…

If you could give me some indications on how to debug this I would appreciate it

I’m filling the gui sections like this

jVl3TyE.png

and if I run Renoise in a terminal, if I click “Process sample!” I get this

sh: /bin/sox /tmp/Renoise-0-25612/Renoise_TmpFile-0-3.wav /tmp/Renoise-0-25612/Renoise_TmpFile-0-4.wav pad 0 3 reverb 2>&1 : No such file or directory

thanks in advance!


(re.dread) #5

Hey,

Just tried it and you’re right, doesn’t work under linux.

I uploaded a new version that works for me, are you sure you have the right PATH though? … sox is in /usr/bin/ for me, not /bin/.

Let me know if it works now, cheers.


(kytdkut) #6

it works now!!

in arch linux /bin is a symlink to /usr/bin

thanks a lot re.dread :walkman:awesome tool!


(Beatslaughter) #7

Modified version here, if you want to review the changes.


(Meef Chaloin) #8

Is there any way to use this tool without it breaking loop points?


(Djeroek) #9

I was looking for a tool to batch normalize the samples in a multi-sample instrument and this tool does the job perfectly, thanks! :yeah:

Gui/functionality reminds me of Johann’s old ‘run cmd on selection’ tool which seems m.i.a (https://forum.renoise.com/t/new-tool-run-cmd-on-selection/29282 ), like the CDP tool you can add sliders, set ranges for parameters that accept it.

Are there any plans of implementing similar functionality in the batch tool? Would be great, though seeing this is an old thread I’m necro’ing… probably not…

Last time I checked, the documentation of Sox doesn’t have a good overview for all the options and correct syntax for all the processes, right? + when supplying incorrect arguments/values, it doesn’t return any info on what’s wrong, opposed to the CDP programs. For a boring vacation, might look into hacking the CDP tool or Johann’s commandline thing if presets can be easily produced.


(TheBellows) #10

I can’t get it to work, maybe the automatic upgrade did not work properly? It looks like it processes something and i get no error message on the ‘Normalize’, but there are no files written in the output folder and the the actual Renoise instrument has not been changed. Am i doing something wrong perhaps?


(johanw) #11

I like dBatchProcess: a tool that does exactly what I’m after, really quickly, and with great results :slight_smile:

Re. automatic upgrade: I just installed in Renoise 3.1 on Mac, and had no problems.


#12

@ReDread link seems to have been lost in the forum migration - any chance of a re-upload? Sounds like a very nifty tool.