bugfixing

This commit is contained in:
2020-06-14 15:38:19 +02:00
parent 7578c16188
commit 1e1e127f13
12 changed files with 54 additions and 43 deletions

View File

@@ -0,0 +1,7 @@
export interface Chord {
chord: string;
length: number;
position: number;
slashChord?: string;
add?: string;
}

View File

@@ -0,0 +1,4 @@
export enum LineType {
chord,
text,
}

View File

@@ -0,0 +1,8 @@
import {LineType} from './line-type';
import {Chord} from './chord';
export interface Line {
type: LineType;
text: string;
chords?: Chord[];
}

View File

@@ -0,0 +1,5 @@
export enum SectionType {
Verse,
Chorus,
Bridge,
}

View File

@@ -0,0 +1,8 @@
import {SectionType} from './section-type';
import {Line} from './line';
export interface Section {
type: SectionType;
number: number;
lines: Line[];
}

View File

@@ -1,37 +1,11 @@
import {Injectable} from '@angular/core';
import {TransposeService} from './transpose.service';
import {TransposeMode} from './transpose-mode';
export enum SectionType {
Verse,
Chorus,
Bridge,
}
export enum LineType {
chord,
text,
}
export interface Chord {
chord: string;
length: number;
position: number;
slashChord?: string;
add?: string;
}
export interface Line {
type: LineType;
text: string;
chords?: Chord[];
}
export interface Section {
type: SectionType;
number: number;
lines: Line[];
}
import {SectionType} from './section-type';
import {Section} from './section';
import {LineType} from './line-type';
import {Chord} from './chord';
import {Line} from './line';
@Injectable({
providedIn: 'root'

View File

@@ -1,6 +1,8 @@
import {Injectable} from '@angular/core';
import {Chord, Line, LineType} from './text-rendering.service';
import {getScaleType, scaleMapping} from './key.helper';
import {LineType} from './line-type';
import {Chord} from './chord';
import {Line} from './line';
@Injectable({
providedIn: 'root'