rgalanakis / minimaestro

0 stars 0 forks source link

Musical notes should only come out when instrument is playing music. #17

Closed rgalanakis closed 10 years ago

rgalanakis commented 10 years ago

Feedback from myself and Cas. When an instrument is in the pit, the notes should only come out when its volume is not zero.

rgalanakis commented 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));
rgalanakis commented 10 years ago

Seems to work. Going to polish the emitter settings.

rgalanakis commented 10 years ago

This can use more tweaking once audio volume is normalized. But basic concept works, using Emit method.