Menu

#281 repeat not working in a chain of effects

closed-invalid
nobody
None
5
2018-04-27
2016-11-29
OzoneGrif
No

Hello,

I have this command :
sox.exe input.wav output.wav repeat - trim 0 6 : repeat - trim 0 6 vol 0.5

It takes a one second file input, repeats it infinitely for 6 seconds (so six times), then halve its volume and is supposed to play it for another 6 seconds.

Repeat works on the first chain, but the second chain only plays it once.

Discussion

  • Mans Rullgard

    Mans Rullgard - 2018-04-27
    • status: open --> closed-invalid
     
  • Mans Rullgard

    Mans Rullgard - 2018-04-27

    This isn't expected to work. The first repeat - belongs to the first effects chain and will consume the entire input file, leaving nothing for the second chain. You can do something like this instead:

    sox '|sox input.wav -p repeat -' output.wav trim 0 6 : trim 0 6 vol 0.5
    
     

Log in to post a comment.

MongoDB Logo MongoDB