Fix E# bug. Added some tests. Added note.getBeat().