Added function for accessing the stack to implement various note priority schemes