humdrum-js

A Javascript parser for musical data in the Humdrum syntax

The RefRecords object is an interface for managing a single token. This can be a data token, an interpretation, a path manipulator, or even a global comment or reference record.


Functions

clear — Intialize variables for object.
parse — Extract reference records from Humdrum data.
getRefFirst — Get the first reference record matching key in data.
getRefAll — Get array of all keys of the given type.
getRefFirstExact — Get the first reference record that matches key plus qualifiers.
getRefAllExact — Get array of all keys of the given type that matches key plus qualifiers.
getAllRefs — Return a list of all references.
getRefs — Return a list of all references that match key list.
getComposerRefs — Return list of refs related to composers.
getOpusRefs — Return list of refs related to work.
expandAtTemplate — Expand template with ref records.


Variables

sequence — The order that the Humdrum records are found in the file.
database — Hash of the records by RefRecordEntry::keyBase.
owner — The HumdrumBase structure that this object is contained in.


Extended functions

getStandardRefs — Get list of standard references.


Private extended functions

AddDescriptions — Add descriptions of keys to entries.
AddStatuses — Add status of keys to entries.
AddLanguages — Assign languages from language codes.