Discussion:
[SoX-users] Sox marker handling Was: Re: merging mono files
Peter P.
2016-12-08 13:47:17 UTC
Permalink
If Sox does not preserve loops and cues yet.... then please add that to the
wish list. It would be very handy for several people doing serious digital
sound processing. :-)
I was thinking about the problem of markers in the file headers when
mixing files together, as Dr. Mark is trying to do. What if the
markers in the left channel and the right channel are not completely
identical? I think this is a more complicated task than just copying
input file markers to the output file when mixing.
Hi,
in that case I would propose to issue a warning and copy the markers
from one source - this can be achieved without understanding the markers.
A more elaborate solution could use both markers, but ommit markers
which are too close together. This, however requires extracting and
understanding the information of the markers.
Thanks for your Ideas Erich!

As someone else already said it is not precisely known how sox handles
markers, and I don't feel that it should become a marker editing/merging
application. Speaking of that, is anyone aware of audio editors / DAW
that do precisely that, eg. displaying markers and allowing user to
edit/rename them, espeicllay on linux?

Thanks!
Peter
Dr. Mark Bugeja MD
2016-12-08 13:59:17 UTC
Permalink
I am able to process these files with Sony Soundforge. This software
does not come free though. I need to simply copy and paste. So it is as
easy as a-b-c as the saying goes. It's the sheer volume of files that is
of concern.

Mark
Post by Peter P.
If Sox does not preserve loops and cues yet.... then please add that to the
wish list. It would be very handy for several people doing serious digital
sound processing. :-)
I was thinking about the problem of markers in the file headers when
mixing files together, as Dr. Mark is trying to do. What if the
markers in the left channel and the right channel are not completely
identical? I think this is a more complicated task than just copying
input file markers to the output file when mixing.
Hi,
in that case I would propose to issue a warning and copy the markers
from one source - this can be achieved without understanding the markers.
A more elaborate solution could use both markers, but ommit markers
which are too close together. This, however requires extracting and
understanding the information of the markers.
Thanks for your Ideas Erich!
As someone else already said it is not precisely known how sox handles
markers, and I don't feel that it should become a marker editing/merging
application. Speaking of that, is anyone aware of audio editors / DAW
that do precisely that, eg. displaying markers and allowing user to
edit/rename them, espeicllay on linux?
Thanks!
Peter
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/sox-users
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
RT
2016-12-08 14:45:38 UTC
Permalink
You may want to look into Octave which is like a free version of Matlab I
use it to batch process / create 1000's of audio files at once. The time
this takes will vary on the length and bit rate of your file.

Here's some simple examples.

http://homepages.udayton.edu/~hardierc/ece203/sound.htm

Rick
I am able to process these files with Sony Soundforge. This software does
not come free though. I need to simply copy and paste. So it is as easy as
a-b-c as the saying goes. It's the sheer volume of files that is of concern.
Mark
If Sox does not preserve loops and cues yet.... then please add that to the
wish list. It would be very handy for several people doing serious digital
sound processing. :-)
I was thinking about the problem of markers in the file headers when
mixing files together, as Dr. Mark is trying to do. What if the
markers in the left channel and the right channel are not completely
identical? I think this is a more complicated task than just copying
input file markers to the output file when mixing.
Hi,
in that case I would propose to issue a warning and copy the markers
from one source - this can be achieved without understanding the markers.
A more elaborate solution could use both markers, but ommit markers
which are too close together. This, however requires extracting and
understanding the information of the markers.
Thanks for your Ideas Erich!
As someone else already said it is not precisely known how sox handles
markers, and I don't feel that it should become a marker editing/merging
application. Speaking of that, is anyone aware of audio editors / DAW
that do precisely that, eg. displaying markers and allowing user to
edit/rename them, espeicllay on linux?
Thanks!
Peter
------------------------------------------------------------------------------
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
_______________________________________________
------------------------------
[image: Avast logo]
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
This email has been checked for viruses by Avast antivirus software.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
------------------------------------------------------------
------------------
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
https://lists.sourceforge.net/lists/listinfo/sox-users
Dr. Mark Bugeja MD
2016-12-08 17:56:33 UTC
Permalink
Thanks Rick.

Whilst the software you mention looks interesting, it does not appear to
carry the features I am looking for ie merging 2 mono wav files into one
without losing loop and marker data.

