Rob Farber | 10 Oct 2003 17:10
Picon

Added pick effect back into 12.17.4 - Is there a reason why it was removed?

Is there a reason why the pick effect was removed from 12.17.3 and 12.17.4?

 

I added the pick effect basically by copying pick.c from 12.17 into 12.17.4. It required some simple editing which took a small amount of time. I tested it on a small sound file I constructed by merging two mono channels and using the pick effect to separate them again. The pick effect sounds like it works fine.

 

Is there a deeper problem that caused the pick effect to be removed? If not, I will be glad to provide a patch file to add it back in or instructions, as it is a pretty simple change.

 

The pick effect is necessary if you want to do any signal processing on the separate channels of a stereo wav file.

 

Thanks!

Rob

 

sugarcoatednapalm | 25 Oct 2003 00:24
Picon
Favicon

keep listening on a pipe after EOF

Is there any way to get sox (or a general solution for any program, really ) to keep listening on a named pipe
despite getting an EOF on the pipe?

at the moment I'm doing

while(test 1 ) ; do sox <input options> ... <pipe name> ...<output stuff> ; done;

Among other things I want to avoid some annoying clicks as the output is closed and opened.

--------------------------------------

Protect yourself from spam, 

use http://sneakemail.com

-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
Levi Bard | 28 Oct 2003 18:06

Re: keep listening on a pipe after EOF

> Is there any way to get sox (or a general solution for any program, really
> ) to keep listening on a named pipe despite getting an EOF on the pipe?
Can you just cat all the content together before piping?  Example (for mp3
audio): `mpg123 -s a.mp3 b.mp3 > myfifo`  (or for raw audio): `cat a.raw
b.raw > myfifo`

Levi

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Andrew Burgess | 28 Oct 2003 18:49

Re: keep listening on a pipe after EOF

>Is there any way to get sox (or a general solution for any program, really )
>to keep listening on a named pipe despite getting an EOF on the pipe?
>at the moment I'm doing
>while(test 1 ) ; do sox <input options> ... <pipe name> ...<output stuff> ; done;
>Among other things I want to avoid some annoying clicks as the output is closed and opened.

I wonder where the clicks come from? Are you outputting to a file or
a device? If device then maybe a little buffering will prevent underruns?
If a file then maybe your app isn't outputting silence at the beginning
and end of its run? You can concatenate silence, anything else may click.

Anyway, the pipe problem could be solved by putting another program
in front of sox that opens and keeps open the pipe that sox reads
but reopens the pipe that your unnamed app is writing and closing
as needed. I know this could be done in C, I'm not sure if a shell
script will work.

Maybe something like (untested):

  exec > $sox_pipe # make stdout the pipe that sox reads
  while true; do
    cat $app_pipe # this runs until the app closes the pipe
  done

HTH

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Todd Slater | 28 Oct 2003 22:00
Picon
Favicon

earwax

Hi,

I'm new to sox and interested in the earwax effect. According to the man
page, earwax:

Makes sound easier to listen to on headphones. Adds audio-
cues  to  samples in audio cd format so that when listened to
on headphones the stereo image is moved from inside your head
(standard for headphones) to outside and in front of the lis-
tener (standard for speakers).

What I don't understand is what is meant by "adds audio-cues to samples
in audio cd format". Will this not work, then, if I rip a cd to wav, add
earwax, and convert to ogg? What format do I need to use to write it to
cd?

I did take a wav and add earwax and convert to ogg. It sounds a little
tinny and muddy at the same time so I'm not sure if that's what I'm
supposed to hear or not.

Thanks,
Todd

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Daniel O'Connor | 29 Oct 2003 02:30
Picon

Re: earwax

On Wednesday 29 October 2003 07:30, Todd Slater wrote:
> Makes sound easier to listen to on headphones. Adds audio-
> cues  to  samples in audio cd format so that when listened to
> on headphones the stereo image is moved from inside your head
> (standard for headphones) to outside and in front of the lis-
> tener (standard for speakers).
>
> What I don't understand is what is meant by "adds audio-cues to samples
> in audio cd format". Will this not work, then, if I rip a cd to wav, add
> earwax, and convert to ogg? What format do I need to use to write it to
> cd?
>
> I did take a wav and add earwax and convert to ogg. It sounds a little
> tinny and muddy at the same time so I'm not sure if that's what I'm
> supposed to hear or not.

