Re: merging mono files

René Bastian <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <20161209120830.43f90921@lenovo>
Hello happy soxers,

I use sox/play every day, in rehearsals & performances: it is a good
guy. So some users think: sox does so many things, why does it not
make what i need? Sox can be adapted; for my proper use, i wrote some
little pythons:

def joue(xnom):
    " joue le fichier "
    if xnom[-4:] == ".raw":
        comm = "play -c2 -e signed-integer -r44100 -b16 " + xnom
        os.system(comm)
    elif xnom[-4:] == ".wav":
        comm = "play " + xnom
        os.system(comm)

I dont like audiofiles with headers; i prefer couples of 2 files:
audiofilename.raw & audiofilename.info.

The raw files are strictly numeric (made with Python3 + Numpy); the
needed infos (SR, wordsize, markers [if any], etc) are in the
audiofilename.info.

Often headers are of fixed length (in wav files the header size is often
44 bytes long). In my sense, the best is to decode the header and then
to cut it. So one can handle the numeric file as you like it - given
that the OS permits it).

sox, i thank you

rb



-- 
René Bastian
www.pythoneon.org

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.