Mark
Post by RT
You may want to look into Octave which is like a free version of
Matlab I use it to batch process / create 1000's of audio files at
once. The time this takes will vary on the length and bit rate of
your file.
Here's some simple examples.
http://homepages.udayton.edu/~hardierc/ece203/sound.htm
<http://homepages.udayton.edu/%7Ehardierc/ece203/sound.htm>
Rick
I am able to process these files with Sony Soundforge. This
software does not come free though. I need to simply copy and
paste. So it is as easy as a-b-c as the saying goes. It's the
sheer volume of files that is of concern.
Mark
Post by Peter P.
If Sox does not preserve loops and cues yet.... then please add that to the
wish list. It would be very handy for several people doing serious digital
sound processing. :-)
I was thinking about the problem of markers in the file headers when
mixing files together, as Dr. Mark is trying to do. What if the
markers in the left channel and the right channel are not completely
identical? I think this is a more complicated task than just copying
input file markers to the output file when mixing.
Hi,
in that case I would propose to issue a warning and copy the markers
from one source - this can be achieved without understanding the markers.
A more elaborate solution could use both markers, but ommit markers
which are too close together. This, however requires extracting and
understanding the information of the markers.
Thanks for your Ideas Erich!
As someone else already said it is not precisely known how sox handles
markers, and I don't feel that it should become a marker editing/merging
application. Speaking of that, is anyone aware of audio editors / DAW
that do precisely that, eg. displaying markers and allowing user to
edit/rename them, espeicllay on linux?
Thanks!
Peter
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/sox-users
<https://lists.sourceforge.net/lists/listinfo/sox-users>
------------------------------------------------------------------------
Avast logo
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
This email has been checked for viruses by Avast antivirus
software. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/sox-users
<https://lists.sourceforge.net/lists/listinfo/sox-users>
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/sox-users
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Jeremy Nicoll - ml sox users
2016-12-08 22:30:00 UTC
Permalink
Post by Dr. Mark Bugeja MD
Thanks Rick.
Whilst the software you mention looks interesting, it does not appear
to carry the features I am looking for ie merging 2 mono wav files
into one without losing loop and marker data.
But it might offer a way of extracting marker data from an audio file
that contains such?

Your bat file might need to examine aspects of the left & right files
(perhaps via soxi
or the stat/stats effects), eg checking (for the sake of sanity) that
each file has the
same number of samples, and perhaps approximately the same dynamic
level. It might need
to run other commands to extract marker data from both files and (say)
check that those
values are the same. Then it might want to use sox to merge the audio
data. And then
after that it might want to use some other tool to place the marker data
back into the
merged file.

