Liviuss
New Member
Posts: 5
Posts: 5
|
Post by Liviuss on Nov 29, 2014 18:41:49 GMT
Hi,
In my new project i have some scenes where i need to slowdown time by lowering TimeScale, do you have some code examples how to loop[ trough all groups and change pitches? Or maybe is another approach for this?
Thanks!
|
|
|
Post by DarkTonic Dev on Nov 29, 2014 19:54:17 GMT
In Unity 5, you could change the pitch of the Unity Audio Mixer as you slow down time, but doing this in Master Audio won't be good. It may cause your sounds to stop early (before they are finished). Are you on Unity 5 or will you be soon? As of last night, Master Audio has full integration with Unity 5.
edit: I've now fixed the problem so Master Audio won't end clips early if you change the pitch.
If you would like us to add a method to change the pitch of already playing sounds, let us know and we'll put it on the roadmap.
|
|
xdotcommer
Guest
Posts: 0
|
Post by xdotcommer on Dec 4, 2014 2:24:39 GMT
In Unity 5, you could change the pitch of the Unity Audio Mixer as you slow down time, but doing this in Master Audio won't be good. It may cause your sounds to stop early (before they are finished). Are you on Unity 5 or will you be soon? As of last night, Master Audio has full integration with Unity 5. edit: I've now fixed the problem so Master Audio won't end clips early if you change the pitch. If you would like us to add a method to change the pitch of already playing sounds, let us know and we'll put it on the roadmap. Please please please add this I just bought Master Audio and am looking for a way to change the pitch of a playlist in real time. Thank you
|
|
|
Post by DarkTonic Dev on Dec 4, 2014 2:54:11 GMT
In Unity 5, you could change the pitch of the Unity Audio Mixer as you slow down time, but doing this in Master Audio won't be good. It may cause your sounds to stop early (before they are finished). Are you on Unity 5 or will you be soon? As of last night, Master Audio has full integration with Unity 5. edit: I've now fixed the problem so Master Audio won't end clips early if you change the pitch. If you would like us to add a method to change the pitch of already playing sounds, let us know and we'll put it on the roadmap. Please please please add this I just bought Master Audio and am looking for a way to change the pitch of a playlist in real time. Thank you You don't want to use the Unity 5 pitch on the Mixer Group? I not crazy about reinventing the wheel here. By the time I get to the bottom of the roadmap (where this would go), Unity 5 will be out. For Playlists, you can already do it if the song is playing (below). PlaylistController.InstanceByName("YourPlaylistControllerName").ActiveAudioSource.pitch = .5f
|
|
xdotcommer
Guest
Posts: 0
|
Post by xdotcommer on Dec 4, 2014 2:58:24 GMT
Actually - that works great. Thanks!
|
|
|
Post by DarkTonic Dev on Dec 4, 2014 3:38:28 GMT
No problem
|
|