how change pitch of playing sound?

Hi,

is there direct way to change pitch of all (or group) of playing sounds?
I want to implement slow motion effect and need to do some pitch shifting to sychronize sound to time speed.

I noticed that in XACT one is able to shift pitch only about one octave up/down what could be not enough to such applications :/

Thanks for any reply.

[410 byte] By [perun] at [2008-2-4]
# 1
I use RPC and global variable to change pitch but maybe there is a way to change it from code?
perun at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 2
As far as I know the only way to do this is to set it up in the XACT Creation tool. Inside your soundbank, select a sound. On the right hand side there is a "Track01" and under it a "Play Wave" if you've attached a sound from the wave bank. Select the "Play Wave" and then look at the properties on the left side of the screen. One of these options is call "Level Variations". From here you can make the pitch and the volume vary between ranges you then specify, and when to change it.

Hope that helps.

Strakian at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 3

There is currently no way to programatically set the pitch of an entire group of sounds like you can with volume (via category volume). You can work around this by doing what perun suggests:

Create an RPC tied to a sound's pitch using a global variable.
Assign the RPC to the sounds you want to modify (potentially all of them).
Tweak the variable at run-time.

RobertHeitkamp-Microsoft at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 4

I guess this can only be done pre-play - not during Sad

shame...

would love the facility to adjust a playbacks frequency mid-play...

any plans to do this at MS for pro version?

cheers,

seggie

# 5

Many thanks Robert.

This is indeed what I needed and it does indeed change the frequency in real time.

doh!

could you tell me if the BPM facility for markers (when fixed) will be linked to the playback frequency...

I.E. when I slow down the sound the interval to the next marker will be delayed the relevant amount?

because I am trying to calculate bpms by hand at the minute on varying speed files (and it's a headache or I'm thick...)

Cheers Robert.

# 6
Nope. Sorry to say the BPM feature does not sync to the pitch. It stays literal.
ScottMorgan at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...