bugfixes, better MusicXML support and 1.1.0

This commit is contained in:
2026-06-10 08:41:07 -07:00
parent 6d3a0930a1
commit f59fd3b55a
228 changed files with 32271 additions and 2586 deletions
@@ -31,7 +31,12 @@ public func make___FILEBASENAMEASIDENTIFIER___() -> LyrebirdTask {
// The example below schedules one short Synthesizer every 250 ms
// until `stop()` is called.
while true {
let note: ExampleNote = ExampleNote()
// SynthesizerBase subclasses are @MainActor-isolated; construct on the
// main thread synchronously, then hand the instance to ctx.add which
// dispatches the engine.add to main via DispatchQueue.main.async.
let note: ExampleNote = DispatchQueue.main.sync {
MainActor.assumeIsolated { ExampleNote() }
}
ctx.add(note)
try ctx.wait(seconds: 0.25)
}