GraphicalTie.ts 789 B

12345678910111213141516171819202122232425262728
  1. import {Tie} from "../VoiceData/Tie";
  2. import {GraphicalNote} from "./GraphicalNote";
  3. export class GraphicalTie {
  4. private tie: Tie;
  5. private startNote: GraphicalNote;
  6. private endNote: GraphicalNote;
  7. constructor(tie: Tie, start: GraphicalNote = undefined, end: GraphicalNote = undefined) {
  8. this.tie = tie;
  9. this.startNote = start;
  10. this.endNote = end;
  11. }
  12. public get GetTie(): Tie {
  13. return this.tie;
  14. }
  15. public get StartNote(): GraphicalNote {
  16. return this.startNote;
  17. }
  18. public set StartNote(value: GraphicalNote) {
  19. this.startNote = value;
  20. }
  21. public get EndNote(): GraphicalNote {
  22. return this.endNote;
  23. }
  24. public set EndNote(value: GraphicalNote) {
  25. this.endNote = value;
  26. }
  27. }