Hannu Vuolasaho | 8 Apr 2010 16:58
Picon
Favicon

Ping-pong efect with sox

Hello!

I know this can be done with DSP as I have experience before, but I don't know can Sox do it. I was driving with car and there was this DSP system which allowed to put delay to left and right. Of course when left delay increased I steered to left as my left side got further away :)

Anyway I'm thinking about using Sox to give audible error and I was thinking that is it possible synthesise PING sound and then put it somewhere in sound image between left and right. Not just with balance but also with delay to enhance the effect.

Any ideas or how to do it easily? Or if Sox is totally wrong tool for it, links to better programs are appreciated.

I'm more in to video editing than audio engineering so please be gentle.

BR,
Hannu Vuolasaho

Hotmail: Free, trusted and rich email service. Get it now.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
Trevor Astrope | 11 Apr 2010 03:57

Sox Tagging aiff Files

Does anyone know how sox tags aiff files with a comment and if it is 
possible to write other tags as well?

If not, do you know of a command line tool that can tag aiff files? 
ExifTool can read them, but can't write them. Others like id3tag and id3v2 
attempt to write them, but with an id3 header, which doesn't work for 
aiff.

Thanks,

Trevor

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Jan Stary | 11 Apr 2010 13:32
Picon

Re: Sox Tagging aiff Files

On Apr 10 21:57:27, Trevor Astrope wrote:
> Does anyone know how sox tags aiff files with a comment and if it is 
> possible to write other tags as well?

$ sox in.flac							\
 --add-comment='What is that _manpage_ you guys talk about?'	\
 --add-comment='Am I supposed to read it or what?'		\
 test.aiff

$ soxi test.aiff 

 Input File     : 'test.aiff'
 Channels       : 1
 Sample Rate    : 48000
 Precision      : 16-bit
 Duration       : 00:00:10.00 = 480000 samples ~ 750 CDDA sectors
 File Size      : 960k
 Bit Rate       : 768k
 Sample Encoding: 16-bit Signed Integer PCM
 Comments       : 
 Comment=Processed by SoX
 What is that _manpage_ you talk about?
 Am I supposed to read it or what? 

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Trevor Astrope | 11 Apr 2010 21:18

Re: Sox Tagging aiff Files

On Sun, 11 Apr 2010, Jan Stary wrote:
> $ sox in.flac							\
> --add-comment='What is that _manpage_ you guys talk about?'	\
> --add-comment='Am I supposed to read it or what?'		\
> test.aiff

Heheh, I actually did search the man pages, but I was searching for the 
tag string and not comment.

Thanks. It does answer my question about how sox writes comments and it 
appears sox writes the metadata in the comment block for aiff. I was 
hoping that the default comment was an ID3 comment tag, but this isn't the 
case. So, I'm still looking for a solution to write the metadata from a 
flac file to aiff files using the ID3 block rather than the comment 
block, so they could be read in itunes. I guess I'll have to use xld or 
max or itunes2flac on the mac to do it. I was really hoping I could do it 
on the command line in linux, but I can't find any command line utilities 
that will write metadata to the ID3 block in aiff files.

Thanks,

Trevor

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Chris Bagwell | 12 Apr 2010 01:43

SoX 14.3.1 Released

We are happy to announce the release of SoX 14.3.1.

Source code, Win32 binaries, and Mac OSX binaries can be downloaded from
https://sourceforge.net/project/showfiles.php?group_id=10706

Release highlights include:

 o New Grandstream ring-tone (gsrt) format.
 o CVSD encoding and decoding speed-ups.
 o Ability to select MP3 compression parameters.
 o Write support for ID3 and VBR tags in MP3 files.
 o Support loading MP3, AMRNB, AMRWB, and libsndfile libraries at runtime.
 o New native Windows audio driver for playing/recording.
 o New native Windows executable (no cygwin libraries) for smaller
size and more consistent window experience.
 o OSX users no longer need Xcode installed to get missing libltld library.
 o Turned multi-threaded off by default since it is buggy on some platforms.
 o Many bugfixes and improvements to existing behavior.
 o Improvements to documentation and code examples.

For the complete list of changes, see the ChangeLog at
http://sox.cvs.sourceforge.net/viewvc/sox/sox/ChangeLog?revision=1.266&view=markup

Thanks to all who contributed to this release.

- The developers.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
TJF | 12 Apr 2010 12:28
Picon

