import { Voice } from "./Voice" ; import { Instrument } from "../Instrument" ; export class Staff { constructor ( parentInstrument , instrumentStaffId ) { this . parentInstrument = parentInstrument ; this . id = instrumentStaffId ; this . audible = true ; this . following = true ; } public idInMusicSheet : number ; public audible : boolean ; public following : boolean ; public isTab : boolean = false ; private parentInstrument : Instrument ; private voices : Voice [ ] = [ ] ; private volume : number = 1 ; private id : number ; private stafflineCount : number = 5 ; public hasLyrics : boolean = false ; public get ParentInstrument ( ) : Instrument { return this . parentInstrument ; } public set ParentInstrument ( value ) { this . parentInstrument = value ; } public get Voices ( ) : Voice [ ] { return this . voices ; } public get Id ( ) : number { return this . id ; } public get Volume ( ) : number { return this . volume ; } public set Volume ( value ) { this . volume = value ; } public get StafflineCount ( ) : number { return this . stafflineCount ; } public set StafflineCount ( value ) { this . stafflineCount = value ; } }