Note detection almost working