Repository navigation
API Interface MusicHandle
Defined in: src/engine/core/musicEvents.ts:101
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/core/musicEvents.ts:104
readonly beat: number;Defined in: src/engine/core/musicEvents.ts:105
readonly beatFraction: number;Defined in: src/engine/core/musicEvents.ts:106
readonly beatsPerBar: number;Defined in: src/engine/core/musicEvents.ts:109
readonly beatUnit: number;Defined in: src/engine/core/musicEvents.ts:111
The metre's note value (4 in 3/4).
readonly segment: string | null;Defined in: src/engine/core/musicEvents.ts:103
Id of the playing segment; null while priming the first one.
readonly tempo: number;Defined in: src/engine/core/musicEvents.ts:108
Beats per minute.
readonly time: number;Defined in: src/engine/core/musicEvents.ts:113
Heard time (seconds) of the position above: this display frame's Audio.time.
readonly transition:
| {
time: number;
to: string;
}
| null;Defined in: src/engine/core/musicEvents.ts:115
The pending change, or null: target child id and the heard time (seconds) it lands.
nextGrid(spec): GridPoint | null;Defined in: src/engine/core/musicEvents.ts:120
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/core/musicEvents.ts:122
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/core/musicEvents.ts:127
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