Hello everyone,
I want to detect if the microphone is being rubbed and with that increase the volume (just increase by now) until the user stops rubbing the microphone.
I have no clue of how to face it, any suggestion?
Thanks in advance!
Microphone's rub detection
Hello everyone,
I want to detect if the microphone is being rubbed and with that increase the volume (just increase by now) until the user stops rubbing the microphone.
I have no clue of how to face it, any suggestion?
Thanks in advance!
@Tonimi said:
I want to detect if the microphone is being rubbed and with that increase the volume (just increase by now) until the user stops rubbing the microphone.
Not sure what you mean by "increase the volume" but this will provide a triggering mechanism:
mic_rub.pd The slider sets the threshold.
Oh, sorry I forgot to write "increase the volume of a file that is being played". I mean, make it louder.
@rjp9 said:
@Tonimi said:
I want to detect if the microphone is being rubbed and with that increase the volume (just increase by now) until the user stops rubbing the microphone.
Not sure what you mean by "increase the volume" but this will provide a triggering mechanism:
mic_rub.pd The slider sets the threshold.
If I understand well (I started with PD few days ago) the toggle is activated when the received value from de microphone is louder than half of the slider value...?
@Tonimi said:
If I understand well (I started with PD few days ago) the toggle is activated when the received value from de microphone is louder than half of the slider value...?
No. "0.5" is just an arbitrary initial argument I gave. It is overwritten by the values coming in from the slider. So the the toggle is activated when the received value is greater than the slider value, not half the slider value.
For tilde math operations (objects that have a '~' in them), the creation argument type will determine what kind of cold inlet you have--that is, either a control inlet (light blue) or signal inlet (dark blue). If you leave the creation argument blank, the cold inlet will be a signal inlet. If you specify a float or integer for the argument, you will have a control inlet for the cold inlet. Honestly, though, this probably doesn't matter too much.
@Tonimi said:
Oh, sorry I forgot to write "increase the volume of a file that is being played". I mean, make it louder.
Well it depends on how you have set up you audio playback code, but here's how you could link this trigger mechanism:
@rjp9 nice and accurate explanation, the last example it's just what I was searching.
Will be very useful!
Thanks a lot!
Oops! Looks like something went wrong!