Problems with audio levels.
Right now I have a patch that recognizes microphone input on a scale of 1-20, and routes to 20 different open messages with audio files, running into an sfplay~object. However, since the audio input is so dynamic, any designated audio file (1-20) only plays when the audio levels read precisely the same number.
Preferably I’d like to read the audio levels only for an instant, getting just 1 number, and let that designated audio file play all the way through, then go back and reread the audio levels, playing another file.
How would I achieve this?
the signal from the scale should go into a gate that first allows the value to pass and then closes it. Then out of the second outlet from sfplay~ bangs after playing the audio file, that can reopen the gate.
my patch below just has the logic described above
----------begin_max5_patcher---------- 609.3oc4V9sjaBBEF+Z8ofwdqMiGPhZ6U8Enu.c5zgDYcoihYhj1rcmsO6U. M6lTShl+XxL6MxvQvyG+3yC7rqi2rx07JOzmPeC437rqiiIjNfSSeGuB1544 rJyv7j7eWN6md91Wo3qUlvJj.EzFUtpnbkJmqLSA2DcASM+QgL6GK4yU1TBg gSB7QvTSCAOg5ivASBPeuYNOTJURVA2jiurTvxaygMApmVvseJOgT44aa1Lc QpYh0B9i.16MeyJweLyCv0IdinExVMC5Xu35pe32SxTvqpXY7+CMP2XAN.Vh oFdDPdEKP7ogktgALDXfOAXrGaREOGEf.DFQ5lJzCPEhwkf0FDeTjgMmpYYF SlocK6qsSpkbscP6AZ4krTs4BMbmDUqNThAbQ3ygXcRj3qNQVULiub30UnI5 0ZLneRCNm0cSYEiwnKDDciLEYLEe3EVBmZp2hMVgl+mtjFB5sptxCKxYO82A aTHfsLB0zDlbN.oRjI0u9.lkvAgmlfUre0lhO7U8meyhsdSndyTueFjLsV4A 1HdetN42d11.0whsj2SrERFU1heWwVxnxV3lvViR7xExcu8uAH53aC7pxUKm 2lx16SidkIo7JkPxThR4aFTxVi4QQZJ27510VgHcQY8IrMZXO69CRRvQjDcX RBlFYNwL1dvYBtidfcHTp4d55dm4Bg1CztC+u5rE5glFJaquWZMwH1ez.685 2tGfsjND5n2Em6g8v+rCHt1bmb+II78mjf6OIkzm+gGcEcLHgGcEgOhhHith HGQQgiphhu70cOSEE0SEAmnhp67h6+.oV25n -----------end_max5_patcher-----------