This is the code where I try to detect if a note is one a ledger line, but suspect there is a better way.