Abstract class for rests and notes created