Find the frequency of the problematic note or notes
(Google search or charts such as M.W. Guitar Frequency Chart)
Use the provided function to dampen those frequencies
If the note continues to sound problematic, increase the dampening amount
setFrequencyDamping( min frequency, max frequency, damping amout)
Min frequency:
This is the bottom frequency range of what you want to target
Max frequency:
This is the top frequency range of what you want to target
Damping amount:
This is the amount you want to dampen
0 means no damping
1 means complete damping (mute these frequencies)
[Constraints]:
Only dampens between 0 Hz and 1200 Hz
Resolution of 50Hz
actuatorA.setFrequencyDamping(150,350, 0.8)
This dampens the frequencies between 150 and 300 Hz by 80% for actuator A only.
When a note plays at 300 Hz this means there are 300 small vibrations per second.
This means each vibration takes 1/300 = 0.003333 seconds, because the plunger must make it back to the start it spends roughly half this time going up and half this time going down.
We dampen the vibration by making it stay in the up position for longer, so when you set the damping amount to 0.5, that means 50% dampening. So the plunger will spend the first half of the cycle sitting still, and then go up and down in the remaining half cycle.
This sitting still means the vibrations don't move the plunger as far up or down, and decreases the speed.
You can also use this to dampen frequencies which are too loud.
If you want to ignore specific frequencies/notes you can simply set the damping amount to 1, (ie: 100%) to completely mute those notes.