added a function that quantizez a note to a scale