Mix / Join / Merge Sound files to another Sound File

GoldWave general discussions and community help
thudo
Posts: 68
Joined: Sun Mar 21, 2010 3:39 pm

Re: Mix / Join / Merge Sound files to another Sound File

Post by thudo »

Right but sincerely and in all honestly how do I script that using the limited commands in the batch processor?

How do I switch when there was only one operator in my original script:

Code: Select all

Set Marker/Selection  [0.0%] - [0]
Copy  <link to my single wav to add to the background of all the target wavs>
Mix -10.050dB
Set Marker/Selection [35.0%] - [100.0%]
Cut
So if you suggested I switch it then does it thus become:

Code: Select all

Set Marker/Selection  [0.0%] - [0]
Copy Selection 
Copy  <link to my single wav to add to the background of all the target wavs>
Mix -10.050dB
Cut
chrisjj
Posts: 115
Joined: Tue Feb 07, 2006 5:38 pm

Re: Mix / Join / Merge Sound files to another Sound File

Post by chrisjj »

If I get time soon I'll code it.
thudo
Posts: 68
Joined: Sun Mar 21, 2010 3:39 pm

Re: Mix / Join / Merge Sound files to another Sound File

Post by thudo »

That would of course be.. utterly magnificent! :shock:
thudo
Posts: 68
Joined: Sun Mar 21, 2010 3:39 pm

Re: Mix / Join / Merge Sound files to another Sound File

Post by thudo »

Afternoon Chris..

Just a friendly followup.. ;)
thudo
Posts: 68
Joined: Sun Mar 21, 2010 3:39 pm

Re: Mix / Join / Merge Sound files to another Sound File

Post by thudo »

Checking in once more on this.

Chris? Anyone?
DougA
Posts: 63
Joined: Fri Dec 28, 2007 2:01 pm

I tried .... but failed too

Post by DougA »

Thought I'd play with this, but here's what I ran into.
My batch preset:
Copy <background file>
Mix
Trim

Problem is, the selection area changes to the larger size and trim doesn't do any good
If you insert into the batch preset a Set Marker/Selection set to 0-end (as step 1), that selection is reset by the mix command (is that really how it should work ? In other words, you can't preset a selection without it being trounced on by the mix) hence the OP's problem. If mix didn't trounce on the selection field he'd be home free.

Now, I noticed that the Selection area could be set from cue markers, great ... but NO WHERE can I find how to SET cues in a batch file, we can USE them, but can't set them ... huh?
As a test, I took the <short file> and edited it by placing start and end cues in the file, saved it, added a Set Marker to cue points after the mix step, and it worked ! BUT, I can't see the requester moding all his files to add start and end cues so he can then run the batch file.

So I could't make this work either.
2 requests for consideration, should mix trounce the selection settings ?
Better yet, some batch tools to set cue points.
Doug
DougA
Posts: 63
Joined: Fri Dec 28, 2007 2:01 pm

There is a way ... BUT (more bad news)

Post by DougA »

Playing around with the suggestion from Chris, to reverse the file names (mix short file onto background) DOES fix the length problem, but leaves us with a new issue.

When done manually, load short file, copy to buffer, load background, mix, (selection now is set to length of short file), trim ... this works ... manually.

But to make a batch out of this procedure has issues.
The mix file (in the copy buffer) is the one that varies, so changing the batch copy file name for each file ? I don't think so.

Work around is to use a .bat file to invoke Goldwave and pass the parameters there.

"C:\Program Files\GoldWave\GoldWave.exe" -process:GoldwaveTest -clipboard:Shortfile1.wav -outfolder:NewFileFolder Background.wav

The batch process (-process:GoldwaveTest) is set to "Mix" & "Trim"
This works, but now the gotcha's

Biggest problem with this is the output file name ... it's set to <background>
So If we attempt to create a .bat file with multiple files, each one's output will step on the previous one, ending up with just the last one processed (more likely the whole thing will crash because the "overwrite" switch isn't likely on)
Point is, we can't run multiple files due to the output file naming.
DEVELOPER REQUEST -- We need an extention to outfolder to include the file name (or an OutFile: parm)

Now one could create a new folder for each input file and set the .bat to each one in turn, but you'd still have to rename all the <background> files in all those folders and merge the entire mess back together again, ouch this is really getting messy.

One more idea, when creating the .bat file, include a rename
"C:\Program Files\GoldWave\GoldWave.exe" -process:GoldwaveTest -clipboard:Shortfile1.wav -outfolder:NewFileFolder Background.wav
cd NewFileFolder
RENAME Background.wav Shortfile1.wav
cd ..

If this were my project, and since I have some programming skills, I'd write a program to create a bat file and run it, then rename the output file to what I want, (or create a .bat with GW & rename) then repeat that loop for all input files. At least the Goldwave mix portion can be "automated".
Doug
thudo
Posts: 68
Joined: Sun Mar 21, 2010 3:39 pm

