iOS 0.6.0: milestone 5 (recording, MIDI, input bindings, themes, bundles, backups)
- Master recording (MasterSink ring + writer thread) and the sample recorder - CoreMIDI in/out: sound module, clock send/follow, virtual "Sizzle" ports; platform-free parser/module/clock in core (midi_test) - Hardware keyboard and gamepads via GameController; rebindable keyboard, gamepad and MIDI CC actions; per-parameter MIDI learn - Colour themes (.szt), project bundles (.szgz), backup & restore; ZIP in core with zlib (zip_test against jar and unzip) - Persistent app settings; audio pauses in the background unless sound module Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
435305e42a
commit
64e21e0bcc
@@ -19,6 +19,7 @@ struct SamplerDetail: View {
|
||||
let onSelectPad: (Int) -> Void
|
||||
let onImport: () -> Void
|
||||
@State private var page = 0
|
||||
@ObservedObject private var recorder = SampleRecorder.shared
|
||||
|
||||
var body: some View {
|
||||
let session = SizzleSession.shared
|
||||
@@ -28,6 +29,15 @@ struct SamplerDetail: View {
|
||||
MixKit.HScroll {
|
||||
HStack(spacing: 8) {
|
||||
MixKit.Button(label: "IMPORT WAV", action: onImport)
|
||||
if recorder.isRecording {
|
||||
MixKit.Button(label: "■ STOP REC", active: true) {
|
||||
recorder.stopInto(slot: slot, pad: pad)
|
||||
session.setNumber(0, ofSlot: slot, key: "pad\(pad)S")
|
||||
session.setNumber(1, ofSlot: slot, key: "pad\(pad)E")
|
||||
}
|
||||
} else {
|
||||
MixKit.Button(label: "● RECORD") { recorder.start() }
|
||||
}
|
||||
if assigned {
|
||||
MixKit.Button(label: "✂ CLIP") { _ = session.trimPad(pad, ofSlot: slot) }
|
||||
MixKit.Button(label: "NORMALIZE") { _ = session.normalizePad(pad, ofSlot: slot) }
|
||||
|
||||
Reference in New Issue
Block a user