GraphicalStaffEntry.d.ts 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { SourceStaffEntry } from "../VoiceData/SourceStaffEntry";
  2. import { Fraction } from "../../Common/DataObjects/fraction";
  3. import { VerticalGraphicalStaffEntryContainer } from "./VerticalGraphicalStaffEntryContainer";
  4. import { Note } from "../VoiceData/Note";
  5. import { Slur } from "../VoiceData/Expressions/ContinuousExpressions/Slur";
  6. import { Voice } from "../VoiceData/Voice";
  7. import { VoiceEntry } from "../VoiceData/VoiceEntry";
  8. import { GraphicalTie } from "./GraphicalTie";
  9. import { GraphicalObject } from "./GraphicalObject";
  10. import { StaffMeasure } from "./StaffMeasure";
  11. import { GraphicalNote } from "./GraphicalNote";
  12. import { GraphicalChordSymbolContainer } from "./GraphicalChordSymbolContainer";
  13. import { GraphicalLyricEntry } from "./GraphicalLyricEntry";
  14. import { AbstractGraphicalInstruction } from "./AbstractGraphicalInstruction";
  15. import { GraphicalStaffEntryLink } from "./GraphicalStaffEntryLink";
  16. export declare abstract class GraphicalStaffEntry extends GraphicalObject {
  17. constructor(parentMeasure: StaffMeasure, sourceStaffEntry?: SourceStaffEntry, staffEntryParent?: GraphicalStaffEntry);
  18. graphicalChordContainer: GraphicalChordSymbolContainer;
  19. graphicalLink: GraphicalStaffEntryLink;
  20. relInMeasureTimestamp: Fraction;
  21. sourceStaffEntry: SourceStaffEntry;
  22. parentMeasure: StaffMeasure;
  23. notes: GraphicalNote[][];
  24. graceStaffEntriesBefore: GraphicalStaffEntry[];
  25. graceStaffEntriesAfter: GraphicalStaffEntry[];
  26. staffEntryParent: GraphicalStaffEntry;
  27. parentVerticalContainer: VerticalGraphicalStaffEntryContainer;
  28. private graphicalInstructions;
  29. private graphicalTies;
  30. private lyricsEntries;
  31. GraphicalInstructions: AbstractGraphicalInstruction[];
  32. GraphicalTies: GraphicalTie[];
  33. LyricsEntries: GraphicalLyricEntry[];
  34. getAbsoluteTimestamp(): Fraction;
  35. findEndTieGraphicalNoteFromNote(tieNote: Note): GraphicalNote;
  36. findEndTieGraphicalNoteFromNoteWithStartingSlur(tieNote: Note, slur: Slur): GraphicalNote;
  37. findEndTieGraphicalNoteFromNoteWithEndingSlur(tieNote: Note): GraphicalNote;
  38. findGraphicalNoteFromGraceNote(graceNote: Note): GraphicalNote;
  39. findGraphicalNoteFromNote(baseNote: Note): GraphicalNote;
  40. getGraphicalNoteDurationFromVoice(voice: Voice): Fraction;
  41. findLinkedNotes(notLinkedNotes: GraphicalNote[]): void;
  42. findVoiceEntryGraphicalNotes(voiceEntry: VoiceEntry): GraphicalNote[];
  43. isVoiceEntryPartOfLinkedVoiceEntry(voiceEntry: VoiceEntry): boolean;
  44. getMainVoice(): Voice;
  45. findStaffEntryMinNoteLength(): Fraction;
  46. findStaffEntryMaxNoteLength(): Fraction;
  47. findOrCreateGraphicalNotesListFromVoiceEntry(voiceEntry: VoiceEntry): GraphicalNote[];
  48. findOrCreateGraphicalNotesListFromGraphicalNote(graphicalNote: GraphicalNote): GraphicalNote[];
  49. addGraphicalNoteToListAtCorrectYPosition(graphicalNotes: GraphicalNote[], graphicalNote: GraphicalNote): void;
  50. }