La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

How to send MIDI notes to Wwise through Unity code?

+2 votes
Hey all!

In a game I'm working on, event triggers are supposed to make a MIDI note play (e.g. on enemy death it sends, say, a C#4 message to Wwise, which would receive the message and play the corresponding sound).  I understand that I use the key range filter to define which sound will play when the note message is received, but I'm confused regarding how to send the MIDI message to Wwise from code (csharp) in the first place.

Any help is appreciated.  Thanks!
demandé 4-Avr-2015 dans General Discussion par Thomas K. (120 points)

1 Réponse

0 votes
Unfortunately, this is not currently possible. However, it is planned for later in 2015. Stay tuned!
répondu 9-Avr-2015 par Benoit S. (Audiokinetic) (16,020 points)
Is this now possible with version 2016.1.1 ? I asked a question that should be processed soon regarding this. I see that there is the possibility to make AkMIDIPost instances that can be sent to Wwise with AkSoundEngine.PostMIDIOnEvent. Is this possible with C# code in Unity? The byNote and byVelocity values aren't recognized by the namespace...
Hi, I'd also like to know if this is now possible. Im trying with the code from https://www.audiokinetic.com/library/2016.1.1_5823/?source=SDK&id=quickstart__sample__integration__midi.html however I cant see  AkMidiPost.NoteOnOff

Please could somebody let me know if you could give me an example C sharp code for how to send a midi note from Unity to Wwise.

Ps Loving Wwise so far - really powerful !
How about in 2016.2.2.6022.430?
...