x


"Stretch" length of sound file?

Can Unity "stretch" the length of a sound file by playing the file for a longer period of time than the clip length?

more ▼

asked Jan 02 '11 at 12:45 PM

ina gravatar image

ina
3.3k 492 549 600

What sort of effect are you trying to achieve? If the clip was stretched it wouldn't sound correct.

If you need to play it for a longer period I guess looping is your only option. What are you trying to achieve?

Jan 02 '11 at 02:40 PM Meltdown
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Sort of. AudioSource.pitch is a misnomer. AudioSource.playbackRate would be more accurate. Of course, the two things are tied together, so every time you increase or decrease by a factor of the 12th root of 2, you'll have changed the pitch by a semitone. Unity has no formant-preserving or "time-stretching" capability.

more ▼

answered Jan 02 '11 at 06:45 PM

Jessy gravatar image

Jessy
15.6k 72 95 196

(comments are locked)
10|3000 characters needed characters left

I don't think Unity has a Rateshift capability. The only thing to lengthen the sound may be through AudioEchoFilter. But I might be wrong...

more ▼

answered Jan 02 '11 at 02:52 PM

uhahaha gravatar image

uhahaha
397 2 3 14

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1028

asked: Jan 02 '11 at 12:45 PM

Seen: 637 times

Last Updated: Jan 02 '11 at 12:45 PM