add ping-pong loop mode and crossfade length rotary

This commit is contained in:
Armin 2026-07-24 13:09:52 +02:00
commit e9dc3a4d66
10 changed files with 67 additions and 17 deletions

View file

@ -106,6 +106,7 @@ inline static const String PLAY_UNTIL_END{ "Play Until End" };
inline static const String IS_LOOPING{ "Loop" };
inline static const String LOOPING_HAS_START{ "Loop With Start" };
inline static const String LOOPING_HAS_END{ "Loop With End" };
inline static const String IS_PING_PONG{ "Ping Pong" };
inline static const String PLAYBACK_MODE{ "Playback Mode" };
inline static const StringArray PLAYBACK_MODE_LABELS{ "Basic", "Bungee" }; // for IDs and display
@ -381,6 +382,7 @@ inline juce::AudioProcessorValueTreeState::ParameterLayout createParameterLayout
addBool(layout, LOOPING_HAS_START, false, Version::V1);
addBool(layout, IS_LOOPING, false, Version::V1);
addBool(layout, LOOPING_HAS_END, false, Version::V1);
addBool(layout, IS_PING_PONG, false, Version::V1_3_2);
addFloat(layout, SAMPLE_GAIN, 0.f, addSkew({ -32.f, 16.f, 0.1f }, 0.f), Version::V1, suffixF(" " + VOLUME_UNIT, 0.1f));
addBool(layout, MONO_OUTPUT, false, Version::V1);