I would imagine Ogg (or mp3) would damage the earwax manipulation because 
those sort of compressors quite often destroy the phase relationship between 
channels.

You could run earwax AFTER ogg decompression and it would be OK..
I would suggest doing a listening comparison, eg
1. Rip a track
2. Listen to the rip
3. Listen to the rip through earwax
4. Oggify
5. Listen to the Ogg with earwax post decompression
6. Earwax then Oggify and listen

(Although TBH I don't particularly like how earwax sounds)

--

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
roc | 28 Oct 2003 13:20
Picon

newbie sox problems

hi list
i am having a little trouble with SoX
(i'm running it on a g4 powerbook under os 10.2)

here's some feedback from my terminal:

/Users/roc/sox-12.17.4 % play munitu.aiff reverb 1.0 600.0 180.0
play: Command not found.

/Users/roc/sox-12.17.4 % sudo chmod u+x play
Password:
/Users/roc/sox-12.17.4 % play munitu.aiff reverb 1.0 600.0 180.0
play: Command not found.

/Users/roc/sox-12.17.4 % ./play munitu.aiff reverb 1.0 600.0 180.0
sox: Usage: [ gopts ] [ fopts ] ifile [ fopts ] ofile [ effect [
effopts ] ]
Failed: No output file?

/Users/roc/sox-12.17.4 % sx munitu.aiff reverb 1.0 600.0 180.0
/users/roc/desktop/monu.aiff
./sox: Volume value 'munitu.aiff' is not a number
/Users/roc/sox-12.17.4 % sx munitu.aiff reverb 1.0 600.0 180.0
/users/roc/desktop/monu.aiff
./sox: Volume value 'munitu.aiff' is not a number

/Users/roc/sox-12.17.4 % play munitu.aiff reverb 1.0 600.0 180.0
play: Command not found.

/Users/roc/sox-12.17.4 % ./play munitu.aiff reverb 1.0 600.0 180.0
sox: Usage: [ gopts ] [ fopts ] ifile [ fopts ] ofile [ effect [
effopts ] ]
Failed: No output file?
/Users/roc/sox-12.17.4 %

it goes on and on. can't see what i'm messing up, although there is
something i'm for sure doin wrong
ANY HELP?

Thanks a lot!
ps> please reply to my email address too, as i'm not part of the sox 
list

r

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
sugarcoatednapalm | 29 Oct 2003 00:10
Picon
Favicon

keep listening on a pipe after EOF

Thanks for the responses.  Every time I see a question I wish I could answer too ...

>Can you just cat all the content >together before piping?

lots of files with different formats.  the audio parts of AVIs, some speex, some ogg, some win codecs ...

mplayer comes close to decoding the largest subset but it doesn't do all.

> I wonder where the clicks come from? 

> Are you outputti

Running several audio processes on that machine, all outputting to alsa.

When one shuts and restarts while others keep running (all using snd/dsp<..> )

> putting another program

> in front of sox that opens and keeps

> open the pipe that sox

I'll try /bin/tr next time i'm on that machine

--------------------------------------

Protect yourself from spam, 

use http://sneakemail.com

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Daniel O'Connor | 29 Oct 2003 04:50
Picon

Re: keep listening on a pipe after EOF

On Wednesday 29 October 2003 09:40, sugarcoatednapalm wrote:
> > putting another program
> >
> > in front of sox that opens and keeps
> >
> > open the pipe that sox
>
> I'll try /bin/tr next time i'm on that machine

If they all output the same format (let's say raw 44.1kHz 16 bit linear) then 
you could do..
mkfifo /tmp/foo
(player1 -o - file1 ; player2 -o - file2 ; ... ) >/tmp/foo
sox ...

--

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Tim Tassonis | 29 Oct 2003 14:46
Picon

Separate channel processing

Hi

I started digging a bit into sox and have a few questions about the
channels supported by sox.

I read in the manpage that sox supports up to four channels, allowing them
to be split and merged. My questions:

- Is it possible to record a sound source (oss mixer) into one channel
only, leaving the others intact?

- Is it possible to have two different sound sources (for instance oss
mixer and one channel of a file) as input and store them in two separate
channels? They would have to synchonized of course.

My idea of course is a minimal four-track recorder based on sox, recording
different tracks into the same audio file. With the above two features,
this would be possible, I guess.

Bye
Tim

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

Gmane