You shouldn't expect that all of this can be done in one step.
--
Jeremy Nicoll - my opinions are my own
Jan Stary
2016-12-09 14:01:08 UTC
Permalink
Post by RT
You may want to look into Octave which is like a free version of Matlab I
use it to batch process / create 1000's of audio files at once. The time
this takes will vary on the length and bit rate of your file.
http://homepages.udayton.edu/~hardierc/ece203/sound.htm
I have so far ignored Octave a a sound processor.
I believe it does process audio samples just fine,
as it does process any other number data (including
the fine points of harmonic analysis and whatnot),
but does it support makers in audio files?
(i.e. does it save Mark's problem?)
Jan Stary
2016-12-09 13:58:48 UTC
Permalink
I am able to process these files with Sony Soundforge. This software does
not come free though. I need to simply copy and paste.
Copy and paste what, exactly?
Do you copy the left and the right channel
into the newly created stereo file?
And the stereo file has both all the markers
of the original left channel and all the markers
of the original right channels? (Mostly duplicate
of each other if I understand correctly?)
Dr. Mark Bugeja MD
2016-12-09 14:14:02 UTC
Permalink
I select the entire channel in one file, copy then paste into the other,
Save.... keeping the name corresponding to the mono sample (overwriting
the original mono file).
Post by Jan Stary
I am able to process these files with Sony Soundforge. This software does
not come free though. I need to simply copy and paste.
Copy and paste what, exactly?
Do you copy the left and the right channel
into the newly created stereo file?
And the stereo file has both all the markers
of the original left channel and all the markers
of the original right channels? (Mostly duplicate
of each other if I understand correctly?)
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/sox-users
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Stuart Bruce
2016-12-09 15:38:26 UTC
Permalink
Forgive me dipping into a conversation I know little about, but if the
process really is as repetitive as that, can it be reduced to a series of
keyboard operations? If so, could it be a job for a macro such as
AutoHotkey ( www.autohotkey.com )?

Just a suggestion, my apologies if it's not helpful or has already been
tried.

Stuart
Post by Dr. Mark Bugeja MD
I select the entire channel in one file, copy then paste into the other,
Save.... keeping the name corresponding to the mono sample (overwriting the
original mono file).
--
Stuart Bruce - ***@stuartbruce.co.uk - www.stuartbruce.co.uk
Dr. Mark Bugeja MD
2016-12-09 16:06:29 UTC
Permalink
Interesting..... interesting indeed. Off to try it!

Mark
Post by Stuart Bruce
Forgive me dipping into a conversation I know little about, but if the
process really is as repetitive as that, can it be reduced to a series
of keyboard operations? If so, could it be a job for a macro such as
AutoHotkey ( www.autohotkey.com <http://www.autohotkey.com> )?
Just a suggestion, my apologies if it's not helpful or has already
been tried.
Stuart
I select the entire channel in one file, copy then paste into the
other, Save.... keeping the name corresponding to the mono sample
(overwriting the original mono file).
--
<http://www.stuartbruce.co.uk>
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/sox-users
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Dr. Mark Bugeja MD
2016-12-09 17:01:38 UTC
Permalink
Nothing comes easy. :-(
Post by Stuart Bruce
Forgive me dipping into a conversation I know little about, but if the
process really is as repetitive as that, can it be reduced to a series
of keyboard operations? If so, could it be a job for a macro such as
AutoHotkey ( www.autohotkey.com <http://www.autohotkey.com> )?
Just a suggestion, my apologies if it's not helpful or has already
been tried.
Stuart
I select the entire channel in one file, copy then paste into the
other, Save.... keeping the name corresponding to the mono sample
(overwriting the original mono file).
--
<http://www.stuartbruce.co.uk>
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/sox-users
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Dr. Mark Bugeja MD
2016-12-08 14:08:40 UTC
Permalink
If loops are not identical they would be useless and would have to be
re-done eg with Loopauditioneer (also a free program on souceforge).
Post by Peter P.
If Sox does not preserve loops and cues yet.... then please add that to the
wish list. It would be very handy for several people doing serious digital
sound processing. :-)
I was thinking about the problem of markers in the file headers when
mixing files together, as Dr. Mark is trying to do. What if the
markers in the left channel and the right channel are not completely
identical? I think this is a more complicated task than just copying
input file markers to the output file when mixing.
Hi,
in that case I would propose to issue a warning and copy the markers
from one source - this can be achieved without understanding the markers.
A more elaborate solution could use both markers, but ommit markers
which are too close together. This, however requires extracting and
understanding the information of the markers.
Thanks for your Ideas Erich!
As someone else already said it is not precisely known how sox handles
markers, and I don't feel that it should become a marker editing/merging
application. Speaking of that, is anyone aware of audio editors / DAW
that do precisely that, eg. displaying markers and allowing user to
edit/rename them, espeicllay on linux?
Thanks!
Peter
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/sox-users
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Jan Stary
2016-12-09 14:05:10 UTC
Permalink
If loops are not identical they would be useless.
Well, I can imagine instruments where the left and right channel
behave differently even in respect to attack and release etc.
Think Pat Metheny's Orchestrion and other weirdnesses?

But this mostly points to how strange it is what you need to do:
there was an original "stereo version" of what you have
on your hands now, right?

Jan
Dr. Mark Bugeja MD
2016-12-09 14:20:14 UTC
Permalink
Yes. The person who was processing these files died 14 months ago so
there is no way we can get the files he was working on. We're luck to
have the rest of the instrument where most of the ranks are in combined
stereo. It's just these few folders that were different but between them
there are 4000+ mono files that must be processed to produce the 2000+
stereo files we need.

I must add that the mono samples are really stereo.... one channel
having been deleted and therefore blank and saved as the other channel
in a separate stereo file with the opposite channel being blank.
Post by Jan Stary
If loops are not identical they would be useless.
Well, I can imagine instruments where the left and right channel
behave differently even in respect to attack and release etc.
Think Pat Metheny's Orchestrion and other weirdnesses?
there was an original "stereo version" of what you have
on your hands now, right?
Jan
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/sox-users
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Jan Stary
2016-12-09 13:56:14 UTC
Permalink
Post by Peter P.
in that case I would propose to issue a warning and copy the markers
from one source - this can be achieved without understanding the markers.
A more elaborate solution could use both markers, but ommit markers
which are too close together. This, however requires extracting and
understanding the information of the markers.
As someone else already said it is not precisely known how sox handles
markers, and I don't feel that it should become a marker editing/merging
application.
SoX ignores them when writing the output.

Recently, new maintainers of SoX have kinda been established
- do they have an opinion on this? I believe keeping the markers
should not be much different from keeping the ID3 tags and other
extras from the headers. (Not to play down the work to do.)

Jan
Måns Rullgård
2016-12-09 14:53:44 UTC
Permalink
Post by Jan Stary
Post by Peter P.
in that case I would propose to issue a warning and copy the markers
from one source - this can be achieved without understanding the markers.
A more elaborate solution could use both markers, but ommit markers
which are too close together. This, however requires extracting and
understanding the information of the markers.
As someone else already said it is not precisely known how sox handles
markers, and I don't feel that it should become a marker editing/merging
application.
SoX ignores them when writing the output.
Recently, new maintainers of SoX have kinda been established
- do they have an opinion on this? I believe keeping the markers
should not be much different from keeping the ID3 tags and other
extras from the headers. (Not to play down the work to do.)
Preserving unknown chunks when the input and output file formats are the
same is of course fairly simple and sometimes useful. However, there is
no way of knowing whether whatever processing was done invalidated the
information contained therein. For example, if the sample rate was
changed, any reference to sample numbers would need adjusting.
Likewise, if the audio has been trimmed or padded, time references will
need shifting. And so on.

The safe choice here is to add an option to pass through specific header
chunks. That way, the user can request it if he/she knows it to be safe.

Copying ID3 tags is generally safe since very few, if any, are directly
dependent on the actual audio samples. Of course, depending on what
processing has been done, calling it by the original title may no longer
be accurate, but it won't affect the correct downstream processing of
the audio data.
--
Måns Rullgård
Loading...