openlyrics-parser
Version:
Parses and extracts data from OpenLyrics files, and creates them!
24 lines (23 loc) • 1.03 kB
TypeScript
import * as parserModel from './parser.model';
import * as xmlModel from './parser.xml.model';
export declare class Parser {
private readonly lyricLineParser;
getSongMeta(olSong: xmlModel.IXmlSong): parserModel.IParserMeta;
getSongProperties(props: xmlModel.IXmlProperties): parserModel.IParserProperties;
getSongFormat(format?: xmlModel.IXmlFormat): parserModel.IParserFormat;
getSongVerses(verses?: xmlModel.IXmlVerse[]): parserModel.IParserVerse[];
getSongInstruments(instruments?: xmlModel.IXmlInstrument[]): parserModel.IParserInstrument[];
private getVerseLines;
private getInstrumentLines;
private parseLineTextForXml;
private getVerseContentObjects;
private getInstrumentContentObjects;
private getChordObject;
private getSongPropertyAuthors;
private getSongPropertyComments;
private getSongPropertyThemes;
private getSongPropertyTitles;
private getSongPropertySongBooks;
private getStringOrTextProp;
private getOptionalPropOnPossibleObject;
}