playMaker

Author Topic: While Action  (Read 1303 times)

bongtack

  • Playmaker Newbie
  • *
  • Posts: 15
While Action
« on: May 22, 2018, 03:20:39 PM »
Is there any action I can use as 'While' ?

I am using 'Get Mic Input Loudness' Action from Ecosystem and 'Look At' Action,

and I want to do like 'While the Loudness is higher than --- Look at ---.

I tried using 'Compare Float', but it didnt work in a way I wanted.

Any suggestion is appreciated !

Thanks,

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: While Action
« Reply #1 on: May 23, 2018, 02:03:24 AM »
Hi,

 compare float would be the one. what could happen is that you need to smooth out the loudness to remove any short cuts of loudness.

to make sure this is the issue, I would simply log the loudness everyframe, then you'll see if it gets below your limit just one frame or not.

then you should average the loudness over few frames and work with that average instead of the per frame value.

Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: While Action
« Reply #2 on: May 23, 2018, 02:05:44 AM »
Hi,

 also, I would try the FloatLowPassFilter action on the ecosystem, this will likel help too.

 Bye,

 Jean

bongtack

  • Playmaker Newbie
  • *
  • Posts: 15
Re: While Action
« Reply #3 on: May 28, 2018, 06:46:48 PM »
Ahh cool!

Thanks I appreciate your help.

 ;)