/
IGraphicalSymbolFactory.ts
71 lines (54 loc) · 2.93 KB
/
IGraphicalSymbolFactory.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import {ClefInstruction} from "../VoiceData/Instructions/ClefInstruction";
import {Fraction} from "../../Common/DataObjects/Fraction";
import {GraphicalNote} from "../Graphical/GraphicalNote";
import {GraphicalStaffEntry} from "../Graphical/GraphicalStaffEntry";
import {MusicSystem} from "../Graphical/MusicSystem";
import {Note} from "../VoiceData/Note";
import {OctaveEnum} from "../VoiceData/Expressions/ContinuousExpressions/OctaveShift";
import {Pitch} from "../../Common/DataObjects/Pitch";
import {SourceMeasure} from "../VoiceData/SourceMeasure";
import {SourceStaffEntry} from "../VoiceData/SourceStaffEntry";
import {Staff} from "../VoiceData/Staff";
import {StaffLine} from "../Graphical/StaffLine";
import {GraphicalMeasure} from "../Graphical/GraphicalMeasure";
import { TechnicalInstruction } from "../VoiceData/Instructions/TechnicalInstruction";
import { GraphicalVoiceEntry } from "../Graphical/GraphicalVoiceEntry";
import { VoiceEntry } from "../VoiceData/VoiceEntry";
import { EngravingRules } from "../Graphical/EngravingRules";
import { KeyInstruction } from "../VoiceData/Instructions/KeyInstruction";
export interface IGraphicalSymbolFactory {
createMusicSystem(systemIndex: number, rules: EngravingRules): MusicSystem;
createStaffLine(parentSystem: MusicSystem, parentStaff: Staff): StaffLine;
createGraphicalMeasure(sourceMeasure: SourceMeasure, staff: Staff): GraphicalMeasure;
createMultiRestMeasure(sourceMeasure: SourceMeasure, staff: Staff): GraphicalMeasure;
createTabStaffMeasure(sourceMeasure: SourceMeasure, staff: Staff): GraphicalMeasure;
createExtraGraphicalMeasure(staffLine: StaffLine): GraphicalMeasure;
createStaffEntry(sourceStaffEntry: SourceStaffEntry, measure: GraphicalMeasure): GraphicalStaffEntry;
createVoiceEntry(parentVoiceEntry: VoiceEntry, parentStaffEntry: GraphicalStaffEntry): GraphicalVoiceEntry;
createNote(
note: Note,
graphicalVoiceEntry: GraphicalVoiceEntry,
activeClef: ClefInstruction,
octaveShift: OctaveEnum,
rules: EngravingRules,
graphicalNoteLength?: Fraction,
): GraphicalNote;
createGraceNote(
note: Note,
graphicalVoiceEntry: GraphicalVoiceEntry,
activeClef: ClefInstruction,
rules: EngravingRules,
octaveShift?: OctaveEnum,
): GraphicalNote;
addGraphicalAccidental(graphicalNote: GraphicalNote, pitch: Pitch): void;
addFermataAtTiedEndNote(tiedNote: Note, graphicalStaffEntry: GraphicalStaffEntry): void;
createGraphicalTechnicalInstruction(
technicalInstruction: TechnicalInstruction,
graphicalStaffEntry: GraphicalStaffEntry): void;
createInStaffClef(graphicalStaffEntry: GraphicalStaffEntry, clefInstruction: ClefInstruction): void;
createChordSymbols(
sourceStaffEntry: SourceStaffEntry,
graphicalStaffEntry: GraphicalStaffEntry,
keyInstruction: KeyInstruction,
transposeHalftones: number): void;
}