groovy wrote:What is "midi_On v.1" in your syntax?
Note On, velocity 1, which Note?
And "midi_On v.xx.xx"?
By "midi_On v.1" I mean the midi_On event with velocity 1 for any note that is listened to within the framework of this topic (v.1 = velocity 1.). "midi_On v.xx.xx" = midi_On event at any speed other than 0 and 1. "xx.xx" implies the value "some velocity". (presence of decimals implies hi-res, but for the purposes of this topic it does not matter )
brundlefly wrote:..his self-designed triple-sensor controller sends two Note On events for each full (from the top) key press; one at velocity=1 as the key passes the middle sensor, and the second with velocity based conventionally on the transit time between the middle and bottom sensor..
Yes. But I ended up with 4 sensors. Two sensors are used to measure the hammer's flight speed. And two sensors above the key that report that the key is either in an area with a raised damper, or in an area with a damper parked on a string. Until the second sensors are adjusted properly, their events are not filtered against the hammer sensors and because of this, the triggering of these sensors causes midi_On messages to be sent at speed 1 a little before or a little after the midi_On events with data about the speed of the hammer.
Here are a couple of example files. Here the notes F4, G4 and B4 have damper pre-raise. A4 - later:
https://forum.modartt.com/uploads.php?file=dampfer3.mid
https://forum.modartt.com/uploads.php?file=dampfer3.mp3
Here the notes E5 and F5 have damper pre-raise. G5 and A5 - later:
https://forum.modartt.com/uploads.php?file=dampfer4.mid
https://forum.modartt.com/uploads.php?file=dampfer4.mp3
In a real piano, the string is released from the damper before the hammer strikes. Removing the damper may cause the string to begin some slight movement and vibration. Also, the string may have time to slightly absorb some vibrations from other previously played and sounded notes. And maybe such a preliminary event of damper lifting could make sense in the simulation? But most likely other keyboards do not support this behavior.
But my keyboard allows me to play notes with the damper muted:
https://forum.modartt.com/uploads.php?file=dampfer5.mid
https://forum.modartt.com/uploads.php?file=dampfer5.mp3
(sensor is positioned completely incorrectly. Too deep. Adjustment required)
I can also get quite realistic behavior and sound from Pianotek from a sharp strike on a key that I hold so that the key is not pressed more than half of its stroke, and the hammer from a sharp strike on the key jumps and hits the “string”. In this case, the damper is not raised, there is a blow to the string, and the quickly damped sound from the parked damper is realistic.
Last edited by scherbakov.al (16-02-2024 11:09)