Repository navigation
API Interface MusicEvent
Defined in: src/engine/core/musicEvents.ts:59
What a beat, bar or cue callback carries (§1.1). Every field states its unit.
bar: number;Defined in: src/engine/core/musicEvents.ts:64
1-based integers; a bar event has beat 1.
beat: number;Defined in: src/engine/core/musicEvents.ts:65
beatsPerBar: number;Defined in: src/engine/core/musicEvents.ts:70
cue?: string;Defined in: src/engine/core/musicEvents.ts:67
onMusicCue only: the cue's name.
handle: MusicEventHandle;Defined in: src/engine/core/musicEvents.ts:60
heardIn: number;Defined in: src/engine/core/musicEvents.ts:74
Seconds until it is heard: time - Audio.time; >= 0 unless missed > 0.
missed: number;Defined in: src/engine/core/musicEvents.ts:76
Beats of this kind coalesced into this call; 0 normally.
segment: string;Defined in: src/engine/core/musicEvents.ts:62
Node id of the playing segment.
skippedCues?: string[];Defined in: src/engine/core/musicEvents.ts:78
Cue events only: the names of cues coalesced away (R20).
tempo: number;Defined in: src/engine/core/musicEvents.ts:69
Beats per minute at this point.
time: number;Defined in: src/engine/core/musicEvents.ts:72
Seconds: when this beat is heard, Audio.time's base.
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