- Home /
Music composing in Unity?
I'd like to make a music composing app. Well, not necessarily music, but drums. Yes, I know Unity wouldn't really be the best option, but I'd like to use it. Now my question is, what's the best way to play this music? If I have 3 sounds (hi-hat, snare, kick) and get user input and somehow save that input into a dictionary or something that has the delayed amount, etc., what can I do to ensure that it plays this sound right in time, and not like a 1/32 late/early?
Now as far as I know, I only really need 1 AudioListener per sound, and then use PlayOneShot
, so that they can overlap. But I want to make sure that the kick and hi-hat play right on the same frame for example, instead of the possibility of there being some error every now and then, and the kick would play the next frame for example. It may be such a small difference that it isn't too noticeable, but I want it to be accurate.
Thanks.
You need to queue them up using the finer functions of the Audio module. There is quite a bit of info on this.
Your answer
Follow this Question
Related Questions
Rythm Game - Move objects synchronized with the music 1 Answer
GameObjects not syncing with music 1 Answer
How to apply sound to shape keys in animation. 1 Answer
Inconsistent results with music and synchronization 2 Answers
AudioSource and AudioSettings help needed to keep perfect sync between music audio loops. 0 Answers