bugfixing
This commit is contained in:
7
src/app/modules/songs/services/chord.ts
Normal file
7
src/app/modules/songs/services/chord.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface Chord {
|
||||
chord: string;
|
||||
length: number;
|
||||
position: number;
|
||||
slashChord?: string;
|
||||
add?: string;
|
||||
}
|
||||
4
src/app/modules/songs/services/line-type.ts
Normal file
4
src/app/modules/songs/services/line-type.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export enum LineType {
|
||||
chord,
|
||||
text,
|
||||
}
|
||||
8
src/app/modules/songs/services/line.ts
Normal file
8
src/app/modules/songs/services/line.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import {LineType} from './line-type';
|
||||
import {Chord} from './chord';
|
||||
|
||||
export interface Line {
|
||||
type: LineType;
|
||||
text: string;
|
||||
chords?: Chord[];
|
||||
}
|
||||
5
src/app/modules/songs/services/section-type.ts
Normal file
5
src/app/modules/songs/services/section-type.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export enum SectionType {
|
||||
Verse,
|
||||
Chorus,
|
||||
Bridge,
|
||||
}
|
||||
8
src/app/modules/songs/services/section.ts
Normal file
8
src/app/modules/songs/services/section.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import {SectionType} from './section-type';
|
||||
import {Line} from './line';
|
||||
|
||||
export interface Section {
|
||||
type: SectionType;
|
||||
number: number;
|
||||
lines: Line[];
|
||||
}
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user