A Javascript parser for musical data in the Humdrum syntax
The HumdrumLine object is an interface for managing the contents of a Humdrum data line. All events in all spines that occur (or start) at the same time will be members of the same HumdrumLine, so it represents a unique time instant in the data. If spines posses duration information, such as **kern or **recip data, then the Humdrum content can be rhythmically analyzed and a specific timestamp assigned to the HumdrumLine (which will be stored in the timestamp property of the object).
A HumdrumLine object contains an array of HumdrumToken in its fields property. If the line consists of a global comment or reference record, fields will contain only one HumdrumToken object representing the entire line; otherwise, the line will be split into one or more spine tokens, each managed by a separate HumdrumToken object stored in the fields array. Empty lines are represented as a single empty HumdrumToken. Therefore, there will always be at least one HumdrumToken in an initialized HumdrumLine object’s fields property. Usually the getToken function should be used to access the HumdrumToken contained in the object.
These properties are used to manage the HumdrumLine object. Prefer using the above functions to access or modify these variables unless you know what your are doing.
Here is a list of functions that are mostly intended for automatic processing of the HumdrumLine object, so they should not be used in general. These functions are mostly used by HumdrumBase.parse and HumdrumBase.stringify.