Re: Mix / Join / Merge Sound files to another Sound File

Post by thudo »

Just following up on this thread.

Any clear ways to get this done via Goldwave?

DougA suggested it could be commandline driven but the output won't parse the filenames so they are broken into their logic names apart from appending or overwriting itself thus making this whole exercise moot. :(
GoldWave Inc.
Site Admin
Posts: 4372
Joined: Wed Mar 10, 2004 6:43 pm
Location: St. John's, NL
Contact:

Re: Mix / Join / Merge Sound files to another Sound File

Post by GoldWave Inc. »

Storing and recalling the selection length in Batch Processing is now possible in v6.11. Please see this topic.
thudo
Posts: 68
Joined: Sun Mar 21, 2010 3:39 pm

Re: Mix / Join / Merge Sound files to another Sound File

Post by thudo »

Thank you GWInc.. I'll indeed have to investigate to see if this fixes my issue. :wink:
thudo
Posts: 68
Joined: Sun Mar 21, 2010 3:39 pm

Re: Mix / Join / Merge Sound files to another Sound File

Post by thudo »

Well I have 6.13 and haven't quite figured out the logic.. Here is what I have so far in my batch processor..

Code: Select all

Set Marker/Selection  [->M] - [->M]
Mix -10.050dB
Set Marker/Selection [M->] - [M->]
Mix
This is now using the new Memory Store/Recall functionality.

Where in the above logic does the list of files go to add the one sound fx to them all (ie. batch of voices I want to add a single engine FX cycling in the background).

Any help would be utterly incredible! Thank you team!
thudo
Posts: 68
Joined: Sun Mar 21, 2010 3:39 pm

Re: Mix / Join / Merge Sound files to another Sound File

Post by thudo »

OK so found a method to do it.. almost there..

Code: Select all

Copy <location of background FX to use>
Set Marker/Selection  [->M] - [->M]
Mix -10.050dB
Set Marker/Selection [M->] - [M->]
Trim
So basically now adding the COPY command to the engine FX wav file into memory at the first part of the process

Doing so now works as expected.. BUT..

What happens if the background engine fx is too short for, say, one of the voice files to add it to?

Is there a way in Goldwave to cycle the engine fx wav file continuously until one of the voice files ends or do I have to manually edit the engine fx so its elongated long enough to assume at some point a real long voice file that could be longer than the engine fx will occur?

This would be the last item to resolve.

Also, PLEASE in your next releases as a feature request: in the batch processing section allow any Preset to be dynamically edited so if you double-click a selection already in the preset it allows us to EDIT it rather than forcing us to edit the comment section instead. Also would be nice to copy/paste different process selections from one Preset to another. ;) Anything to make it much easier to quickly make changes to a Preset we've done without having to constantly delete and re-add them. :(

Thank you Goldwave Team!
Last edited by thudo on Wed Jul 22, 2015 10:47 pm, edited 1 time in total.
GoldWave Inc.
Site Admin
Posts: 4372
Joined: Wed Mar 10, 2004 6:43 pm
Location: St. John's, NL
Contact:

Re: Mix / Join / Merge Sound files to another Sound File

Post by GoldWave Inc. »

You may be able to use the new logic feature to mix the engine noise until the finish marker is equal to the file length. Something like:

Code: Select all

Copy the engine noise from a file
Save the finish marker
LOOP
Mix the engine noise
Set the start marker to the finish marker
If file length is greater than finish marker goto LOOP
Restore the finish marker
Trim
thudo
Posts: 68
Joined: Sun Mar 21, 2010 3:39 pm

Re: Mix / Join / Merge Sound files to another Sound File

Post by thudo »

Save the finish marker
Meaning Set Marker/Selection->Finish Marker Position->Memory->Store?
LOOP
Where is this command? I cannot find it anywhere. :|
Set the start marker to the finish marker
Meaning Set Marker/Selection->Start Marker Position->Time->Where->Before End?
Restore the finish marker
Meaning Set Marker/Selection->Finish Marker Position->Memory->Recall?

Those of the above I need clarification on. ;)
GoldWave Inc.
Site Admin
Posts: 4372
Joined: Wed Mar 10, 2004 6:43 pm
Location: St. John's, NL
Contact:

Re: Mix / Join / Merge Sound files to another Sound File

Post by GoldWave Inc. »

Yes to "Memory->Store".

LOOP is part of the logic feature. Choose the Add Logic button, then select Label in the first box and enter "LOOP" (or whatever label you want) in the last box, then choose Add. Use the same label for the goto line.

Set Start Marker->Time->0 [Before Finish].

Yes to "Recall".
Post Reply