Re: Multiple Pipes in series - possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2021-06-30 10:59, Brandon Lincoln Snyder wrote:

In my example from earlier, I was trying to build a minimum working example to help me understand the syntax for running sox pipes in series. In other
words, how can I use the stdout in a pipe as an stdin for another pipe?

Did you look at the manual?  In its simplest form, sox uses - to denote
reading from stdin and/or writing to stdout. See the section on "special
filenames".

Moreover the description of the -p option says

−p, −−sox−pipe

 This can be used in place of an output filename to specify that the
 SoX command should be used as in input pipe to another SoX command.
 For example, the command:

 play "|sox −n −p synth 2" "|sox −n −p synth 2 tremolo 10" stat

 plays two ‘files’ in succession, each with different effects.

 −p is in fact an alias for ‘−t sox −’.



Note the last sentence, which sets -t (as described in the special
filenames text) and also has a following "-".





I'm trying to build an application at the moment, where serial sox pipe
processes could be used in many different ways.

It would help me to understand what you're trying to do if you explained
whether you want just to process a single source file (ie something that
already exists) or if you're trying to take continuous incoming sound and
do something to it.

Are you trying to make multiple copies of that source and send each of
them somewhere else, possibly with different effects applied to each one?

Are you hoping, if the destinations are playback devices playing in real
time, that the sound playing at each one will be in-sync with each other?

Are you expecting the playbacks, if there are any, to be in a known sync
with the input (ie delayed by a predictable number of mS)?




For instance, I'd like to
eventually make something similar to the MC system
<https://docs.cycling74.com/max8/vignettes/mc_topic> in MaxMSP.

You may know what you mean, but I don't. That page is too general/vague.

What /specific/ thing are you trying to do?


--
Jeremy Nicoll - my opinions are my own


_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users




[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux