Exchanges between MAX and FMOD

François Kolaczek's icon

Hello everyone

I would like to use the FMOD studio in real time to generate random music that takes into account external information sent by MAX. Has anyone ever done this? What communication protocol was used?

Thanks a lot for your help
François

Tommy Martinez's icon

bypassing Unity or Unreal altogether? Wanting just to use FMOD? I think its a cool idea.

If you want to build your FMOD project and use it in unity you can control parameters from Unity and send Unity OSC from Max:

FMODUnity.StudioEventEmitter emitter;
void OnEnable()
{
    var target = GameObject.Find("NameOfEmitterObject");
    emitter = target.GetComponent<FMODUnity.StudioEventEmitter>();
}
void Update()
{
    float value = 1.0f; // calculate the value every frame
    emitter.SetParameter("ParameterName", value);
}