Update Layer

adding getBeatVal( same as the one in Notes )
Cleaning up syntax errors