editing & combining sound files?

Geoff Canyon gcanyon at gmail.com
Wed Aug 22 22:29:01 EDT 2018


I did something very much like this way, way, way long ago (in the MetaCard
days...). I don't remember the sound format, and it was mono, not stereo,
but it turned out that the format for the sound file was *really* simple: a
few bytes of easily-managed header, a bunch of binary data that represented
the sound file data, and a few bytes of footer.

So the steps above would be roughly:

1. Read in the binary data from the sound file, strip the header/footer.
2. Figure out what the "silence" value is for that sound format, append a
certain number of that value to the data.
3,4. Read in the binary data from the second file, strip the header/footer
and append to the data.
5. ??? Not sure how to do this. Instead, might add the appropriate
header/footer and write out the data in the same format as the input files.
6. Close the access to the original files.

If MP3 isn't comprehensible, then you could bulk convert the resulting
files from AU to MP3 using any number of tools.

gc


On Wed, Aug 22, 2018 at 5:14 PM Nicolas Cueto via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Hello List,
>
> I wish to automate a repetitive (and tedious!) process that's now being
> done manually using a sound-file editor (Goldwave).
>
> The process is:
>
> 1. Open an AU sound file.
> 2. Append 1 second of silence to that file.
> 3. Open a 2nd AU sound file.
> 4. Copy and append that 2nd file to the 1st file.
> 5. Save as MP3 with a new title that now-modified 1st file.
> 6. Close that 1st file unmodified.
> 7. [Repeat 1-6.]
>
> If this is possible (easily possible!) with LC, what LC commands ought I be
> studying/using?
>
> Many thanks.
>
> --
> Nicolas Cueto
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list