-
Auto-detect if there’s a keyframe
Hello,
I’d like to be able to detect if there’s a keyframe on that frame or not, regardless of whether the KF’s value has changed. All the keyframes I’m looking at are hold keyframes.
There are techniques I’ve found to detect a CHANGE in the value, but I want to detect the existence of a keyframe, even if its value has not changed.
What I’m trying to achieve is musical notes automatically appearing, driven by imported MIDI data. I have a load of KFs on sliders on a null. For example, I might have a series of five keyframes, which are all value 60, and I want a series of five Middle C notes to appear.
Any suggestions would be greatly appreciated!
Not that it’s entirely relevant to the keyframe detection:
Rather than having one layer for each note, and making that layer automatically appear on cue, I’ve got one note that moves in +x (time) and moves in +/- y (pitch). I then have an adjustment layer with the Echo effect, with the echo time set to -1/25 (the comp is 25fps, so -0.04 seconds makes the echo duration = 1 frame) and the Number of Echoes set to timeToframes(time), so the number of echoes increases by 1 per frame. This makes each note ‘stick’ on screen.