package { public class actionscript_omr_lib_Staff { private var row:int; private var scale:int; private var toneGenerator:actionscript_omr_lib_ToneGenerator private var tonePlayer:actionscript_omr_lib_TonePlayer private var notes:Array; private var currentNote:int; public function actionscript_omr_lib_Staff(rowp:int,scalep:int) { toneGenerator = new actionscript_omr_lib_ToneGenerator(this); tonePlayer = new actionscript_omr_lib_TonePlayer(this); currentNote=0; notes = new Array(); row = rowp; scale = scalep; } public function addNote(x:int,y:int):void{ //forget about half steps for now, use 7 where 4 is the B line notes.push(new actionscript_omr_lib_Note(y,1)); } //Use piano samples, todo implement queue public function playPiano():void{ //just one note // do for each while(currentNote