maps/values#

Interfaces#

MapOutputs#

Defined in: maps/values.ts:54

The answer of a map with named outputs: a CombinationMap, a MeasureBeatMap.

Properties#

outputs#

readonly outputs: 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#

readonly actual_length: QuarterPair | null

Defined in: maps/values.ts:36

count#

readonly count: number

Defined in: maps/values.ts:32

ID#

readonly ID: string

Defined in: maps/values.ts:30

name#

readonly name: string

Defined in: maps/values.ts:31

nominal_length#

readonly nominal_length: QuarterPair | null

Defined in: maps/values.ts:35

number#

readonly number: number | null

Defined in: maps/values.ts:33

offset_within_measure#

readonly offset_within_measure: QuarterPair

Defined in: maps/values.ts:39

qstamp#

readonly qstamp: QuarterPair | null

Defined in: maps/values.ts:34

volta#

readonly volta: number | readonly number[] | 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#

readonly id: string

Defined in: maps/values.ts:44

rows#

readonly rows: readonly MeasureKnot[]

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#

readonly record: 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#

CoordinateValue

Returns#

CoordinateValue


floatOf()#

floatOf(value): number

Defined in: maps/values.ts:74

float(value): the double nearest to an exact value.

Parameters#

value#

CoordinateValue

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#

MapResult

Returns#

result is CoordinateValue


kindOf()#

kindOf(value): NumberType

Defined in: maps/values.ts:69

The number type a value’s kind is.

Parameters#

value#

CoordinateValue

Returns#

NumberType


multiplyValues()#

multiplyValues(left, right): CoordinateValue

Defined in: maps/values.ts:108

left * right on Python’s numeric tower.

Parameters#

left#

CoordinateValue

right#

CoordinateValue

Returns#

CoordinateValue