metalNumb Posted September 23, 2014 Share Posted September 23, 2014 Hey all ! I'm a beginner in using phaserJS and i am amazed by all the powerful features that comes out of the box ! anyway my question is : how can i produce ingame sounds effects that has tones matching the BGM ?Something like in super mario galaxy when you use a launch star and it produces a jingle that matches the BGM. Here's an example from this game called ZONR.( Notice how the tones produced when tapping are matching the music ) https://www.youtube.com/watch?v=JMxnF9u9vJY Thanks in advance. Link to comment Share on other sites More sharing options...
lewster32 Posted September 23, 2014 Share Posted September 23, 2014 The only reliable way to do this at the moment is to have every tone recorded and play the relevant tone. You can delve into synthesis in JavaScript but it's murky and difficult to make work cross-browser. metalNumb 1 Link to comment Share on other sites More sharing options...
metalNumb Posted September 24, 2014 Author Share Posted September 24, 2014 Thanks !I think i might give it a try ! But how exactly am i supposed to do that ? like for example i have a 2 minute BGM and i know that the sound "1.wav" matches the tones played at 1:35, How can i implement that ? Link to comment Share on other sites More sharing options...
pixelpathos Posted September 24, 2014 Share Posted September 24, 2014 The way I've approached this is to match sound effects to the musical key of a background track. The key should ideally stay the same throughout a track, so you can use the same sound effects across an entire track, rather than trying to respond to the second-by-second changes of the music - possible, but a pain to code. I also don't change track within a level, so that the sound effects within a level also do not change.All the sound effects in my game Luminarium (see signature), except for the button clicks and planet fill sounds, are tuned in this way. For example, the title track is in C# minor. All the beeps are a 5th above this (G#), and the win sound is a C#sus2 chord (C#/D#/G#).It obviously helps if you're able to record the music and/or the sound effects yourself. I use an ancient version of Propellerhead Reason to do both. You might also be able to use stock background music, and just tune stock sound effects to fit. metalNumb 1 Link to comment Share on other sites More sharing options...
metalNumb Posted September 24, 2014 Author Share Posted September 24, 2014 @pixelpathos I think this is a great idea ! Would take time though !But i should learn more about musical composition/ notes and find me a good generator to learn and make my own sounds. Thanks a lot ! pixelpathos 1 Link to comment Share on other sites More sharing options...
pixelpathos Posted September 24, 2014 Share Posted September 24, 2014 @pixelpathos I think this is a great idea ! Would take time though !But i should learn more about musical composition/ notes and find me a good generator to learn and make my own sounds. Thanks a lot ! No worries! If you wanted something to play around with, I can highly recommend Single Cell Software's Caustic 3. It's a synthesiser/sampler/sequencer that runs on Android and iOS, but also has free Windows and MacOS versions. It's like a distilled version of its much bigger desktop-only counterparts like Reason, so it's easy to play around with, even if you're new; yet, it also somehow manages to have many of the key features of desktop software. There's also sample tracks and patches for you to mess around with, not to mention lots of great video tutorials. Let us know if you manage to create something fun . metalNumb 1 Link to comment Share on other sites More sharing options...
metalNumb Posted September 27, 2014 Author Share Posted September 27, 2014 Will do !Thanks for all the support ! You guys are great !! pixelpathos 1 Link to comment Share on other sites More sharing options...
Recommended Posts