v2.4.1 release: scratchpad polish + demo cleanup

Maintenance release, no framework API changes.

Scratchpad: Kill All Sound (⌘K) rename, mode-switch desync fix,
code-completion prefix filtering restored (⌃Space Show Completions).
Demos: GUIDemo voices + CLI EventPattern BlipVoice moved into
Synthesizers/, EventPattern demo split into makeLead/makeBass, GUIDemo
doc drift fixed (conductor default). LyrebirdScratch gains a SwiftPM
package so the workspace shows it like GUIDemo (.xcodeproj kept for
distribution). Linux live-coding scratchpad documented.
This commit is contained in:
2026-12-03 11:39:40 -08:00
parent 6da3615707
commit ec72bd3a4c
29 changed files with 510 additions and 110 deletions
@@ -141,6 +141,17 @@ public final class LyrebirdScratchMenuController: NSObject, NSMenuItemValidation
find.tag = Int(NSFindPanelAction.showFindPanel.rawValue)
menu.addItem(find)
menu.addItem(NSMenuItem.separator())
// Manual code-completion (Swift mode). No target: routed down the
// responder chain to the focused `ScratchTextView`, which funnels it to
// the same async LSP fetch as Esc / F5. ⌃Space mirrors the Linux editor;
// if the system has claimed ⌃Space (input-source switching), Esc / F5
// still work.
let complete: NSMenuItem = NSMenuItem(title: "Show Completions",
action: #selector(ScratchTextView.scratchShowCompletions(_:)),
keyEquivalent: " ")
complete.keyEquivalentModifierMask = [.control]
menu.addItem(complete)
menu.addItem(NSMenuItem.separator())
let format: NSMenuItem = target(NSMenuItem(title: "Format Code",
action: #selector(formatCode(_:)),
keyEquivalent: "f"))
@@ -173,7 +184,7 @@ public final class LyrebirdScratchMenuController: NSObject, NSMenuItemValidation
render.keyEquivalentModifierMask = [.command, .option]
menu.addItem(render)
menu.addItem(NSMenuItem.separator())
menu.addItem(target(NSMenuItem(title: "Clear Tracked Synths",
menu.addItem(target(NSMenuItem(title: "Kill All Sound",
action: #selector(clearSynths(_:)),
keyEquivalent: "k")))
menu.addItem(NSMenuItem.separator())