Repository navigation
API Interface MusicHandle
Defined in: src/engine/audio/musicTypes.ts:100
handle.music (§1.2): readable from M4a. Every getter is main-side state, no call to the core; the getters share one
snapshot per display frame, recomputed on first read.
readonly bar: number;Defined in: src/engine/audio/musicTypes.ts:103
readonly beat: number;Defined in: src/engine/audio/musicTypes.ts:104
readonly beatFraction: number;Defined in: src/engine/audio/musicTypes.ts:105
readonly beatsPerBar: number;Defined in: src/engine/audio/musicTypes.ts:108
readonly beatUnit: number;Defined in: src/engine/audio/musicTypes.ts:110
The metre's note value (4 in 3/4).
readonly segment: string | null;Defined in: src/engine/audio/musicTypes.ts:102
Id of the playing segment; null while priming the first one.
readonly tempo: number;Defined in: src/engine/audio/musicTypes.ts:107
Beats per minute.
readonly time: number;Defined in: src/engine/audio/musicTypes.ts:112
Heard time (seconds) of the position above: this display frame's Audio.time.
readonly transition:
| {
time: number;
to: string;
}
| null;Defined in: src/engine/audio/musicTypes.ts:114
The pending change, or null: target child id and the heard time (seconds) it lands.
nextGrid(spec): GridPoint | null;Defined in: src/engine/audio/musicTypes.ts:119
Next grid point of that spec. For a pending change the points after transition.time are the new segment's
(GridPoint.segment says which). Null when not playing.
GridPoint | null
positionAt(performanceTime): MusicPositionAt;Defined in: src/engine/audio/musicTypes.ts:121
Map an input timestamp (performance.now() ms) to the music (M4c); segment is null when not playing at that instant.
number
seek(to): MusicSeekResult;Defined in: src/engine/audio/musicTypes.ts:126
Jump to a musical position "bar:beat:tick" (§2.2) within the segment playing when the seek lands (M4b; owner
decision 4; behaviour [ARCH §3.9], ruling R25).
string
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference