Stretching Audio - Pitch Change / Lock to Stretch - Not in API??

chuck_ wrote on 9/5/2004, 2:19 PM
I need to change the playback rate of a bunch of clips to 90%. They are originally from Super 8 (with sound) film captured at the wrong frame rate (20fps instead of 18fps).

I have everything working okay except I can't find the property for the AudioEvent class that let's you lock the pitch change to the stretch. To see what I'm talking about, right click on an audio event in the timeline and go to the properties. Select "Classic" under the "Time stretch / pitch shift" method. You'll then see the "Pitch change: " lock to stretch checkbox that I need to set to true.

Here's the bit from my code to stretch the audio event:
audioEvent.Loop = false;
audioEvent.Normalize = true;
audioEvent.PlaybackRate = .9;
audioEvent.Length = NewClipLen_TC;

Is there a .PitchChange or .LockToStretch property? I can't find anything in the API about one, but I hope it exists so I can lower the pitch and make these people from the 70's sound less like chipmonks!

Any help is greatly appreciated!!

Comments

rcampbel wrote on 9/6/2004, 7:52 AM
This is another of the items that is not exposed in the API yet.

Try the following. Stretch all of the clips, then modify the first clip to change the lock to stretch checkbox. Then right click on this clip and click on Copy. Now select all of the other clips and right click on the first of these and click Paste Event Attributes. This should copy the settings including the lock to stretch checkbox to all of the other clips.

Randall