maps/values#
Interfaces#
MapOutputs#
Defined in: maps/values.ts:54
The answer of a map with named outputs: a CombinationMap, a MeasureBeatMap.
Properties#
outputs#
readonlyoutputs:object
Defined in: maps/values.ts:55
Index Signature#
[name: string]: MapResult
MeasureKnot#
Defined in: maps/values.ts:29
One measure of an expanded MeasureMap, the members the measure views read: a row of the answer of the server’s measure-maps route.
Properties#
actual_length#
readonlyactual_length:QuarterPair|null
Defined in: maps/values.ts:36
count#
readonlycount:number
Defined in: maps/values.ts:32
ID#
readonlyID:string
Defined in: maps/values.ts:30
name#
readonlyname:string
Defined in: maps/values.ts:31
nominal_length#
readonlynominal_length:QuarterPair|null
Defined in: maps/values.ts:35
number#
readonlynumber:number|null
Defined in: maps/values.ts:33
offset_within_measure#
readonlyoffset_within_measure:QuarterPair
Defined in: maps/values.ts:39
qstamp#
readonlyqstamp:QuarterPair|null
Defined in: maps/values.ts:34
volta#
readonlyvolta:number| readonlynumber[] |null
Defined in: maps/values.ts:38
The pass or passes of the row’s volta bracket, null under none.
MeasureKnots#
Defined in: maps/values.ts:43
The expanded rows of one MeasureMap of a manifest, named by its ID.
Properties#
id#
readonlyid:string
Defined in: maps/values.ts:44
rows#
readonlyrows: readonlyMeasureKnot[]
Defined in: maps/values.ts:45
MeasureRecord#
Defined in: maps/values.ts:49
The answer of a MeasureRecordMap: the measure holding the position.
Properties#
record#
readonlyrecord:MeasureKnot
Defined in: maps/values.ts:50
Type Aliases#
MapInput#
MapInput =
MapValue
Defined in: maps/values.ts:20
A position a map is evaluated at, as its timeline’s number type holds it.
MapResult#
MapResult =
MapValue|string|MeasureRecord|MapOutputs
Defined in: maps/values.ts:59
A map’s raw result: a number, a string (a label), a measure, or named outputs.
MapValue#
MapValue =
CoordinateValue
Defined in: maps/values.ts:17
A number a map reads or gives: bigint an int, Rational a Fraction, number a float.
QuarterPair#
QuarterPair = readonly [
number,number]
Defined in: maps/values.ts:23
An exact quarter-note value: [numerator, denominator], both safe integers.
Functions#
addValues()#
addValues(
left,right):CoordinateValue
Defined in: maps/values.ts:97
left + right on Python’s numeric tower.
Parameters#
left#
right#
Returns#
floatOf()#
floatOf(
value):number
Defined in: maps/values.ts:74
float(value): the double nearest to an exact value.
Parameters#
value#
Returns#
number
isMapValue()#
isMapValue(
result):result is CoordinateValue
Defined in: maps/values.ts:64
Whether a map’s result is a number rather than a label, a measure or named outputs.
Parameters#
result#
Returns#
result is CoordinateValue
kindOf()#
kindOf(
value):NumberType
Defined in: maps/values.ts:69
The number type a value’s kind is.
Parameters#
value#
Returns#
NumberType
multiplyValues()#
multiplyValues(
left,right):CoordinateValue
Defined in: maps/values.ts:108
left * right on Python’s numeric tower.