playMaker

Author Topic: While Action  (Read 494 times)

bongtack

  • Playmaker Newbie
  • *
  • Posts: 15
    • View Profile
While Action
« on: May 22, 2018, 12: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: 14210
  • Official Playmaker Support
    • View Profile
Re: While Action
« Reply #1 on: May 22, 2018, 11:03:24 PM »
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: 14210
  • Official Playmaker Support
    • View Profile
Re: While Action
« Reply #2 on: May 22, 2018, 11:05:44 PM »
Hi,

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

 Bye,

 Jean

bongtack

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

Thanks I appreciate your help.

 ;)