sox-14.3.1 / CMake / MingW / MSVS++

Hi,

I could get a libsox.lib and the other compiled programs, when I use 
CMake and MSVS++ 9 (2008) on Win. But there is no way to do it with 
CMake and MingW. Doesn't this work at all? Or has someone any idea for 
me? Is it right that there is no dynamic lib (dll) compiled?

CMake is also looking for a "ln.exe" -> LN-NOTFOUND . I found an old 
"ln.exe" (hardlinking-tool from 2003) but this is causing some problems 
compiling some programs coming with sox (which I don't need) - even with 
MSVS++. Has anyone an idea, where to get the right "ln.exe"?

Best regards
Thomas

That is what I get, compiling with MingW:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

E:\Programmierung\Projekte_VisualC++\sox_14_3_1\Build>mingw32-make -f 
makefile
[  0%] Generating soxstdint.h
Scanning dependencies of target libsox
[  0%] Building C object src/CMakeFiles/libsox.dir/effects.obj
[  1%] Building C object src/CMakeFiles/libsox.dir/formats_i.obj
In file included from 
E:\Programmierung\Projekte_VisualC++\sox_14_3_1\src\format
s_i.c:23:
C:/Qt/2010.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/stat.h:
122: error: redefinition of `struct _stati64'
mingw32-make[2]: *** [src/CMakeFiles/libsox.dir/formats_i.obj] Error 1
mingw32-make[1]: *** [src/CMakeFiles/libsox.dir/all] Error 2
mingw32-make: *** [all] Error 2

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Chris Bagwell | 12 Apr 2010 17:18

Re: sox-14.3.1 / CMake / MingW / MSVS++

On Mon, Apr 12, 2010 at 5:28 AM, TJF <tjfoerster <at> web.de> wrote:
> Hi,
>
> I could get a libsox.lib and the other compiled programs, when I use
> CMake and MSVS++ 9 (2008) on Win.

Glad to hear that confirmation about CMake.  There is also a pre-build
msvc9 project under sox-14.3.1/msvc9.

> But there is no way to do it with
> CMake and MingW. Doesn't this work at all? Or has someone any idea for
> me? Is it right that there is no dynamic lib (dll) compiled?
>
> CMake is also looking for a "ln.exe" -> LN-NOTFOUND . I found an old
> "ln.exe" (hardlinking-tool from 2003) but this is causing some problems
> compiling some programs coming with sox (which I don't need) - even with
> MSVS++. Has anyone an idea, where to get the right "ln.exe"?

The main reason cmake support is included is for msvc support.  Right
now, the maintainer of the cmake support is a little less active in
project and our new windows expert is maintaining the msvc project.

The preferred method to compile mingw is with the configure script
(and thus needing the MSYS packages installed).  It is how sox.exe on
web site is compiled.  Patches for cmake and mingw are welcome though.

>
> Best regards
> Thomas
>
> That is what I get, compiling with MingW:
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> E:\Programmierung\Projekte_VisualC++\sox_14_3_1\Build>mingw32-make -f
> makefile
> [  0%] Generating soxstdint.h
> Scanning dependencies of target libsox
> [  0%] Building C object src/CMakeFiles/libsox.dir/effects.obj
> [  1%] Building C object src/CMakeFiles/libsox.dir/formats_i.obj
> In file included from
> E:\Programmierung\Projekte_VisualC++\sox_14_3_1\src\format
> s_i.c:23:
> C:/Qt/2010.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/stat.h:
> 122: error: redefinition of `struct _stati64'
> mingw32-make[2]: *** [src/CMakeFiles/libsox.dir/formats_i.obj] Error 1
> mingw32-make[1]: *** [src/CMakeFiles/libsox.dir/all] Error 2
> mingw32-make: *** [all] Error 2

At first glance, this looks like a gcc issue.  It looks like your
using gcc 3.4.5?  I've only been compiling with gcc 4.x.x series.

Sox doesn't redefine _stati64... It does do a "#define stat _stat64"
though.  You might want to do some searching and find out were the
duplicate _stati64 is coming from.

Chris

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Thomas Foerster | 12 Apr 2010 17:55
Picon

Re: sox-14.3.1 / CMake / MingW / MSVS++

Hi,

thank you! This compiling problem may be also caused by a strange chaos 
in this MinGW "lib" and "libexec" folder...

But: No dll ...?

Any idea about LN ?

Regards
Thomas

Chris Bagwell schrieb:
> On Mon, Apr 12, 2010 at 5:28 AM, TJF <tjfoerster <at> web.de> wrote:
>   
>> Hi,
>>
>> I could get a libsox.lib and the other compiled programs, when I use
>> CMake and MSVS++ 9 (2008) on Win.
>>     
>
> Glad to hear that confirmation about CMake.  There is also a pre-build
> msvc9 project under sox-14.3.1/msvc9.
>
>   
>> But there is no way to do it with
>> CMake and MingW. Doesn't this work at all? Or has someone any idea for
>> me? Is it right that there is no dynamic lib (dll) compiled?
>>
>> CMake is also looking for a "ln.exe" -> LN-NOTFOUND . I found an old
>> "ln.exe" (hardlinking-tool from 2003) but this is causing some problems
>> compiling some programs coming with sox (which I don't need) - even with
>> MSVS++. Has anyone an idea, where to get the right "ln.exe"?
>>     
>
> The main reason cmake support is included is for msvc support.  Right
> now, the maintainer of the cmake support is a little less active in
> project and our new windows expert is maintaining the msvc project.
>
> The preferred method to compile mingw is with the configure script
> (and thus needing the MSYS packages installed).  It is how sox.exe on
> web site is compiled.  Patches for cmake and mingw are welcome though.
>
>   
>> Best regards
>> Thomas
>>
>> That is what I get, compiling with MingW:
>>
>> Microsoft Windows XP [Version 5.1.2600]
>> (C) Copyright 1985-2001 Microsoft Corp.
>>
>> E:\Programmierung\Projekte_VisualC++\sox_14_3_1\Build>mingw32-make -f
>> makefile
>> [  0%] Generating soxstdint.h
>> Scanning dependencies of target libsox
>> [  0%] Building C object src/CMakeFiles/libsox.dir/effects.obj
>> [  1%] Building C object src/CMakeFiles/libsox.dir/formats_i.obj
>> In file included from
>> E:\Programmierung\Projekte_VisualC++\sox_14_3_1\src\format
>> s_i.c:23:
>> C:/Qt/2010.01/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/stat.h:
>> 122: error: redefinition of `struct _stati64'
>> mingw32-make[2]: *** [src/CMakeFiles/libsox.dir/formats_i.obj] Error 1
>> mingw32-make[1]: *** [src/CMakeFiles/libsox.dir/all] Error 2
>> mingw32-make: *** [all] Error 2
>>     
>
> At first glance, this looks like a gcc issue.  It looks like your
> using gcc 3.4.5?  I've only been compiling with gcc 4.x.x series.
>
> Sox doesn't redefine _stati64... It does do a "#define stat _stat64"
> though.  You might want to do some searching and find out were the
> duplicate _stati64 is coming from.
>
> Chris
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Sox-users mailing list
> Sox-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users
>
>   

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Chris Bagwell | 12 Apr 2010 18:14

Re: sox-14.3.1 / CMake / MingW / MSVS++

On Mon, Apr 12, 2010 at 10:55 AM, Thomas Foerster <tjfoerster <at> web.de> wrote:
> Hi,
>
> thank you! This compiling problem may be also caused by a strange chaos
> in this MinGW "lib" and "libexec" folder...
>
> But: No dll ...?

Opps, missed that question.  Currently, no with mingw .  In theory, it
should be working though because configure/libtool have the support.
I personally only link in the static library and have not spent time
to figure out why mingw will not create them.   libtool gives
following message during link phase of libsox.dll and then reverts to
building static only (and some other warnings as well):

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.

You might try removing "-no-undefine" from Makefile.  All optional
libraries used by libsox.dll will need to be DLL's as well if its ever
to work (such as libogg.dll, etc).

>
> Any idea about LN ?

The only reason its used is to do:

ln -s sox.exe soxi.exe
ln -s sox.exe play.exe
ln -s sox.exe rec.exe

Since you can do that by hand or just skip it since you mainly want
libraries, all you need to do is find away for it to gracefully fail.
You don't really need a working ln.exe.

Chris

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Klaus Schulz | 14 Apr 2010 17:29

vol effect inverts phase acc. to man pages - how to revert that back?

Hi folks.

I just read by coincidence in the man-pages that vol reverts phase !?!? Can anybody confirm that?

How do I revert that back to original?

Or shall I better use "gain" instead? It doesn't say in the man pages that the phase is changed with "gain".


THX

Cheers

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

Gmane