Jump to content


Photo

New Tool (3.0): dBatchProcess

batch process samples

  • Please log in to reply
8 replies to this topic

#1 re.dread

re.dread

    Advanced Member

  • Normal Members
  • PipPipPip
  • 97 posts

Posted 06 September 2014 - 11:27

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

 

Attached Files


Edited by re.dread, 23 November 2014 - 16:21.

  • Djeroek, hotelsinus, ffx and 4 others like this

#2 toimp

toimp

    Big GrandDaddy Member

  • Normal Members
  • PipPipPipPipPipPipPipPip
  • 496 posts
  • Gender:Male
  • Location:Germany
  • Interests:Music, music, music ...

Posted 06 September 2014 - 15:12

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? 



#3 re.dread

re.dread

    Advanced Member

  • Normal Members
  • PipPipPip
  • 97 posts

Posted 06 September 2014 - 17:12

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. 



#4 kytdkut

kytdkut

    Member

  • Normal Members
  • PipPip
  • 41 posts
  • Gender:Male
  • Location:Buenos Aires

Posted 21 November 2014 - 17:46

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!


Edited by kytdkut, 21 November 2014 - 17:48.


#5 re.dread

re.dread

    Advanced Member

  • Normal Members
  • PipPipPip
  • 97 posts

Posted 23 November 2014 - 16:27

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.



#6 kytdkut

kytdkut

    Member

  • Normal Members
  • PipPip
  • 41 posts
  • Gender:Male
  • Location:Buenos Aires

Posted 23 November 2014 - 20:23

it works now!!

 

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

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



#7 Beatslaughter

Beatslaughter

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2289 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:Music, Blu-ray, PC Games

Posted 13 March 2015 - 12:26

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


  • JPV likes this

#8 Meef Chaloin

Meef Chaloin

    Big GrandDaddy Member

  • Normal Members
  • PipPipPipPipPipPipPipPip
  • 465 posts
  • Gender:Male

Posted 18 May 2015 - 17:07

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



#9 Djeroek

Djeroek

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6697 posts
  • Gender:Male
  • Location:Borneo

Posted 03 March 2016 - 13:26

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 ( http://forum.renoise...d-on-selection/ ), 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. 


  • ghostwerk likes this





Also tagged with one or more of these keywords: batch, process, samples