Composition > Composition

Tutorials and newbie

<< < (2/2)

smoothstones:
thanks simon, it was in the command line on windows vista

-c & -s was the correct answer

distort repeat input.wav output.wav 12 -c100 -s30



smoothstones:
What's the best way to create a loop in a batch file?

blur blur input.ana output*.ana **

I need a loop to repeat the process from the lowest to the maximum possible amount of **.
Every time the loop runs it should create a new output file.

For example:
blur blur input.ana output1.ana 1
blur blur input.ana output2.ana 2

It should loop from the lowest **integer to the highest. It uses the same input each time and creates many variations. I know it will take up gigabytes of diskspace depending on the file size of the input.

lynx:
A batch FOR loop might be what you need.  Take a look at this bit of documentation:

http://ss64.com/nt/for_l.html

So for an incremental run of BLUR BLUR with windowing from 1 to 100, you could run this directly from a CMD box or batch file:

--- Code: ---FOR /l %i in (1,1,100) DO blur blur input.ana output%i.ana %i
--- End code ---

I know you're a command-line user, but I'll mention that Sound Loom integrates similar functionality with "Suck It & See".

smoothstones:
Thank you very much Lynx, that's fantastic.

Is it possible to have 3 loops running together?

distort repeat input.wav output.wav A -cB -sC

(loops for A, B, and C)

Perhaps a lot more complex?

ss64.com looks like a really great website too. I just checked it but I couldn't find anything about multiple loops.

lynx:
By "nesting" FOR loops, it is possible to iterate through more than one loop.

Mention of this possibility is made here:
http://www.robvanderwoude.com/for.php

Using your example with DISTORT REPEAT, we might do something like this to generate a lot of files:

--- Code: ---FOR /L %A IN (1,1,10) DO FOR /L %B IN (1,1,128) DO FOR /L %C IN (1,1,20) DO distort repeat input.wav output%A-%B-%C.wav %A -c%B -s%C

--- End code ---

Remember that within a batch file, there must be two "%" for each variable substitution (e.g., %%A).  Entered directly from the command-line, one substitution character is fine.

While not a whole lot more complex, techniques like this make it easy to generate more files than you will possibly need (or bother listening to).  It might be better to take one or two parameters at a time, stepping through with larger increments--as 1 will be very fine for some processes--and try to systematically identify "zones" of interest.  Having identified a zone between, say, 350 and 500 for a process, you can step through with more precision with a single loop and audition the results.

Navigation

[0] Message Index

[*] Previous page

Go to full version