Adobe audition script help

Chris
Posts: 845
Joined: Fri 15 Aug, 2003 19.03
Location: Surrey

I want to make some 60 second samples from some CDs with a fadey bit at the end from around 55s so that it fades out completely at 60s.

I want it to do this: -

1. extract audio from CD

2. cut extracted wave from CD (however long) to 1 minute and apply fadeout from 55s to 60s

3. convert to 32khz PCM wave

4. save to WMA 32kbs 32khz

I can do 1, 3 and 4 [using the batch processing] but can't quite work out how to do 2, which requires a script if I am not mistaken.

Can anyone help me with this?

Adobe Audition's help is as much use as a chocolate fireguard. It's got some kind of macro recording thing, but I can't figure out how it functions. I know there are some people that are quite adept at using CEP/Audition here, hence me asking.

Does anyone have any sample scripts for this that they could post up?.

Many thanks.
cdd
Posts: 2622
Joined: Fri 15 Aug, 2003 14.05

Audition 2.0 comes iwth two sample script sets, four sample scripts in total. Go File>Scripts and open them up and have a look at them. Also there is a feature for recording, you do your actions and then click stop, then add it to a script and save the script set.
Chris
Posts: 845
Joined: Fri 15 Aug, 2003 19.03
Location: Surrey

The only snag is - I don't have Audition 2.0. Only 1.5.

Plus, if I were to record a "macro", would it do exactly the same thing to every file based upon the example I recorded - so for example, if I make a 'macro' doing the cutting to 1 minute on track one, which is 3mins 34 seconds long, will it simply take what I've done with the length of track one and repeat it exactly for track 2, which is, say 5 minutes and 13 seconds long and cut out something funny and longer than a minute, or will it adjust with the track length to make it one minute, if you get me?
cdd
Posts: 2622
Joined: Fri 15 Aug, 2003 14.05

Chris wrote:The only snag is - I don't have Audition 2.0. Only 1.5.

Plus, if I were to record a "macro", would it do exactly the same thing to every file based upon the example I recorded - so for example, if I make a 'macro' doing the cutting to 1 minute on track one, which is 3mins 34 seconds long, will it simply take what I've done with the length of track one and repeat it exactly for track 2, which is, say 5 minutes and 13 seconds long and cut out something funny and longer than a minute, or will it adjust with the track length to make it one minute, if you get me?
There are 3 macro types; work with selection, work with entire wave, and work from scratch. You'd create one that works with the entire wave and run it as Step 2 of the batch process.

There's a command which is otherwise useless called Trim (Edit > Trim, Ctrl+T). You'd program it to select the first minute and then choose Trim (it's basically the same as Crop - keeps what's selected).
cdd
Posts: 2622
Joined: Fri 15 Aug, 2003 14.05

I've done a script which does what you want - but it's done in Audition 2.0 so I've no idea if it'll work.

http://www.gorillaenterprises.co.uk/upl ... m_trim.scp
Chris
Posts: 845
Joined: Fri 15 Aug, 2003 19.03
Location: Surrey

cdd wrote:I've done a script which does what you want - but it's done in Audition 2.0 so I've no idea if it'll work.

http://www.gorillaenterprises.co.uk/upl ... m_trim.scp
It does work, well, partially anyway. It does crop the audio, just not in the right places - I end up with files with all sorts of different lengths. :?

I've played around with the macro recording tool and recorded my own script, and whilst it does cut some files to one minute, it doesn't do the fade, even though I did it when I recorded the macro. My own script still exhibits the same problems as with your script with the lengths being odd.
cdd
Posts: 2622
Joined: Fri 15 Aug, 2003 14.05

Could the tracks you're working with be recorded at a sample rate different to 44,100? Because I think that's how the scripts work - by samples, which obviously differ if the sample rate is altered. Just a stab in the dark!

EDIT: sorry, from CD then of course it's 44,100. Don't get it then!
cdd
Posts: 2622
Joined: Fri 15 Aug, 2003 14.05

Chris wrote: it doesn't do the fade, even though I did it when I recorded the macro.
Did you use "Favourites > Fade Out"? Again I'm not too sure but perhaps you need to do it manually (i.e. using an envelope applied to the whole wave).

http://www.gorillaenterprises.co.uk/upl ... imfade.scp works for me while a version selecting the final 5 secs and performing a fade fails.
Please Respond