Closed rgalanakis closed 10 years ago
Putting this on you, Mumm. Only useful thing I got was that this seemed to calculate a good emission rate:
float emitrate = Mathf.Lerp(0, 8, Mathf.Clamp01(rmsValue * musicNotesEmitMult));
Seems to work. Going to polish the emitter settings.
This can use more tweaking once audio volume is normalized. But basic concept works, using Emit method.
Feedback from myself and Cas. When an instrument is in the pit, the notes should only come out when its volume is not zero.