0.40.0 (75): Sampler One-shot (Android and iOS)
- Sampler parameter oneShot (Off/On): note-offs don't release its pads; they play their whole slice. Transport stop/pause still releases (SampleVoice:: release), panic kills - Engine in core/ and the Kotlin reference both implement it; the golden Sampler "high" scenario covers it; oneshot_test checks MIDI, song, stop, panic - ONE-SHOT toggle in both apps' Sampler editors; specs and layouts regenerated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5240019b47
commit
7041f762e5
@@ -5,6 +5,14 @@ Sizzle for iOS/iPadOS (`cc.tiredsysadmin.ios.sizzle`). One entry per version in
|
||||
is shared with Android, continuing Android's numbering, and both apps ship the
|
||||
same features; the Android side of each version is in `../CHANGELOG.md`.
|
||||
|
||||
## 0.40.0 (build 75)
|
||||
|
||||
- Sampler One-shot: a ONE-SHOT toggle above the pad tools (also in the Sampler's
|
||||
card and as the plugin's "One-shot" parameter). On, note-offs (key release,
|
||||
`===`, the next note on the track) don't cut a pad; it plays its whole slice.
|
||||
Stop / pause still fade the song's pads; MIDI PANIC silences everything.
|
||||
(Android has the same in 0.40.0.)
|
||||
|
||||
## 0.39.1 (build 74)
|
||||
|
||||
- Fix: a Sampler preset shared from Android (a .zip with the preset and its
|
||||
|
||||
+6
-1
@@ -90,6 +90,10 @@ build/core/bundle_test: $(CORE_SRC) $(CORE_HDR) ../core/tests/bundle_test.cpp
|
||||
mkdir -p build/core
|
||||
$(CXX) $(CXXFLAGS) -o $@ $(CORE_SRC) ../core/tests/bundle_test.cpp
|
||||
|
||||
build/core/oneshot_test: $(CORE_SRC) $(CORE_HDR) ../core/tests/oneshot_test.cpp
|
||||
mkdir -p build/core
|
||||
$(CXX) $(CXXFLAGS) -o $@ $(CORE_SRC) ../core/tests/oneshot_test.cpp
|
||||
|
||||
build/core/midi_test: ../core/include/sizzle/Midi.hpp ../core/tests/midi_test.cpp
|
||||
mkdir -p build/core
|
||||
$(CXX) $(CXXFLAGS) -o $@ ../core/tests/midi_test.cpp
|
||||
@@ -106,7 +110,7 @@ zip-test: build/core/zip_test
|
||||
build/core/zip_test build/core/java.zip build/core/ours.zip
|
||||
unzip -tq build/core/ours.zip
|
||||
|
||||
core-test: build/core/golden_test build/core/sampler_test build/core/engine_test build/core/io_test build/core/midi_test build/core/host_test build/core/midimap_test build/core/bundle_test zip-test
|
||||
core-test: build/core/golden_test build/core/sampler_test build/core/engine_test build/core/io_test build/core/midi_test build/core/host_test build/core/midimap_test build/core/bundle_test build/core/oneshot_test zip-test
|
||||
@test -f $(GOLDEN)/input.f32 || $(MAKE) --no-print-directory golden
|
||||
build/core/golden_test $(GOLDEN) $(TYPES)
|
||||
build/core/sampler_test
|
||||
@@ -115,6 +119,7 @@ core-test: build/core/golden_test build/core/sampler_test build/core/engine_test
|
||||
build/core/midi_test
|
||||
build/core/host_test $(GOLDEN)/songs
|
||||
build/core/midimap_test ../app/src/test/resources/midimap/filter.szm
|
||||
build/core/oneshot_test
|
||||
build/core/bundle_test $(GOLDEN)/bundles/android_sampler.zip ../app/src/test/resources/presetbundle/ios_sampler.zip
|
||||
|
||||
# ------------------------------------------------------------------ app
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
],
|
||||
"SAMPLER": [
|
||||
{"title": "Sampler", "panels": [
|
||||
{"title": "Sampler", "tone": "SOURCE", "keys": ["volume"]}]}
|
||||
{"title": "Sampler", "tone": "SOURCE", "keys": ["volume", "oneShot"]}]}
|
||||
],
|
||||
"SOUNDFONT": [
|
||||
{"title": "SF2 / XI Loader", "panels": [
|
||||
|
||||
@@ -24,7 +24,17 @@ struct SamplerDetail: View {
|
||||
var body: some View {
|
||||
let session = SizzleSession.shared
|
||||
let assigned = !session.value(ofSlot: slot, key: "pad\(pad)").isEmpty
|
||||
let oneShot = session.value(ofSlot: slot, key: "oneShot") == "On"
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
// One-shot (the whole Sampler): note-offs don't cut the pads.
|
||||
HStack(spacing: 8) {
|
||||
MixKit.Button(label: "ONE-SHOT", active: oneShot) {
|
||||
session.setValue(oneShot ? "Off" : "On", ofSlot: slot, key: "oneShot")
|
||||
}
|
||||
Text(oneShot ? "Pads play their whole slice; note-offs are ignored."
|
||||
: "Pads stop on note-off (key release, ===).")
|
||||
.font(Theme.mono(11)).foregroundColor(Theme.dim).lineLimit(2)
|
||||
}
|
||||
Text("Pad \(pad + 1) · \(MixKit.pitchName(SamplerPads.note(pad)))").font(Theme.mono(13)).foregroundColor(Theme.accent)
|
||||
MixKit.HScroll {
|
||||
HStack(spacing: 8) {
|
||||
|
||||
Reference in New Issue
Block a user