to be able to use this as a template for another project), I looked at the reference and other resources and the best I could come up with was something like this, which does not cause errors but also does not do anything (as well on TimeRemap of ds_bass layer in the same comp as midi): try { if (thisComp.layer(midi).effect(ch_0_pitch).nearestKey(value) == 36) { m = thisComp.layer(midi).neares