Create functions to get the marked midi note and to advance it