2017년 5월 21일 일요일

MrAI-Help(Component-SoundMeter)




Help Reference for

mrSoundMeter Component


About the mrSoundMeter component

The mrSoundMeter component is non visible component  which can be found in the “Sensor” component group on the left hand side of the designer screen.


The comnent is used to detect a sounds picked up from the microphone and returns this a the sound level value. The mic actually picks up a sound level as Amplitude between 0-3auto7 but this isn’t really that user friend so you can set a customize the maximum value which the sound level value is based on meaning that if you want to show the sound as a % the maximum sound level could be set to 100.

Program Block index

Key = Events         Properties         Functions

Slider Appearance



Program Blocks
Sound level Max from mic
Allow you to customize the sound level value returned.

Parameters
The mic actually picks up a sound level as Amplitude between 0-32767. With this property you can customize the max value so that when the soundlevel is returned it is based in the range of 0 to the Max Sound Level set.

Examples
  • If you wanted the volume to be return as a % then Max Sound Level = 100
  • If you wanted to use the sound level to change the RGB color then Max Sound Level = 255


Sound Level from Mic
Return the current sound level value picked up from the mic.
Parameters
Value is based on the Sound Level Max from mic


ConvertSoundLevelTodB(soundLevel)
Return a sound level value to Decibels (dB)



ConvertSoundLevelToAmp(soundLevel)
Return a sound level value to Amplitude



Mic ON
Turn on the mic so the current sound level can be detected




Mic OFF
Turn off the mic to stop detecting sound


Is Mic ON
Returns if the mic is currently listening
Parameters
True - Mic is on
False - Mic is off


MicIsOn(soundLevelFromMic)
Event that will fire every 100 milliseconds while the mic is on
Parameters
soundLevelFromMic
Returns the current sound level



댓글 5개:

  1. Hi,Where can i download the MrSoundmeter.aix?Could you send it for me?My email address pooorfoool@qq.com,Thankyou

    답글삭제
  2. refer to : https://www.youtube.com/watch?v=2Pw-ihJ0Vjc

    답글삭제
  3. translate you are extending this sensor, where can we find it?

    답글삭제
  4. 이 센서를 확장하면 어디에서 찾을 수 있습니까?

    답글삭제
  5. https://www.sifirzero.com/2020/04/android-ses-seviye-olcmesound-meter.html

    답글삭제