[Open all] [Close all] [Open all source code] [Close all source code]

The HumdrumFile class manages data conversions for the humlib library.

 

HumdrumFile Public functions

HumdrumFile — HumdrumFile constructor.
printXml — Print a HumdrumFile object in XML format.

 

Functions inherited from HumdrumFileContent

HumdrumFileContent — // HumdrumFileContent::HumdrumFileContent --
analyzeKernSlurs — Link start and ends of slurs to each other.
analyzeKernTies — Link start and ends of ties to each other.

 

Functions inherited from HumdrumFileStructure

HumdrumFileStructure — HumdrumFileStructure constructor.
getBarline — Return the given barline from the file based on the index number.
getBarlineCount — Return the number of barlines in the file.
getBarlineDuration — Return the duration from the current barline to the next barline in the data.
getBarlineDurationFromStart — Return the duration between the start of the Humdrum file and the given barline.
getBarlineDurationToEnd — Return the duration between barline and the end of the HumdrumFileStructure.
getScoreDuration — Return the total duration of the score in quarter note units.
getStrandStart — Return the first token in the a strand.
printDurationInfo — Print the assigned duration of each line in a file.
read — Read the contents of a file from a file or istream.
readCSV — Read the contents of a file from a file or istream in CSV format.
readNoRhythm — Similar to the read() functions, but does not parse rhythm (or parameters).
readNoRhythmCSV — Similar to the readCsv() functions, but does not parse rhythm (or parameters).
readString — Read the contents from a string.
readStringCSV — Read the contents from a string.
readStringNoRhythm — Read a string, but do not analyze the rhythm (or parameters) in the read data.
readStringNoRhythmCSV — Read a string, but do not analyze the rhythm (or parameters) in the read data.
tpq — "Ticks per Quarter-note".

 

Functions inherited from HumdrumFileBase

HumdrumFileBase — HumdrumFileBase constructor.
append — Add a line to the file's contents.
createLinesFromTokens — Generate Humdrum lines strings from the stored list of tokens.
getLineCount — Returns the number of lines.
getMaxTrack — Returns the number of primary spines in the data.
getParseError — Return parse fail reason.
getPrimaryTrackSeq — Return a list of the given primary spine tokens for a given track (indexed starting at one and going through getMaxTrack().
getPrimaryTrackSequence — Return a list of the given primary spine tokens for a given track (indexed starting at one and going through getMaxTrack().
getSpineStartList — Return a list of the exclustive interpretations starting spines in the data.
getTrackEnd — Returns a pointer to the terminal manipulator token for the given track and subtrack.
getTrackEndCount — Return the number of ending tokens for the given track.
getTrackSeq — Extract a sequence of tokens for the given spine.
getTrackSequence — Extract a sequence of tokens for the given spine.
getTrackStart — Return the starting exclusive interpretation for the given track.
getXmlIdPrefix — Return the HumdrumXML ID attribute prefix.
isValid — Returns true if last read was successful.
operatorBRACKET — Access a Humdrum file line by and index.
printCSV — print Humdrum file content in CSV format.
printDataTypeInfo — Print the data type for all spines in the file (for debugging).
printSpineInfo — Print the spine information for all lines/tokens in file (for debugging).
printTrackInfo — Print the track numbers for all tokens in the file (for debugging).
read — Load file contents from an input stream or file.
readCSV — Read a Humdrum file in CSV format (rather than TSV format).
readString — Read contents from a string rather than an istream or filename.
readStringCSV — Reads Humdrum data in CSV format.
setNoisyParse — Display error messages on console when reading data.
setNoisyParsing — Display error messages on console when reading data.
setParseError — Set an error message from parsing input data.
setQuietParse — Prevent error messages from being displayed when reading data.
setQuietParsing — Prevent error messages from being displayed when reading data.
setXmlIdPrefix — Set the prefix for a HumdrumXML ID atrribute.
token — Return the token at the given line/field index.