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
@@ -64,8 +64,10 @@ inline const ParamSpec NES_SYNTH_params[] = {
|
||||
{"m3amt", "Mod4 Amt", 0.0f, -1.0f, 1.0f, false, nullptr},
|
||||
};
|
||||
|
||||
inline const char *const SAMPLER_c1[] = {"Off", "On", nullptr};
|
||||
inline const ParamSpec SAMPLER_params[] = {
|
||||
{"volume", "Volume", 0.8f, 0.0f, 1.0f, false, nullptr},
|
||||
{"oneShot", "One-shot", 0.0f, 0.0f, 1.0f, false, SAMPLER_c1},
|
||||
};
|
||||
|
||||
inline const char *const SOUNDFONT_c6[] = {"Off", "On", nullptr};
|
||||
@@ -309,7 +311,7 @@ inline const ParamSpec GRANULAR_params[] = {
|
||||
|
||||
inline const DeviceSpec devices[] = {
|
||||
{"NES_SYNTH", "Synth", Kind::Instrument, NES_SYNTH_params, 43},
|
||||
{"SAMPLER", "Sampler", Kind::Instrument, SAMPLER_params, 1},
|
||||
{"SAMPLER", "Sampler", Kind::Instrument, SAMPLER_params, 2},
|
||||
{"SOUNDFONT", "SF2 / XI Loader", Kind::Instrument, SOUNDFONT_params, 8},
|
||||
{"MORPH_PAD", "Morph Pad", Kind::Instrument, MORPH_PAD_params, 36},
|
||||
{"GRAIN_CLOUD", "Grain Cloud", Kind::Instrument, GRAIN_CLOUD_params, 24},
|
||||
|
||||
Reference in New Issue
Block a user