noteToPeriod function

Extract period value for a specific note