the game uses a basic guitar, the idea is that when the player touches a flute the flute sound is added to the music and so on with various instruments
but i have no idea how to do that, any help?
This is an incredibly broad question. It sounds like you’re trying to design a music or rhythm game. Your title mentions Wwise, are you using that for audio implementation? How familiar are you with Wwise?
In essence, you’re going to need a fully composed piece of music, with each instrument track saved out as a separate file. Then you would use Wwise to layer these tracks together and build the logic for how/when the different instruments play or stop playing, how they loop, etc. You would create switches or states in Wwise for when the player touches different instruments in your game, then call those states from Unity.
Depending on how the player interacts with your game, you might be able to use some of the Unity components provided in the Wwise-Unity integration. Otherwise, you will have to make those calls in a C# script.
Here are a couple of links to check out:
Synchronized, spatialized Music Tracks within Music Segments - Community Q&A