Sfoglia il codice sorgente

wip 168p: automation tables for the 8 engines (ModelParams), live parameters, part knobs, drum displays, LYNX banks, translations

Ka1-S 1 mese fa
parent
commit
ab67bb3c2f

+ 1 - 0
CMakeLists.txt

@@ -185,6 +185,7 @@ target_sources(lynx_core PRIVATE
     src/core/KeyMap.cpp
     src/core/PresetCycle.cpp
     src/core/DrumControls.cpp
+    src/core/DrumBanks.cpp
     src/core/BankStates.cpp
     src/core/Sfz.cpp
     src/core/Workspace.cpp

+ 55 - 0
resources/i18n/de.txt

@@ -6285,3 +6285,58 @@ countries: de at ch li lu
 "Time L" = "Zeit L"
 "Time R" = "Zeit R"
 "Needs FL Studio's files" = "Benötigt die Dateien von FL Studio"
+"Amp decay" = "Amp-Decay"
+"Norm" = "Norm."
+"Widen" = "Breiter"
+"Mallet" = "Schlägel"
+"Membrane" = "Membran"
+"Noise RP" = "Rausch RP"
+"Material" = "Material"
+"Freq mod" = "Freq-Mod"
+"Level mod" = "Pegel-Mod"
+"Lo-fi" = "Lo-Fi"
+"Pads 1-8" = "Pads 1-8"
+"Pads 9-16" = "Pads 9-16"
+"Sequencer" = "Sequencer"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "Den Pattern-Sequencer von Drumaxx spielt LYNX nicht ab: Spiele die Pads aus der Piano Roll oder dem Channel Rack"
+"Sub bass" = "Subbass"
+"Var base" = "Var. Basis"
+"Sampling" = "Sampling"
+"Var peak" = "Var. Spitze"
+"Var slide" = "Var. Slide"
+"Var phase" = "Var. Phase"
+"Trig" = "Trig"
+"Osc 1" = "Osz 1"
+"Osc 2" = "Osz 2"
+"Selected" = "Ausgewählt"
+"Num" = "Nr."
+"Morph to" = "Morph zu"
+"Harm" = "Harm."
+"Lvl" = "Pegel"
+"Hi-cut" = "Hi-Cut"
+"Lo-cut" = "Lo-Cut"
+"String 1" = "Saite 1"
+"String 2" = "Saite 2"
+"Resonators" = "Resonatoren"
+"Comb ratio" = "Kamm-Verh."
+"Saturate" = "Sättigung"
+"Sharp" = "Schärfe"
+"Inv" = "Inv."
+"Aid" = "Spielhilfe"
+"Coils" = "Spulen"
+"Pickup position" = "Tonabnehmerposition"
+"Playing" = "Spielweise"
+"Gliss" = "Gliss."
+"Bend 2" = "Bend 2"
+"Slap" = "Slap"
+"Fret" = "Bund"
+"Vel vol" = "Vel. Lautst."
+"Vel damp" = "Vel. Dämpf."
+"Pres" = "Präs."
+"Fdbk" = "Feedb."
+"FX" = "FX"
+"Par 1" = "Par 1"
+"Par 2" = "Par 2"
+"(no kit name)" = "(kein Kit-Name)"
+"Pad {0}" = "Pad {0}"
+"(no noise sample)" = "(kein Rausch-Sample)"

+ 55 - 0
resources/i18n/es.txt

@@ -6285,3 +6285,58 @@ countries: es mx ar co cl pe ve
 "Time L" = "Tiempo I"
 "Time R" = "Tiempo D"
 "Needs FL Studio's files" = "Necesita los archivos de FL Studio"
+"Amp decay" = "Caída amp"
+"Norm" = "Norm."
+"Widen" = "Ampliar"
+"Mallet" = "Baqueta"
+"Membrane" = "Membrana"
+"Noise RP" = "Ruido RP"
+"Material" = "Material"
+"Freq mod" = "Mod frec"
+"Level mod" = "Mod nivel"
+"Lo-fi" = "Lo-fi"
+"Pads 1-8" = "Pads 1-8"
+"Pads 9-16" = "Pads 9-16"
+"Sequencer" = "Secuenciador"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "LYNX no reproduce el secuenciador de patrones de Drumaxx: toca los pads desde el Piano roll o el Channel rack"
+"Sub bass" = "Subgraves"
+"Var base" = "Var. base"
+"Sampling" = "Muestreo"
+"Var peak" = "Var. pico"
+"Var slide" = "Var. desliz."
+"Var phase" = "Var. fase"
+"Trig" = "Disparo"
+"Osc 1" = "Osc 1"
+"Osc 2" = "Osc 2"
+"Selected" = "Seleccionado"
+"Num" = "Núm."
+"Morph to" = "Transformar a"
+"Harm" = "Arm."
+"Lvl" = "Niv."
+"Hi-cut" = "Corte agudos"
+"Lo-cut" = "Corte graves"
+"String 1" = "Cuerda 1"
+"String 2" = "Cuerda 2"
+"Resonators" = "Resonadores"
+"Comb ratio" = "Relación peine"
+"Saturate" = "Saturar"
+"Sharp" = "Nitidez"
+"Inv" = "Inv."
+"Aid" = "Ayuda"
+"Coils" = "Bobinas"
+"Pickup position" = "Posición de pastilla"
+"Playing" = "Ejecución"
+"Gliss" = "Gliss."
+"Bend 2" = "Bend 2"
+"Slap" = "Slap"
+"Fret" = "Traste"
+"Vel vol" = "Vel. vol"
+"Vel damp" = "Vel. amort."
+"Pres" = "Pres."
+"Fdbk" = "Realim."
+"FX" = "FX"
+"Par 1" = "Par 1"
+"Par 2" = "Par 2"
+"(no kit name)" = "(sin nombre de kit)"
+"Pad {0}" = "Pad {0}"
+"(no noise sample)" = "(sin muestra de ruido)"

+ 55 - 0
resources/i18n/fr.txt

@@ -6285,3 +6285,58 @@ countries: fr be ch ca lu
 "Time L" = "Temps G"
 "Time R" = "Temps D"
 "Needs FL Studio's files" = "Nécessite les fichiers de FL Studio"
+"Amp decay" = "Décroiss. amp"
+"Norm" = "Norm."
+"Widen" = "Élargir"
+"Mallet" = "Mailloche"
+"Membrane" = "Membrane"
+"Noise RP" = "Bruit RP"
+"Material" = "Matériau"
+"Freq mod" = "Mod fréq"
+"Level mod" = "Mod niveau"
+"Lo-fi" = "Lo-fi"
+"Pads 1-8" = "Pads 1-8"
+"Pads 9-16" = "Pads 9-16"
+"Sequencer" = "Séquenceur"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "LYNX ne joue pas le séquenceur de patterns de Drumaxx : jouez les pads depuis le Piano roll ou le Channel rack"
+"Sub bass" = "Sub-basse"
+"Var base" = "Var. base"
+"Sampling" = "Échantill."
+"Var peak" = "Var. crête"
+"Var slide" = "Var. glisse"
+"Var phase" = "Var. phase"
+"Trig" = "Déclench."
+"Osc 1" = "Osc 1"
+"Osc 2" = "Osc 2"
+"Selected" = "Sélection"
+"Num" = "N°"
+"Morph to" = "Morph vers"
+"Harm" = "Harm."
+"Lvl" = "Niv."
+"Hi-cut" = "Coupe-haut"
+"Lo-cut" = "Coupe-bas"
+"String 1" = "Corde 1"
+"String 2" = "Corde 2"
+"Resonators" = "Résonateurs"
+"Comb ratio" = "Ratio peigne"
+"Saturate" = "Saturer"
+"Sharp" = "Netteté"
+"Inv" = "Inv."
+"Aid" = "Aide"
+"Coils" = "Bobines"
+"Pickup position" = "Position du micro"
+"Playing" = "Jeu"
+"Gliss" = "Gliss."
+"Bend 2" = "Bend 2"
+"Slap" = "Slap"
+"Fret" = "Frette"
+"Vel vol" = "Vél. vol"
+"Vel damp" = "Vél. amort."
+"Pres" = "Prés."
+"Fdbk" = "Réinj."
+"FX" = "FX"
+"Par 1" = "Par 1"
+"Par 2" = "Par 2"
+"(no kit name)" = "(kit sans nom)"
+"Pad {0}" = "Pad {0}"
+"(no noise sample)" = "(pas d'échantillon de bruit)"

+ 55 - 0
resources/i18n/id.txt

@@ -6285,3 +6285,58 @@ countries: id
 "Time L" = "Waktu K"
 "Time R" = "Waktu Ka"
 "Needs FL Studio's files" = "Perlu file FL Studio"
+"Amp decay" = "Decay amp"
+"Norm" = "Norm."
+"Widen" = "Lebarkan"
+"Mallet" = "Pemukul"
+"Membrane" = "Membran"
+"Noise RP" = "Noise RP"
+"Material" = "Material"
+"Freq mod" = "Mod frek"
+"Level mod" = "Mod level"
+"Lo-fi" = "Lo-fi"
+"Pads 1-8" = "Pad 1-8"
+"Pads 9-16" = "Pad 9-16"
+"Sequencer" = "Sequencer"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "Sequencer pola Drumaxx tidak diputar oleh LYNX: mainkan pad dari Piano roll atau Channel rack"
+"Sub bass" = "Sub bass"
+"Var base" = "Var base"
+"Sampling" = "Sampling"
+"Var peak" = "Var puncak"
+"Var slide" = "Var slide"
+"Var phase" = "Var fase"
+"Trig" = "Picu"
+"Osc 1" = "Osc 1"
+"Osc 2" = "Osc 2"
+"Selected" = "Terpilih"
+"Num" = "No."
+"Morph to" = "Morph ke"
+"Harm" = "Harm"
+"Lvl" = "Lvl"
+"Hi-cut" = "Hi-cut"
+"Lo-cut" = "Lo-cut"
+"String 1" = "Senar 1"
+"String 2" = "Senar 2"
+"Resonators" = "Resonator"
+"Comb ratio" = "Rasio sisir"
+"Saturate" = "Saturasi"
+"Sharp" = "Tajam"
+"Inv" = "Inv"
+"Aid" = "Bantuan"
+"Coils" = "Kumparan"
+"Pickup position" = "Posisi pickup"
+"Playing" = "Permainan"
+"Gliss" = "Gliss"
+"Bend 2" = "Bend 2"
+"Slap" = "Slap"
+"Fret" = "Fret"
+"Vel vol" = "Vel vol"
+"Vel damp" = "Vel redam"
+"Pres" = "Pres"
+"Fdbk" = "Umpan"
+"FX" = "FX"
+"Par 1" = "Par 1"
+"Par 2" = "Par 2"
+"(no kit name)" = "(tanpa nama kit)"
+"Pad {0}" = "Pad {0}"
+"(no noise sample)" = "(tanpa sampel noise)"

+ 55 - 0
resources/i18n/it.txt

@@ -6285,3 +6285,58 @@ countries: it ch sm
 "Time L" = "Tempo S"
 "Time R" = "Tempo D"
 "Needs FL Studio's files" = "Servono i file di FL Studio"
+"Amp decay" = "Decay amp"
+"Norm" = "Norm."
+"Widen" = "Allarga"
+"Mallet" = "Mazzuolo"
+"Membrane" = "Membrana"
+"Noise RP" = "Rumore RP"
+"Material" = "Materiale"
+"Freq mod" = "Mod freq"
+"Level mod" = "Mod livello"
+"Lo-fi" = "Lo-fi"
+"Pads 1-8" = "Pad 1-8"
+"Pads 9-16" = "Pad 9-16"
+"Sequencer" = "Sequencer"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "LYNX non riproduce il sequencer di pattern di Drumaxx: suona i pad dal Piano roll o dal Channel rack"
+"Sub bass" = "Sub basso"
+"Var base" = "Var. base"
+"Sampling" = "Campionam."
+"Var peak" = "Var. picco"
+"Var slide" = "Var. slide"
+"Var phase" = "Var. fase"
+"Trig" = "Trigger"
+"Osc 1" = "Osc 1"
+"Osc 2" = "Osc 2"
+"Selected" = "Selezionato"
+"Num" = "N."
+"Morph to" = "Morph a"
+"Harm" = "Arm."
+"Lvl" = "Liv."
+"Hi-cut" = "Taglio alti"
+"Lo-cut" = "Taglio bassi"
+"String 1" = "Corda 1"
+"String 2" = "Corda 2"
+"Resonators" = "Risonatori"
+"Comb ratio" = "Rapporto comb"
+"Saturate" = "Satura"
+"Sharp" = "Nitidezza"
+"Inv" = "Inv."
+"Aid" = "Aiuto"
+"Coils" = "Bobine"
+"Pickup position" = "Posizione pickup"
+"Playing" = "Esecuzione"
+"Gliss" = "Gliss."
+"Bend 2" = "Bend 2"
+"Slap" = "Slap"
+"Fret" = "Tasto"
+"Vel vol" = "Vel. vol"
+"Vel damp" = "Vel. smorz."
+"Pres" = "Pres."
+"Fdbk" = "Feedb."
+"FX" = "FX"
+"Par 1" = "Par 1"
+"Par 2" = "Par 2"
+"(no kit name)" = "(kit senza nome)"
+"Pad {0}" = "Pad {0}"
+"(no noise sample)" = "(nessun campione di rumore)"

+ 55 - 0
resources/i18n/ja.txt

@@ -6285,3 +6285,58 @@ countries: jp
 "Time L" = "タイム L"
 "Time R" = "タイム R"
 "Needs FL Studio's files" = "FL Studioのファイルが必要です"
+"Amp decay" = "アンプ減衰"
+"Norm" = "正規化"
+"Widen" = "ワイド"
+"Mallet" = "マレット"
+"Membrane" = "膜"
+"Noise RP" = "ノイズRP"
+"Material" = "素材"
+"Freq mod" = "周波数Mod"
+"Level mod" = "レベルMod"
+"Lo-fi" = "ローファイ"
+"Pads 1-8" = "パッド 1-8"
+"Pads 9-16" = "パッド 9-16"
+"Sequencer" = "シーケンサー"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "Drumaxx のパターンシーケンサーは LYNX では再生されません。Piano roll か Channel rack からパッドを鳴らしてください"
+"Sub bass" = "サブベース"
+"Var base" = "変化 ベース"
+"Sampling" = "サンプリング"
+"Var peak" = "変化 ピーク"
+"Var slide" = "変化 スライド"
+"Var phase" = "変化 位相"
+"Trig" = "トリガー"
+"Osc 1" = "オシレーター 1"
+"Osc 2" = "オシレーター 2"
+"Selected" = "選択中"
+"Num" = "番号"
+"Morph to" = "モーフ先"
+"Harm" = "倍音"
+"Lvl" = "レベル"
+"Hi-cut" = "ハイカット"
+"Lo-cut" = "ローカット"
+"String 1" = "弦 1"
+"String 2" = "弦 2"
+"Resonators" = "レゾネーター"
+"Comb ratio" = "コム比"
+"Saturate" = "サチュレート"
+"Sharp" = "シャープ"
+"Inv" = "反転"
+"Aid" = "補助"
+"Coils" = "コイル"
+"Pickup position" = "ピックアップ位置"
+"Playing" = "奏法"
+"Gliss" = "グリス"
+"Bend 2" = "ベンド 2"
+"Slap" = "スラップ"
+"Fret" = "フレット"
+"Vel vol" = "ベロシティ音量"
+"Vel damp" = "ベロシティ減衰"
+"Pres" = "プレゼンス"
+"Fdbk" = "フィードバック"
+"FX" = "エフェクト"
+"Par 1" = "パラメーター 1"
+"Par 2" = "パラメーター 2"
+"(no kit name)" = "(キット名なし)"
+"Pad {0}" = "パッド {0}"
+"(no noise sample)" = "(ノイズサンプルなし)"

+ 55 - 0
resources/i18n/ko.txt

@@ -6285,3 +6285,58 @@ countries: kr
 "Time L" = "타임 L"
 "Time R" = "타임 R"
 "Needs FL Studio's files" = "FL Studio 파일이 필요합니다"
+"Amp decay" = "앰프 감쇠"
+"Norm" = "정규화"
+"Widen" = "넓게"
+"Mallet" = "말렛"
+"Membrane" = "멤브레인"
+"Noise RP" = "노이즈 RP"
+"Material" = "재질"
+"Freq mod" = "주파수 모드"
+"Level mod" = "레벨 모드"
+"Lo-fi" = "로파이"
+"Pads 1-8" = "패드 1-8"
+"Pads 9-16" = "패드 9-16"
+"Sequencer" = "시퀀서"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "LYNX는 Drumaxx의 패턴 시퀀서를 재생하지 않습니다. Piano roll 또는 Channel rack에서 패드를 연주하세요"
+"Sub bass" = "서브 베이스"
+"Var base" = "변화 베이스"
+"Sampling" = "샘플링"
+"Var peak" = "변화 피크"
+"Var slide" = "변화 슬라이드"
+"Var phase" = "변화 위상"
+"Trig" = "트리거"
+"Osc 1" = "오실레이터 1"
+"Osc 2" = "오실레이터 2"
+"Selected" = "선택됨"
+"Num" = "번호"
+"Morph to" = "모프 대상"
+"Harm" = "배음"
+"Lvl" = "레벨"
+"Hi-cut" = "하이컷"
+"Lo-cut" = "로우컷"
+"String 1" = "현 1"
+"String 2" = "현 2"
+"Resonators" = "공명기"
+"Comb ratio" = "콤 비율"
+"Saturate" = "새추레이트"
+"Sharp" = "샤프"
+"Inv" = "반전"
+"Aid" = "보조"
+"Coils" = "코일"
+"Pickup position" = "픽업 위치"
+"Playing" = "연주"
+"Gliss" = "글리스"
+"Bend 2" = "벤드 2"
+"Slap" = "슬랩"
+"Fret" = "프렛"
+"Vel vol" = "벨로시티 볼륨"
+"Vel damp" = "벨로시티 댐프"
+"Pres" = "프레즌스"
+"Fdbk" = "피드백"
+"FX" = "이펙트"
+"Par 1" = "파라미터 1"
+"Par 2" = "파라미터 2"
+"(no kit name)" = "(킷 이름 없음)"
+"Pad {0}" = "패드 {0}"
+"(no noise sample)" = "(노이즈 샘플 없음)"

+ 55 - 0
resources/i18n/nl.txt

@@ -6285,3 +6285,58 @@ countries: nl be
 "Time L" = "Tijd L"
 "Time R" = "Tijd R"
 "Needs FL Studio's files" = "Heeft de bestanden van FL Studio nodig"
+"Amp decay" = "Amp-decay"
+"Norm" = "Norm."
+"Widen" = "Breder"
+"Mallet" = "Slagstok"
+"Membrane" = "Membraan"
+"Noise RP" = "Ruis RP"
+"Material" = "Materiaal"
+"Freq mod" = "Freq-mod"
+"Level mod" = "Niveau-mod"
+"Lo-fi" = "Lo-fi"
+"Pads 1-8" = "Pads 1-8"
+"Pads 9-16" = "Pads 9-16"
+"Sequencer" = "Sequencer"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "LYNX speelt de patroonsequencer van Drumaxx niet af: speel de pads vanuit de Piano roll of de Channel rack"
+"Sub bass" = "Subbas"
+"Var base" = "Var. basis"
+"Sampling" = "Sampling"
+"Var peak" = "Var. piek"
+"Var slide" = "Var. slide"
+"Var phase" = "Var. fase"
+"Trig" = "Trigger"
+"Osc 1" = "Osc 1"
+"Osc 2" = "Osc 2"
+"Selected" = "Geselecteerd"
+"Num" = "Nr."
+"Morph to" = "Morph naar"
+"Harm" = "Harm."
+"Lvl" = "Niv."
+"Hi-cut" = "Hi-cut"
+"Lo-cut" = "Lo-cut"
+"String 1" = "Snaar 1"
+"String 2" = "Snaar 2"
+"Resonators" = "Resonatoren"
+"Comb ratio" = "Kam-verh."
+"Saturate" = "Verzadig"
+"Sharp" = "Scherp"
+"Inv" = "Inv."
+"Aid" = "Hulp"
+"Coils" = "Spoelen"
+"Pickup position" = "Elementpositie"
+"Playing" = "Speelwijze"
+"Gliss" = "Gliss."
+"Bend 2" = "Bend 2"
+"Slap" = "Slap"
+"Fret" = "Fret"
+"Vel vol" = "Vel. vol"
+"Vel damp" = "Vel. demp."
+"Pres" = "Pres."
+"Fdbk" = "Feedb."
+"FX" = "FX"
+"Par 1" = "Par 1"
+"Par 2" = "Par 2"
+"(no kit name)" = "(geen kitnaam)"
+"Pad {0}" = "Pad {0}"
+"(no noise sample)" = "(geen ruissample)"

+ 55 - 0
resources/i18n/pl.txt

@@ -6285,3 +6285,58 @@ countries: pl
 "Time L" = "Czas L"
 "Time R" = "Czas P"
 "Needs FL Studio's files" = "Wymaga plików FL Studio"
+"Amp decay" = "Zanik amp"
+"Norm" = "Norm."
+"Widen" = "Poszerz"
+"Mallet" = "Pałka"
+"Membrane" = "Membrana"
+"Noise RP" = "Szum RP"
+"Material" = "Materiał"
+"Freq mod" = "Mod częst."
+"Level mod" = "Mod poziomu"
+"Lo-fi" = "Lo-fi"
+"Pads 1-8" = "Pady 1-8"
+"Pads 9-16" = "Pady 9-16"
+"Sequencer" = "Sekwencer"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "LYNX nie odtwarza sekwencera wzorców Drumaxx: graj na padach z Piano roll lub Channel rack"
+"Sub bass" = "Sub bas"
+"Var base" = "Wah. baza"
+"Sampling" = "Próbkow."
+"Var peak" = "Wah. szczyt"
+"Var slide" = "Wah. poślizg"
+"Var phase" = "Wah. faza"
+"Trig" = "Wyzwal."
+"Osc 1" = "Osc 1"
+"Osc 2" = "Osc 2"
+"Selected" = "Wybrany"
+"Num" = "Nr"
+"Morph to" = "Morf do"
+"Harm" = "Harm."
+"Lvl" = "Poz."
+"Hi-cut" = "Hi-cut"
+"Lo-cut" = "Lo-cut"
+"String 1" = "Struna 1"
+"String 2" = "Struna 2"
+"Resonators" = "Rezonatory"
+"Comb ratio" = "Stos. grzeb."
+"Saturate" = "Nasycenie"
+"Sharp" = "Ostrość"
+"Inv" = "Odwr."
+"Aid" = "Pomoc"
+"Coils" = "Cewki"
+"Pickup position" = "Pozycja przetwornika"
+"Playing" = "Gra"
+"Gliss" = "Gliss."
+"Bend 2" = "Bend 2"
+"Slap" = "Slap"
+"Fret" = "Próg"
+"Vel vol" = "Dyn. głośn."
+"Vel damp" = "Dyn. tłum."
+"Pres" = "Prez."
+"Fdbk" = "Sprz."
+"FX" = "FX"
+"Par 1" = "Par 1"
+"Par 2" = "Par 2"
+"(no kit name)" = "(brak nazwy zestawu)"
+"Pad {0}" = "Pad {0}"
+"(no noise sample)" = "(brak próbki szumu)"

+ 55 - 0
resources/i18n/pt-BR.txt

@@ -6442,3 +6442,58 @@ countries: br
 "Time L" = "Tempo E"
 "Time R" = "Tempo D"
 "Needs FL Studio's files" = "Precisa dos arquivos do FL Studio"
+"Amp decay" = "Decay amp"
+"Norm" = "Norm."
+"Widen" = "Alargar"
+"Mallet" = "Baqueta"
+"Membrane" = "Membrana"
+"Noise RP" = "Ruído RP"
+"Material" = "Material"
+"Freq mod" = "Mod freq"
+"Level mod" = "Mod nível"
+"Lo-fi" = "Lo-fi"
+"Pads 1-8" = "Pads 1-8"
+"Pads 9-16" = "Pads 9-16"
+"Sequencer" = "Sequenciador"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "O sequenciador de padrões do Drumaxx não é tocado pelo LYNX: toque os pads pelo Piano roll ou pelo Channel rack"
+"Sub bass" = "Subgrave"
+"Var base" = "Var. base"
+"Sampling" = "Amostragem"
+"Var peak" = "Var. pico"
+"Var slide" = "Var. slide"
+"Var phase" = "Var. fase"
+"Trig" = "Disparo"
+"Osc 1" = "Osc 1"
+"Osc 2" = "Osc 2"
+"Selected" = "Selecionado"
+"Num" = "Núm."
+"Morph to" = "Morph para"
+"Harm" = "Harm."
+"Lvl" = "Nív."
+"Hi-cut" = "Corte agudo"
+"Lo-cut" = "Corte grave"
+"String 1" = "Corda 1"
+"String 2" = "Corda 2"
+"Resonators" = "Ressonadores"
+"Comb ratio" = "Razão pente"
+"Saturate" = "Saturar"
+"Sharp" = "Nitidez"
+"Inv" = "Inv."
+"Aid" = "Auxílio"
+"Coils" = "Bobinas"
+"Pickup position" = "Posição do captador"
+"Playing" = "Execução"
+"Gliss" = "Gliss."
+"Bend 2" = "Bend 2"
+"Slap" = "Slap"
+"Fret" = "Traste"
+"Vel vol" = "Vel. vol"
+"Vel damp" = "Vel. amort."
+"Pres" = "Pres."
+"Fdbk" = "Realim."
+"FX" = "FX"
+"Par 1" = "Par 1"
+"Par 2" = "Par 2"
+"(no kit name)" = "(kit sem nome)"
+"Pad {0}" = "Pad {0}"
+"(no noise sample)" = "(sem amostra de ruído)"

+ 55 - 0
resources/i18n/ru.txt

@@ -6285,3 +6285,58 @@ countries: ru by kz
 "Time L" = "Время L"
 "Time R" = "Время R"
 "Needs FL Studio's files" = "Нужны файлы FL Studio"
+"Amp decay" = "Спад амп."
+"Norm" = "Норм."
+"Widen" = "Шире"
+"Mallet" = "Колотушка"
+"Membrane" = "Мембрана"
+"Noise RP" = "Шум RP"
+"Material" = "Материал"
+"Freq mod" = "Мод част."
+"Level mod" = "Мод ур."
+"Lo-fi" = "Lo-fi"
+"Pads 1-8" = "Пэды 1-8"
+"Pads 9-16" = "Пэды 9-16"
+"Sequencer" = "Секвенсор"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "LYNX не воспроизводит секвенсор паттернов Drumaxx: играйте пэды из Piano roll или Channel rack"
+"Sub bass" = "Саб-бас"
+"Var base" = "Вар. база"
+"Sampling" = "Сэмплинг"
+"Var peak" = "Вар. пик"
+"Var slide" = "Вар. слайд"
+"Var phase" = "Вар. фаза"
+"Trig" = "Триггер"
+"Osc 1" = "Осц 1"
+"Osc 2" = "Осц 2"
+"Selected" = "Выбрано"
+"Num" = "№"
+"Morph to" = "Морф в"
+"Harm" = "Гарм."
+"Lvl" = "Ур."
+"Hi-cut" = "Срез ВЧ"
+"Lo-cut" = "Срез НЧ"
+"String 1" = "Струна 1"
+"String 2" = "Струна 2"
+"Resonators" = "Резонаторы"
+"Comb ratio" = "Отн. гребня"
+"Saturate" = "Насыщение"
+"Sharp" = "Резкость"
+"Inv" = "Инв."
+"Aid" = "Помощь"
+"Coils" = "Катушки"
+"Pickup position" = "Позиция звукоснимателя"
+"Playing" = "Игра"
+"Gliss" = "Глисс."
+"Bend 2" = "Бенд 2"
+"Slap" = "Слэп"
+"Fret" = "Лад"
+"Vel vol" = "Скор. гр."
+"Vel damp" = "Скор. демпф."
+"Pres" = "През."
+"Fdbk" = "Обр. св."
+"FX" = "Эффект"
+"Par 1" = "Пар 1"
+"Par 2" = "Пар 2"
+"(no kit name)" = "(без имени набора)"
+"Pad {0}" = "Пэд {0}"
+"(no noise sample)" = "(нет сэмпла шума)"

+ 55 - 0
resources/i18n/tr.txt

@@ -6285,3 +6285,58 @@ countries: tr
 "Time L" = "Süre L"
 "Time R" = "Süre R"
 "Needs FL Studio's files" = "FL Studio dosyaları gerekli"
+"Amp decay" = "Amp sönüm"
+"Norm" = "Norm."
+"Widen" = "Genişlet"
+"Mallet" = "Tokmak"
+"Membrane" = "Zar"
+"Noise RP" = "Gürültü RP"
+"Material" = "Malzeme"
+"Freq mod" = "Frek mod"
+"Level mod" = "Seviye mod"
+"Lo-fi" = "Lo-fi"
+"Pads 1-8" = "Pad 1-8"
+"Pads 9-16" = "Pad 9-16"
+"Sequencer" = "Sıralayıcı"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "Drumaxx'in desen sıralayıcısı LYNX tarafından çalınmaz: pad'leri Piano roll veya Channel rack'ten çalın"
+"Sub bass" = "Alt bas"
+"Var base" = "Değ. taban"
+"Sampling" = "Örnekleme"
+"Var peak" = "Değ. tepe"
+"Var slide" = "Değ. kayma"
+"Var phase" = "Değ. faz"
+"Trig" = "Tetik"
+"Osc 1" = "Osc 1"
+"Osc 2" = "Osc 2"
+"Selected" = "Seçili"
+"Num" = "No."
+"Morph to" = "Morph hedefi"
+"Harm" = "Harm."
+"Lvl" = "Svy"
+"Hi-cut" = "Tiz kesme"
+"Lo-cut" = "Bas kesme"
+"String 1" = "Tel 1"
+"String 2" = "Tel 2"
+"Resonators" = "Rezonatörler"
+"Comb ratio" = "Tarak oranı"
+"Saturate" = "Doygunluk"
+"Sharp" = "Keskin"
+"Inv" = "Ters"
+"Aid" = "Yardım"
+"Coils" = "Bobinler"
+"Pickup position" = "Manyetik konumu"
+"Playing" = "Çalış"
+"Gliss" = "Gliss."
+"Bend 2" = "Bend 2"
+"Slap" = "Slap"
+"Fret" = "Perde"
+"Vel vol" = "Vel ses"
+"Vel damp" = "Vel sönüm"
+"Pres" = "Pres"
+"Fdbk" = "Geri bes."
+"FX" = "FX"
+"Par 1" = "Par 1"
+"Par 2" = "Par 2"
+"(no kit name)" = "(kit adı yok)"
+"Pad {0}" = "Pad {0}"
+"(no noise sample)" = "(gürültü örneği yok)"

+ 55 - 0
resources/i18n/zh-Hans.txt

@@ -6285,3 +6285,58 @@ countries: cn sg
 "Time L" = "时间 L"
 "Time R" = "时间 R"
 "Needs FL Studio's files" = "需要 FL Studio 的文件"
+"Amp decay" = "音量衰减"
+"Norm" = "标准化"
+"Widen" = "加宽"
+"Mallet" = "槌头"
+"Membrane" = "鼓膜"
+"Noise RP" = "噪声 RP"
+"Material" = "材质"
+"Freq mod" = "频率调制"
+"Level mod" = "电平调制"
+"Lo-fi" = "低保真"
+"Pads 1-8" = "打击垫 1-8"
+"Pads 9-16" = "打击垫 9-16"
+"Sequencer" = "音序器"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "LYNX 不播放 Drumaxx 的模式音序器:请从 Piano roll 或 Channel rack 演奏打击垫"
+"Sub bass" = "超低音"
+"Var base" = "变化 基础"
+"Sampling" = "采样"
+"Var peak" = "变化 峰值"
+"Var slide" = "变化 滑音"
+"Var phase" = "变化 相位"
+"Trig" = "触发"
+"Osc 1" = "振荡器 1"
+"Osc 2" = "振荡器 2"
+"Selected" = "已选"
+"Num" = "编号"
+"Morph to" = "变形到"
+"Harm" = "谐波"
+"Lvl" = "电平"
+"Hi-cut" = "高切"
+"Lo-cut" = "低切"
+"String 1" = "弦 1"
+"String 2" = "弦 2"
+"Resonators" = "共鸣器"
+"Comb ratio" = "梳状比"
+"Saturate" = "饱和"
+"Sharp" = "锐度"
+"Inv" = "反相"
+"Aid" = "辅助"
+"Coils" = "线圈"
+"Pickup position" = "拾音器位置"
+"Playing" = "演奏"
+"Gliss" = "滑奏"
+"Bend 2" = "弯音 2"
+"Slap" = "拍弦"
+"Fret" = "品格"
+"Vel vol" = "力度音量"
+"Vel damp" = "力度阻尼"
+"Pres" = "临场"
+"Fdbk" = "反馈"
+"FX" = "效果"
+"Par 1" = "参数 1"
+"Par 2" = "参数 2"
+"(no kit name)" = "(无套件名称)"
+"Pad {0}" = "打击垫 {0}"
+"(no noise sample)" = "(无噪声采样)"

+ 55 - 0
resources/i18n/zh-Hant.txt

@@ -6285,3 +6285,58 @@ countries: tw hk mo
 "Time L" = "時間 L"
 "Time R" = "時間 R"
 "Needs FL Studio's files" = "需要 FL Studio 的檔案"
+"Amp decay" = "音量衰減"
+"Norm" = "標準化"
+"Widen" = "加寬"
+"Mallet" = "槌頭"
+"Membrane" = "鼓膜"
+"Noise RP" = "雜訊 RP"
+"Material" = "材質"
+"Freq mod" = "頻率調變"
+"Level mod" = "電平調變"
+"Lo-fi" = "低保真"
+"Pads 1-8" = "打擊墊 1-8"
+"Pads 9-16" = "打擊墊 9-16"
+"Sequencer" = "音序器"
+"Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack" = "LYNX 不播放 Drumaxx 的模式音序器:請從 Piano roll 或 Channel rack 演奏打擊墊"
+"Sub bass" = "超低音"
+"Var base" = "變化 基礎"
+"Sampling" = "取樣"
+"Var peak" = "變化 峰值"
+"Var slide" = "變化 滑音"
+"Var phase" = "變化 相位"
+"Trig" = "觸發"
+"Osc 1" = "振盪器 1"
+"Osc 2" = "振盪器 2"
+"Selected" = "已選"
+"Num" = "編號"
+"Morph to" = "變形到"
+"Harm" = "諧波"
+"Lvl" = "電平"
+"Hi-cut" = "高切"
+"Lo-cut" = "低切"
+"String 1" = "弦 1"
+"String 2" = "弦 2"
+"Resonators" = "共鳴器"
+"Comb ratio" = "梳狀比"
+"Saturate" = "飽和"
+"Sharp" = "銳度"
+"Inv" = "反相"
+"Aid" = "輔助"
+"Coils" = "線圈"
+"Pickup position" = "拾音器位置"
+"Playing" = "演奏"
+"Gliss" = "滑奏"
+"Bend 2" = "彎音 2"
+"Slap" = "拍弦"
+"Fret" = "品格"
+"Vel vol" = "力度音量"
+"Vel damp" = "力度阻尼"
+"Pres" = "臨場"
+"Fdbk" = "回授"
+"FX" = "效果"
+"Par 1" = "參數 1"
+"Par 2" = "參數 2"
+"(no kit name)" = "(無套件名稱)"
+"Pad {0}" = "打擊墊 {0}"
+"(no noise sample)" = "(無雜訊取樣)"

+ 1 - 1
scripts/build-local.sh

@@ -41,7 +41,7 @@ CORE="$CORE src/core/ThemePalette.cpp"
 # layouts of the native plugin editors (round 93)
 CORE="$CORE src/core/PluginLayout.cpp src/core/StateParams.cpp"
 # the drum / physical-model generators' controls and LYNX bank states (round 168p)
-CORE="$CORE src/core/DrumControls.cpp src/core/BankStates.cpp"
+CORE="$CORE src/core/DrumControls.cpp src/core/BankStates.cpp src/core/DrumBanks.cpp"
 # spectral waveforms (band analysis, multi-resolution peak cache)
 CORE="$CORE src/core/WaveAnalysis.cpp"
 # FL's Plucked!, Sawer and BeepMap engines (REA round 65)

+ 1 - 1
scripts/build-windows-zig.sh

@@ -105,7 +105,7 @@ APP_SOURCES=(src/Main.cpp
              src/platform/MingwFixes.cpp)
 
 # workflow shell: core (key map, workspace layout, rack operations) and UI (workspace desktop, control contract)
-APP_SOURCES+=(src/core/DrumControls.cpp src/core/BankStates.cpp)
+APP_SOURCES+=(src/core/DrumControls.cpp src/core/BankStates.cpp src/core/DrumBanks.cpp)
 APP_SOURCES+=(src/core/KeyMap.cpp src/core/PresetCycle.cpp src/core/Sfz.cpp src/core/Workspace.cpp src/core/RackOps.cpp src/core/ChannelMiscFx.cpp src/core/MidiImport.cpp src/ui/Workspace.cpp src/ui/ValueControl.cpp src/ui/Dialogs.cpp)
 # Wave Traveller (round 167f)
 APP_SOURCES+=(src/core/WaveTraveller.cpp src/ui/WaveTravellerEditor.cpp)

+ 31 - 1
src/core/BankStates.cpp

@@ -1,6 +1,7 @@
 #include "core/BankStates.h"
 
 #include <algorithm>
+#include <cmath>
 #include <cstring>
 
 #include "core/DrumSynthLive.h"
@@ -124,7 +125,7 @@ std::vector<float> drumSynthParams (const std::vector<DrumSynthPatch>& patches)
     return m;
 }
 
-std::optional<ChannelDef> channelFor (const std::string& kind, const std::vector<float>& v)
+std::optional<ChannelDef> channelFor (const std::string& kind, const std::vector<float>& v, const std::string& name)
 {
     ChannelDef def;
     auto ints = [&v] {
@@ -154,6 +155,35 @@ std::optional<ChannelDef> channelFor (const std::string& kind, const std::vector
         def.modelParams.assign ((std::size_t) sakuraParamCount, 0.0f);
         std::copy (v.begin(), v.begin() + 114, def.modelParams.begin());
     }
+    else if (kind == "drumaxx" && ! v.empty() && v.size() % 41 == 0)
+    {
+        // per pad: key, volume, pan, the 38 voice values (Drumpad's)
+        std::vector<DrumaxxPad> pads;
+        for (std::size_t at = 0; at + 41 <= v.size() && pads.size() < 16; at += 41)
+        {
+            DrumaxxPad pad;
+            pad.key = (int) v[at], pad.volume = v[at + 1], pad.pan = v[at + 2];
+            pad.voice.assign (v.begin() + (long) at + 3, v.begin() + (long) at + 41);
+            pads.push_back (pad);
+        }
+        def.instrument = InstrumentKind::drumaxx;
+        def.pluginState = drumaxxState (name.empty() ? std::string ("LYNX") : name, pads);
+    }
+    else if (kind == "drumsynth" && ! v.empty() && v.size() % 39 == 0)
+    {
+        // per patch: key, the 38 patch integers
+        std::vector<DrumSynthPatch> patches;
+        for (std::size_t at = 0; at + 39 <= v.size(); at += 39)
+        {
+            DrumSynthPatch patch;
+            patch.key = (int) v[at];
+            for (std::size_t i = 0; i < 38; ++i)
+                patch.values.push_back ((int) std::lround (v[at + 1 + i]));
+            patches.push_back (patch);
+        }
+        def.instrument = InstrumentKind::drumsynth;
+        def.modelParams = drumSynthParams (patches);
+    }
     else
         return std::nullopt;
     return def;

+ 1 - 1
src/core/BankStates.h

@@ -42,5 +42,5 @@ std::vector<float> drumSynthParams (const std::vector<DrumSynthPatch>& patches);
 
 // A channel of `kind` ("fruitkick", "plucked", "drumpad", "sakura") from a list of parameter values (the bank audit
 // tool's text format); nullopt for another kind or too few values.
-std::optional<ChannelDef> channelFor (const std::string& kind, const std::vector<float>& values);
+std::optional<ChannelDef> channelFor (const std::string& kind, const std::vector<float>& values, const std::string& name = {});
 } // namespace lynx::bankstates

+ 42 - 0
src/core/BassDrum.cpp

@@ -3,6 +3,8 @@
 // engine's own CRT powf/sincosf algorithms where their last bits matter, and long double for FL's x87 pan law.
 
 #include "core/BassDrum.h"
+#include "core/DrumParamRanges.h"
+#include "core/EngineParams.h"
 #include "core/HostSlide.h"
 
 #include <algorithm>
@@ -392,6 +394,13 @@ public:
 
     float param (int i) const { return std::clamp (patch.P[i], 0.0f, 1.0f); }
 
+    // a live knob change (round 168p): the voices read the knobs as they render
+    void setParam (int i, float v)
+    {
+        if (i >= 0 && i < 23)
+            patch.P[i] = v;
+    }
+
     void noteOn (int note, int vel7)
     {
         vel[note] = (float) vel7 * 0.00787401572f;
@@ -842,11 +851,37 @@ public:
         pitchCents.store (channel.sampler.pitch * 100.0f);
         if (channel.pluginState == state && channel.samplePath == dir)
             return;
+        // a knob turned on the page (round 168p): only the 23 knobs differ → the running engine takes them
+        constexpr std::size_t knobs = 0x50C, knobsEnd = 0x50C + 23 * 4;
+        if (channel.samplePath == dir && builtPlugin && incoming.load() == nullptr && channel.pluginState.size() == state.size()
+            && state.size() >= knobsEnd && std::memcmp (state.data(), channel.pluginState.data(), knobs) == 0
+            && std::memcmp (state.data() + knobsEnd, channel.pluginState.data() + knobsEnd, state.size() - knobsEnd) == 0
+            && liveParams.space() >= 23)
+        {
+            for (int i = 0; i < 23; ++i)
+                if (std::memcmp (state.data() + knobs + 4 * i, channel.pluginState.data() + knobs + 4 * i, 4) != 0)
+                {
+                    float v = 0.0f;
+                    std::memcpy (&v, channel.pluginState.data() + knobs + 4 * i, 4);
+                    liveParams.push (i, v);
+                }
+            state = channel.pluginState;
+            return;
+        }
         state = channel.pluginState;
         dir = channel.samplePath;
         rebuild();
     }
 
+    // automation (round 168p): the clip's 0…1 over the knob's range
+    void setParameter (int index, float value) noexcept override
+    {
+        take();
+        const auto r = drumranges::bassDrum (index);
+        if (plugin != nullptr && r.valid && std::isfinite (value))
+            plugin->eng.setParam (index, r.raw (value));
+    }
+
     void setNextNoteExpression (float pan, float cents, bool) noexcept override
     {
         nextPan = pan;
@@ -936,6 +971,7 @@ private:
                 if (pl->eng.init (p, table, noise, s->rate))
                     s->plugin = std::move (pl);
             }
+            builtPlugin = s->plugin != nullptr;
             delete incoming.exchange (s.release());
         }
         catch (...)
@@ -954,9 +990,15 @@ private:
             plugin = current->plugin.get();
             if (plugin != nullptr)
                 plugin->setLevels (channelVol, channelPan, notePan);
+            liveParams.clear(); // (built from the newest state)
         }
+        if (plugin != nullptr)
+            liveParams.drain ([this] (int i, float v) { plugin->eng.setParam (i, v); });
     }
 
+    LiveParamQueue liveParams;
+    bool builtPlugin = false; // (UI side: the last rebuild made a running engine)
+
     Setup* current = nullptr;
     Plugin* plugin = nullptr;
     std::atomic<Setup*> incoming { nullptr }, retired { nullptr };

+ 294 - 0
src/core/DrumBanks.cpp

@@ -0,0 +1,294 @@
+// LYNX's own preset banks of the drum and physical-model generators (round 168p): Fruit Kick, Plucked!, Drumpad, Sakura,
+// Drumaxx and Fruity DrumSynth Live. Designed for LYNX from the engines' documented laws (docs/analise/REA_rodada28,
+// REA_rodada30, REA_rodada43, REA_rodada168p) and checked by rendering (tools/bankaudit): no preset is silent or clips,
+// each plays at a plausible pitch and length. Clean-room: none is converted from FL's preset files.
+// Generated by the round's design script; edit the values here.
+
+#include "core/BankStates.h"
+#include "core/LynxBanks.h"
+
+#include <cctype>
+
+namespace lynx::banks
+{
+namespace
+{
+std::vector<std::string> tagsOf (const std::string& category, std::initializer_list<const char*> more)
+{
+    std::vector<std::string> tags { category };
+    for (auto& c : tags.front())
+        c = (char) std::tolower ((unsigned char) c);
+    for (const auto* t : more)
+        tags.emplace_back (t);
+    return tags;
+}
+
+// a channel of `kind` from the round's value lists (core/BankStates channelFor): the instrument's sound only
+Preset make (const char* kind, const char* category, const char* name, std::vector<float> values, std::initializer_list<const char*> tags)
+{
+    return { name, category, tagsOf (category, tags), [k = std::string (kind), v = std::move (values),
+        n = std::string (name)] (ChannelDef& c) {
+                 if (auto d = bankstates::channelFor (k, v, n))
+                 {
+                     c.pluginState = d->pluginState;
+                     c.modelParams = d->modelParams;
+                 }
+             } };
+}
+} // namespace
+
+std::vector<Preset> fruitKickBank()
+{
+    std::vector<Preset> b;
+    b.push_back (make ("fruitkick", "Kick", "Init", { 0, -600, 64, 128, 32, 0 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Deep 808", { -1200, -850, 110, 200, 0, 0 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Punchy House", { 0, -465, 64, 120, 32, 10 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Tight Techno", { 300, -300, 48, 96, 48, 30 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Boom Bap", { -600, -650, 128, 165, 16, 0 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Clicky Trance", { 1200, -300, 40, 100, 64, 20 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Hardstyle Drive", { 600, -400, 80, 150, 40, 110 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Short Electro", { 0, -150, 56, 70, 40, 40 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Sub Thump", { -2400, -1000, 150, 150, 0, 0 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Room Rock", { -300, -300, 72, 90, 60, 15 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Dub Long", { -1800, -850, 180, 215, 0, 5 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Gabber", { 900, -500, 60, 160, 64, 128 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Kick", "Lo-Fi Knock", { -900, -200, 60, 80, 20, 60 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Perc", "Low Tom", { -1200, 200, 180, 120, 8, 0 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "Perc", "High Tom", { -600, 800, 190, 110, 8, 0 }, { "kick", "analog" }));
+    b.push_back (make ("fruitkick", "FX", "Laser Zap", { 3000, -1200, 170, 110, 0, 0 }, { "kick", "analog" }));
+    return b;
+}
+
+std::vector<Preset> pluckedBank()
+{
+    std::vector<Preset> b;
+    b.push_back (make ("plucked", "Pluck", "Init", { 128, 64, 1, 0, 1 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "Pluck", "Nylon", { 150, 40, 1, 0, 1 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "Pluck", "Bright Steel", { 190, 100, 1, 0, 1 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "Pluck", "Harp", { 220, 70, 1, 0, 1 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "Pluck", "Koto", { 120, 90, 1, 0, 0 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "Pluck", "Muted Pick", { 60, 50, 1, 1, 0 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "Bass", "Dark Bass", { 140, 15, 0, 0, 0 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "Keys", "Kalimba", { 100, 10, 1, 0, 0 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "Pad", "Wide Shimmer", { 240, 120, 1, 0, 1 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "Pluck", "Staccato", { 90, 80, 1, 1, 1 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "Pluck", "Lute", { 170, 55, 1, 0, 0 }, { "string", "pluck" }));
+    b.push_back (make ("plucked", "FX", "Noise Burst", { 30, 128, 0, 1, 1 }, { "string", "pluck" }));
+    return b;
+}
+
+std::vector<Preset> drumpadBank()
+{
+    std::vector<Preset> b;
+    b.push_back (make ("drumpad", "Init", "Init", { 0, 0, 0.38f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f,
+        0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 1, 0, 0, 0, 0.5f, 0, 0, 0 }, { "drum", "physical" }));
+    b.push_back (make ("drumpad", "Kick", "Round Kick", { 0, 0, 0.88f, 0.45f, 0.05f, 0, 0.86f, 0.55f, 0.2f, 0.5f, 0.5f, 0.68f, 0.02f, 0,
+        0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.45f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Kick", "Deep Floor", { 0, 0, 0.88f, 0.5f, 0.02f, 0, 0.9f, 0.45f, 0.1f, 0.5f, 0.5f, 0.82f, 0.03f, 0,
+        0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.55f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Tom", "Low Tom", { 0, 0, 0.88f, 0.4f, 0.1f, 0, 0.88f, 0.6f, 0.3f, 0.5f, 0.5f, 0.42f, 0.04f, 0, 0.5f,
+        0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.45f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Tom", "High Tom", { 0, 0, 0.88f, 0.4f, 0.1f, 0, 0.86f, 0.65f, 0.3f, 0.5f, 0.5f, 0.28f, 0.04f, 0, 0.5f,
+        0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.4f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Snare", "Body Snare", { 0, 0, 0.88f, 0.3f, 0.85f, 0, 0.7f, 0.7f, 0.6f, 0.5f, 0.6f, 0.2f, 0.55f, 0,
+        0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.6f, 0.65f, 0.5f, 0, 0.3f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Snare", "Rim Knock", { 0, 0, 0.88f, 0.15f, 0.3f, 0, 0.55f, 0.85f, 0.7f, 0.5f, 0.5f, 0.07f, 0.1f, 0,
+        0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.12f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Hand", "Conga", { 0, 0, 0.88f, 0.35f, 0.15f, 0, 0.9f, 0.7f, 0.45f, 0.3f, 0.5f, 0.2f, 0.05f, 0, 0.5f,
+        0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Hand", "Bongo", { 0, 0, 0.88f, 0.3f, 0.12f, 0, 0.86f, 0.75f, 0.5f, 0.3f, 0.5f, 0.12f, 0.05f, 0, 0.5f,
+        0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.35f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Hand", "Tabla Ring", { 0, 0, 0.88f, 0.45f, 0.05f, 0, 0.95f, 0.8f, 0.5f, 0.5f, 0.5f, 0.16f, 0.02f, 0,
+        0.5f, 0.5f, 0.5f, 0, 0.55f, 0.6f, 0.5f, 0.62f, 0.5f, 0.4f, 0.5f, 0.5f, 0.5f, 0, 0.6f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "HiHat", "Closed Hat", { 0, 0, 0.88f, 0.2f, 1, 0, 0.5f, 0.95f, 0.5f, 0.5f, 0.5f, 0.01f, 1, 0.6f, 0.5f,
+        0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.7f, 0.5f, 0, 0.18f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "HiHat", "Open Hat", { 0, 0, 0.88f, 0.2f, 1, 0, 0.75f, 0.95f, 0.5f, 0.5f, 0.5f, 0.01f, 1, 0.62f, 0.5f,
+        0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.7f, 0.5f, 0, 0.5f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Perc", "Wood Block", { 0, 0, 0.88f, 0.1f, 0.05f, 0, 0.7f, 0.9f, 0.5f, 0.5f, 0.5f, 0.05f, 0.02f, 0.3f,
+        0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.2f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Perc", "Metal Clank", { 0, 0, 0.88f, 0.2f, 0.2f, 0, 0.93f, 0.9f, 0.9f, 0.5f, 0.8f, 0.09f, 0.35f, 0.4f,
+        0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.55f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "Perc", "Cowbell Tone", { 0, 0, 0.88f, 0.25f, 0, 0, 0.92f, 0.9f, 0.15f, 0.5f, 0.5f, 0.07f, 0.03f,
+        0.35f, 0.5f, 0.5f, 0.5f, 0, 0.62f, 0.65f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.35f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 },
+        { "drum", "physical" }));
+    b.push_back (make ("drumpad", "FX", "Lo-Fi Thud", { 0, 0, 0.88f, 0.45f, 0.3f, 0, 0.85f, 0.5f, 0.5f, 0.5f, 0.5f, 0.55f, 0.08f, 0,
+        0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.55f, 0.4f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    b.push_back (make ("drumpad", "FX", "Laser Tom", { 0, 0, 0.88f, 0.4f, 0, 0, 0.92f, 0.6f, 0.5f, 0.5f, 0.5f, 0.3f, 0.02f, 0, 0.5f,
+        0.75f, 0.35f, 0.8f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "drum",
+        "physical" }));
+    return b;
+}
+
+std::vector<Preset> sakuraBank()
+{
+    std::vector<Preset> b;
+    b.push_back (make ("sakura", "Init", "Init", { 0.42f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0, 0, 0,
+        0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0, 3, 0,
+        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Pluck", "Nylon Strings", { 0.42f, 0.5f, 0.15f, 0.6f, 0, 0.45f, 0.62f, 0, 0.5f, 0.45f, 0.5f, 0.55f, 0,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.35f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.55f, 0.5f, 0.95f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0,
+        0, 0, 0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0,
+        3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Pluck", "Steel Pluck", { 0.42f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.7f, 0, 0.5f, 0.25f, 0.5f, 0.66f, 0,
+        0.5f, 0.3f, 0.5f, 0.5f, 0.45f, 0.7f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.75f, 0.5f, 0.9f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0,
+        0, 0, 0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0,
+        3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Pluck", "Harp Glass", { 0.42f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.72f, 0, 0.5f, 0.2f, 0.5f, 0.7f, 0,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.7f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0,
+        0, 0, 0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 1, 0.3f, 0.4f, 0.3f, 1, 0.3f, 0.6f, 0.6f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0,
+        3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Pluck", "Koto Bend", { 0.42f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.6f, 0, 0.5f, 0.35f, 0.5f, 0.5f, 0,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.3f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.65f, 0.5f, 0.85f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.35f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0,
+        0, 0, 0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0,
+        3, 2, 0.25f, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Bass", "Fretless Bass", { 0.45f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.66f, 0, 0.5f, 0.6f, 0.5f, 0.6f, 0,
+        0.5f, 0.65f, 0.5f, 0.5f, 0.3f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.4f, 0.5f, 0.98f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0,
+        0, 0, 0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0,
+        3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0.34f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Bass", "Picked Bass", { 0.45f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.6f, 0, 0.5f, 0.4f, 0.5f, 0.55f, 0,
+        0.5f, 0.5f, 0.5f, 0.35f, 0.4f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.6f, 0.5f, 0.8f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0,
+        0, 0, 0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0,
+        3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0.34f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Keys", "Dulcimer", { 0.42f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.74f, 0, 0.5f, 0.2f, 0.5f, 0.72f, 0,
+        0.5f, 0.2f, 0.5f, 0.5f, 0.5f, 0.8f, 0.3f, 0.5f, 0, 0.4f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.8f, 0.5f, 0.8f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0,
+        0, 0, 0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0,
+        3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Keys", "Toy Piano", { 0.42f, 0.5f, 0.15f, 0.45f, 0, 0.45f, 0.55f, 0, 0.5f, 0.3f, 0.5f, 0.6f, 0, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.85f, 0.5f, 0.92f, 0.5f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0, 0, 0,
+        0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0, 3, 0,
+        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0.67f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Keys", "Music Box", { 0.42f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.7f, 0, 0.5f, 0.15f, 0.5f, 0.7f, 0,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.9f, 0.5f, 1, 0.5f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0, 0, 0,
+        0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 1, 0.35f, 0.55f, 0.7f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0, 3,
+        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.67f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Pad", "Bowed Air", { 0.42f, 0.5f, 0.55f, 0.55f, 0.6f, 0.6f, 0.8f, 0, 0.5f, 0.3f, 0.5f, 0.78f, 0, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.1f, 0.6f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.3f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0, 0, 0,
+        0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 1, 0.25f, 0.5f, 0.4f, 1, 0.4f, 0.75f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0, 3,
+        2, 0.15f, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Pad", "Sitar Drone", { 0.42f, 0.5f, 0.15f, 0.55f, 0.6f, 0.6f, 0.82f, 0, 0.5f, 0.1f, 0.5f, 0.8f, 0,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.55f, 0.8f, 0.55f, 0.6f, 0, 0.6f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.8f, 0.5f, 0.75f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0,
+        0, 0, 0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0,
+        3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Lead", "Overdrive String", { 0.36f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.72f, 0, 0.5f, 0.25f, 0.5f, 0.7f,
+        0, 0.5f, 0.5f, 0.5f, 0.65f, 0.45f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.7f, 0.5f, 0.85f, 0.5f, 0.4f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0,
+        0, 0, 0, 0, 0, 0, 0, 1, 0.4f, 0.3f, 0.5f, 0.5f, 0.5f, 0.25f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4,
+        0.45f, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Lead", "Echo Pluck", { 0.42f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.66f, 0, 0.5f, 0.3f, 0.5f, 0.62f, 0,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.4f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.7f, 0.5f, 0.88f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0,
+        0, 0, 0, 0, 0, 1, 0.5f, 0.45f, 0.5f, 0.5f, 0.3f, 0.35f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f,
+        0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "Perc", "Steel Drum", { 0.42f, 0.5f, 0.15f, 0.5f, 0, 0.45f, 0.62f, 0, 0.5f, 0.2f, 0.5f, 0.6f, 0, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.4f, 0.5f, 0, 0.55f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.75f, 0.5f, 1, 0.5f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0, 0, 0,
+        0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0, 3, 0,
+        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0.5f }, { "string", "physical" }));
+    b.push_back (make ("sakura", "FX", "Resonant Chimes", { 0.42f, 0.5f, 0.15f, 0.55f, 0.6f, 0.45f, 0.75f, 0, 0.5f, 0.5f, 0.5f, 0.75f, 0,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.85f, 0.5f, 0.9f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0, 0,
+        0, 0, 0, 0, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 1, 0.5f, 0.8f, 0.7f, 0.5f, 6, 0.6f, 0, 1, 4, 0.45f, 0,
+        3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.5f }, { "string", "physical" }));
+    return b;
+}
+
+std::vector<Preset> drumaxxBank()
+{
+    std::vector<Preset> b;
+    b.push_back (make ("drumaxx", "Kit", "Acoustic Mesh", { 36, 0.85f, 0.5f, 0, 0, 0.88f, 0.45f, 0.05f, 0, 0.86f, 0.55f, 0.2f, 0.5f,
+        0.5f, 0.68f, 0.02f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.45f, 0.5f, 1, 0, 0, 0, 1,
+        0, 0, 0, 37, 0.7f, 0.52f, 0, 0, 0.88f, 0.3f, 0.85f, 0, 0.7f, 0.7f, 0.6f, 0.5f, 0.6f, 0.2f, 0.55f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.6f, 0.65f, 0.5f, 0, 0.3f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 38, 0.5f, 0.6f, 0, 0, 0.88f, 0.2f, 1, 0,
+        0.5f, 0.95f, 0.5f, 0.5f, 0.5f, 0.01f, 1, 0.6f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.7f, 0.5f, 0,
+        0.18f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 39, 0.45f, 0.6f, 0, 0, 0.88f, 0.2f, 1, 0, 0.75f, 0.95f, 0.5f, 0.5f, 0.5f, 0.01f, 1, 0.62f,
+        0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.7f, 0.5f, 0, 0.5f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 40, 0.7f, 0.4f,
+        0, 0, 0.88f, 0.4f, 0.1f, 0, 0.88f, 0.6f, 0.3f, 0.5f, 0.5f, 0.42f, 0.04f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0, 0.45f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 41, 0.65f, 0.6f, 0, 0, 0.88f, 0.4f, 0.1f, 0, 0.86f, 0.65f, 0.3f,
+        0.5f, 0.5f, 0.28f, 0.04f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.4f, 0.5f, 1, 0, 0,
+        0, 1, 0, 0, 0, 42, 0.55f, 0.5f, 0, 0, 0.88f, 0.15f, 0.3f, 0, 0.55f, 0.85f, 0.7f, 0.5f, 0.5f, 0.07f, 0.1f, 0, 0.5f, 0.5f, 0.5f, 0,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.12f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 43, 0.5f, 0.45f, 0, 0, 0.88f, 0.1f,
+        0.05f, 0, 0.7f, 0.9f, 0.5f, 0.5f, 0.5f, 0.05f, 0.02f, 0.3f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0, 0.2f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "kit", "physical" }));
+    b.push_back (make ("drumaxx", "Kit", "Hand Percussion", { 36, 0.75f, 0.4f, 0, 0, 0.88f, 0.35f, 0.15f, 0, 0.9f, 0.7f, 0.45f, 0.3f,
+        0.5f, 0.2f, 0.05f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 1, 0, 0, 0, 1, 0,
+        0, 0, 37, 0.7f, 0.6f, 0, 0, 0.88f, 0.3f, 0.12f, 0, 0.86f, 0.75f, 0.5f, 0.3f, 0.5f, 0.12f, 0.05f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.35f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 38, 0.7f, 0.5f, 0, 0, 0.88f, 0.45f,
+        0.05f, 0, 0.95f, 0.8f, 0.5f, 0.5f, 0.5f, 0.16f, 0.02f, 0, 0.5f, 0.5f, 0.5f, 0, 0.55f, 0.6f, 0.5f, 0.62f, 0.5f, 0.4f, 0.5f, 0.5f,
+        0.5f, 0, 0.6f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 39, 0.55f, 0.45f, 0, 0, 0.88f, 0.1f, 0.05f, 0, 0.7f, 0.9f, 0.5f, 0.5f, 0.5f, 0.05f,
+        0.02f, 0.3f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.2f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0,
+        40, 0.5f, 0.55f, 0, 0, 0.88f, 0.25f, 0, 0, 0.92f, 0.9f, 0.15f, 0.5f, 0.5f, 0.07f, 0.03f, 0.35f, 0.5f, 0.5f, 0.5f, 0, 0.62f,
+        0.65f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.35f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 41, 0.4f, 0.65f, 0, 0, 0.88f, 0.2f, 1,
+        0, 0.5f, 0.95f, 0.5f, 0.5f, 0.5f, 0.01f, 1, 0.6f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.7f, 0.5f, 0,
+        0.18f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 42, 0.75f, 0.5f, 0, 0, 0.88f, 0.5f, 0.02f, 0, 0.9f, 0.45f, 0.1f, 0.5f, 0.5f, 0.82f, 0.03f,
+        0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.55f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 43, 0.45f,
+        0.4f, 0, 0, 0.88f, 0.2f, 0.2f, 0, 0.93f, 0.9f, 0.9f, 0.5f, 0.8f, 0.09f, 0.35f, 0.4f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.55f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "kit", "physical" }));
+    b.push_back (make ("drumaxx", "Kit", "Industrial", { 36, 0.85f, 0.5f, 0, 0, 0.88f, 0.5f, 0.02f, 0, 0.9f, 0.45f, 0.1f, 0.5f, 0.5f,
+        0.82f, 0.03f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.55f, 0.5f, 1, 0, 0, 0, 1, 0, 0,
+        0, 37, 0.6f, 0.45f, 0, 0, 0.88f, 0.2f, 0.2f, 0, 0.93f, 0.9f, 0.9f, 0.5f, 0.8f, 0.09f, 0.35f, 0.4f, 0.5f, 0.5f, 0.5f, 0, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.55f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 38, 0.7f, 0.55f, 0, 0, 0.88f, 0.45f,
+        0.3f, 0, 0.85f, 0.5f, 0.5f, 0.5f, 0.5f, 0.55f, 0.08f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.55f, 0.4f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 39, 0.5f, 0.6f, 0, 0, 0.88f, 0.2f, 1, 0, 0.5f, 0.95f, 0.5f, 0.5f, 0.5f, 0.01f,
+        1, 0.6f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.7f, 0.5f, 0, 0.18f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 40,
+        0.6f, 0.4f, 0, 0, 0.88f, 0.4f, 0, 0, 0.92f, 0.6f, 0.5f, 0.5f, 0.5f, 0.3f, 0.02f, 0, 0.5f, 0.75f, 0.35f, 0.8f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 41, 0.55f, 0.5f, 0, 0, 0.88f, 0.15f, 0.3f, 0, 0.55f,
+        0.85f, 0.7f, 0.5f, 0.5f, 0.07f, 0.1f, 0, 0.5f, 0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0, 0.12f,
+        0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 42, 0.45f, 0.6f, 0, 0, 0.88f, 0.2f, 1, 0, 0.75f, 0.95f, 0.5f, 0.5f, 0.5f, 0.01f, 1, 0.62f, 0.5f,
+        0.5f, 0.5f, 0, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.5f, 0.7f, 0.5f, 0, 0.5f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0, 43, 0.5f, 0.5f, 0, 0,
+        0.88f, 0.25f, 0, 0, 0.92f, 0.9f, 0.15f, 0.5f, 0.5f, 0.07f, 0.03f, 0.35f, 0.5f, 0.5f, 0.5f, 0, 0.62f, 0.65f, 0.5f, 0.5f, 0.5f,
+        0.5f, 0.5f, 0.5f, 0.5f, 0, 0.35f, 0.5f, 1, 0, 0, 0, 1, 0, 0, 0 }, { "kit", "physical" }));
+    return b;
+}
+
+std::vector<Preset> drumSynthBank()
+{
+    std::vector<Preset> b;
+    b.push_back (make ("drumsynth", "Kit", "Analog Kit", { 48, 100, 0, 0, 0, 170, 96, 40, 84, 80, 64, 500, 64, 0, 64, 0, -1, 0, 64, 0,
+        64, 64, 64, 0, 20, 1, 0, 8, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 50, 100, 0, 0, 0, 330, 80, 30, 58, 62, 40, 640, 90, 0, 62, 76, -1,
+        0, 64, 0, 64, 64, 64, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 51, 100, 0, 0, 0, 0, 64, 64, 64, 0, 64, 600, 80, 0, 50,
+        84, -1, 0, 64, 3, 22, 30, 64, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 52, 100, 8, 0, 0, 500, 64, 64, 64, 0, 64, 880,
+        110, 0, 34, 78, -1, 0, 64, 0, 64, 64, 64, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 54, 100, 8, 0, 0, 500, 64, 64, 64, 0,
+        64, 860, 110, 0, 66, 72, -1, 0, 64, 0, 64, 64, 64, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 53, 100, 0, 0, 0, 260, 90,
+        45, 74, 74, 64, 500, 64, 0, 64, 0, -1, 0, 64, 0, 64, 64, 64, 0, 10, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 55, 100, 0, 0, 0,
+        320, 90, 45, 70, 72, 64, 500, 64, 0, 64, 0, -1, 0, 64, 0, 64, 64, 64, 0, 10, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 56, 100,
+        0, 0, 0, 520, 64, 10, 30, 70, 64, 760, 70, 0, 28, 55, -1, 0, 64, 0, 64, 64, 64, 0, 40, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0,
+        57, 100, 0, 0, 0, 575, 64, 64, 62, 60, 64, 640, 20, 0, 60, 50, -1, 0, 64, 0, 64, 64, 64, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 60, -1,
+        0, 0, 0 }, { "kit", "analog" }));
+    b.push_back (make ("drumsynth", "Kit", "Deep Electro", { 48, 100, 0, 0, 0, 150, 100, 48, 96, 82, 64, 500, 64, 0, 64, 0, -1, 0, 64, 0,
+        64, 64, 90, 0, 10, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 50, 100, 0, 0, 0, 380, 96, 24, 52, 58, 64, 700, 100, 0, 56, 80, -1,
+        0, 64, 0, 64, 64, 64, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 52, 100, 0, 0, 0, 500, 64, 64, 64, 0, 64, 900, 118, 0, 26,
+        80, -1, 0, 64, 0, 64, 64, 64, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 54, 100, 0, 0, 0, 500, 64, 64, 64, 0, 64, 900,
+        118, 0, 72, 70, -1, 0, 64, 0, 64, 64, 64, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 51, 100, 0, 0, 0, 500, 64, 64, 64, 0,
+        64, 560, 90, 0, 46, 82, -1, 0, 64, 4, 18, 26, 64, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 57, 100, 0, 0, 0, 600, 64, 70,
+        80, 60, 64, 500, 64, 0, 64, 0, -1, 0, 64, 0, 64, 64, 64, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0 }, { "kit", "analog" }));
+    return b;
+}
+
+} // namespace lynx::banks

+ 114 - 41
src/core/DrumControls.cpp

@@ -3,6 +3,7 @@
 #include <algorithm>
 #include <cmath>
 #include <cstring>
+#include <map>
 
 #include "core/BassDrum.h"
 #include "core/DrumSynthLive.h"
@@ -131,6 +132,9 @@ const std::vector<Control> empty;
 
 int dslSlot (int key) { return drumSynthKeyToSlot (key); }
 
+// Plucked!'s knobs when the channel has no state yet (the engine's defaults: decay 128, color 64, normalize, widen)
+constexpr int pluckedDefaults[5] = { 128, 64, 1, 0, 1 };
+
 std::int32_t i32 (const std::vector<std::uint8_t>& s, std::size_t at)
 {
     std::int32_t v = 0;
@@ -197,50 +201,80 @@ int defaultPart (const ChannelDef& def)
     return 0;
 }
 
+int absoluteIndex (InstrumentKind kind, const Control& c, int partIndex)
+{
+    if (! c.perPart)
+        return c.index;
+    if (kind == InstrumentKind::drumaxx)
+        return c.index + 44 * std::clamp (partIndex, 0, 15);
+    if (kind == InstrumentKind::drumsynth)
+    {
+        const auto slot = dslSlot (partIndex);
+        return slot < 0 ? -1 : drumSynthPatchParams * slot + c.index;
+    }
+    return c.index;
+}
+
 std::optional<float> value (const ChannelDef& def, const Control& c, int partIndex)
+{
+    const auto index = absoluteIndex (def.instrument, c, partIndex);
+    return index < 0 ? std::nullopt : rawValue (def, index);
+}
+
+bool setValue (ChannelDef& def, const Control& c, float v, int partIndex)
+{
+    if (! std::isfinite (v))
+        return false;
+    v = std::clamp (v, c.low, c.high);
+    if (c.integer)
+        v = std::round (v);
+    const auto index = absoluteIndex (def.instrument, c, partIndex);
+    return index >= 0 && setRawValue (def, index, v);
+}
+
+std::optional<float> rawValue (const ChannelDef& def, int index)
 {
     const auto& s = def.pluginState;
     const auto& m = def.modelParams;
+    if (index < 0)
+        return std::nullopt;
     switch (def.instrument)
     {
         case InstrumentKind::fruitkick:
-            if (! fruitKickStateUsable (s))
+            if (! fruitKickStateUsable (s) || index >= 6)
                 return std::nullopt;
-            return (float) fruitKickParam (s, c.index);
+            return (float) fruitKickParam (s, index);
         case InstrumentKind::plucked:
+            if (index >= 5)
+                return std::nullopt;
+            if (s.empty()) // a fresh channel: the engine's own defaults
+                return (float) pluckedDefaults[index];
             if (s.size() < 20)
                 return std::nullopt;
-            return (float) i32 (s, 4 * (std::size_t) c.index);
+            return (float) i32 (s, 4 * (std::size_t) index);
         case InstrumentKind::drumpad:
         case InstrumentKind::sakura:
-            if (c.index >= (int) m.size())
-                return std::nullopt;
-            return m[(std::size_t) c.index];
         case InstrumentKind::drumsynth:
-        {
-            const auto slot = dslSlot (partIndex);
-            const auto at = drumSynthPatchParams * std::max (0, slot) + c.index;
-            if (slot < 0 || at >= (int) m.size())
+            if (index >= (int) m.size())
                 return std::nullopt;
-            return m[(std::size_t) at];
-        }
+            return std::isfinite (m[(std::size_t) index]) ? m[(std::size_t) index] : 0.0f;
         case InstrumentKind::drumaxx:
         {
-            const auto v = drumaxxParam (s, c.index + (c.perPart ? 44 * std::clamp (partIndex, 0, 15) : 0));
+            const auto v = drumaxxParam (s, index);
             return std::isfinite (v) ? std::optional<float> (v) : std::nullopt;
         }
         case InstrumentKind::bassdrum:
         {
-            const auto at = bassDrumParamOffset (s, c.index);
+            const auto at = bassDrumParamOffset (s, index);
             if (at < 0)
                 return std::nullopt;
             float v = 0.0f;
             std::memcpy (&v, s.data() + at, 4);
-            return v;
+            return std::isfinite (v) ? v : 0.0f;
         }
         case InstrumentKind::slayer:
         {
-            const auto at = 4 + 4 * (std::size_t) c.index;
+            const auto at = 4 + 4 * (std::size_t) index;
             if (! slayerStateUsable (s) || at + 4 > s.size())
                 return std::nullopt;
             return (float) i32 (s, at);
@@ -249,50 +283,40 @@ std::optional<float> value (const ChannelDef& def, const Control& c, int partInd
     }
 }
 
-bool setValue (ChannelDef& def, const Control& c, float v, int partIndex)
+bool setRawValue (ChannelDef& def, int index, float v)
 {
-    if (! std::isfinite (v))
-        return false;
-    v = std::clamp (v, c.low, c.high);
-    if (c.integer)
-        v = std::round (v);
     auto& s = def.pluginState;
     auto& m = def.modelParams;
+    if (index < 0 || ! std::isfinite (v))
+        return false;
     const auto put32 = [&s] (std::size_t at, std::int32_t x) { std::memcpy (s.data() + at, &x, 4); };
     switch (def.instrument)
     {
-        case InstrumentKind::fruitkick: return fruitKickSetParam (s, c.index, (int) v);
+        case InstrumentKind::fruitkick: return fruitKickSetParam (s, index, (int) std::lround (v));
         case InstrumentKind::plucked:
-            if (s.size() < 20)
+            if (s.empty() && index < 5) // a fresh channel gets the five knobs (the engine's defaults) on the first edit
+                for (const auto d : pluckedDefaults)
+                    for (int b = 0; b < 4; ++b)
+                        s.push_back ((std::uint8_t) ((std::uint32_t) d >> (8 * b)));
+            if (s.size() < 20 || index >= 5)
                 return false;
-            put32 (4 * (std::size_t) c.index, (std::int32_t) v);
+            put32 (4 * (std::size_t) index, (std::int32_t) std::lround (v));
             return true;
         case InstrumentKind::drumpad:
         case InstrumentKind::sakura:
-            if (c.index >= (int) m.size())
-                return false;
-            m[(std::size_t) c.index] = v;
-            return true;
         case InstrumentKind::drumsynth:
-        {
-            const auto slot = dslSlot (partIndex);
-            const auto at = drumSynthPatchParams * std::max (0, slot) + c.index;
-            if (slot < 0 || at >= (int) m.size())
+            if (index >= (int) m.size())
                 return false;
-            m[(std::size_t) at] = v;
+            m[(std::size_t) index] = v;
             return true;
-        }
         case InstrumentKind::drumaxx:
-        {
-            const auto index = c.index + (c.perPart ? 44 * std::clamp (partIndex, 0, 15) : 0);
             if (! std::isfinite (drumaxxParam (s, index)))
                 return false;
             drumaxxSetParam (s, index, v);
             return true;
-        }
         case InstrumentKind::bassdrum:
         {
-            const auto at = bassDrumParamOffset (s, c.index);
+            const auto at = bassDrumParamOffset (s, index);
             if (at < 0)
                 return false;
             std::memcpy (s.data() + at, &v, 4);
@@ -300,13 +324,62 @@ bool setValue (ChannelDef& def, const Control& c, float v, int partIndex)
         }
         case InstrumentKind::slayer:
         {
-            const auto at = 4 + 4 * (std::size_t) c.index;
+            const auto at = 4 + 4 * (std::size_t) index;
             if (! slayerStateUsable (s) || at + 4 > s.size())
                 return false;
-            put32 (at, (std::int32_t) v);
+            put32 (at, (std::int32_t) std::lround (v));
             return true;
         }
         default: return false;
     }
 }
+
+const std::vector<EngineParam>& params (InstrumentKind kind)
+{
+    static const std::map<InstrumentKind, std::vector<EngineParam>> all = [] {
+        std::map<InstrumentKind, std::vector<EngineParam>> out;
+        static const char* const notes[12] = { "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B" };
+        for (const auto k : { InstrumentKind::fruitkick, InstrumentKind::plucked, InstrumentKind::drumpad, InstrumentKind::drumaxx,
+                              InstrumentKind::bassdrum, InstrumentKind::drumsynth, InstrumentKind::sakura, InstrumentKind::slayer })
+        {
+            auto& t = out[k];
+            for (const auto& c : controls (k))
+            {
+                if (! c.perPart)
+                    t.push_back ({ c.index, c.name, c.low, c.high, c.integer });
+                else if (k == InstrumentKind::drumaxx)
+                    for (int pad = 0; pad < 16; ++pad)
+                        t.push_back ({ c.index + 44 * pad, "Pad " + std::to_string (pad + 1) + " " + c.name, c.low, c.high, c.integer });
+                else // DrumSynth Live: every key's patch ("C5 Level"; FL's octave numbers, key 60 = C5)
+                    for (int key = 0; key < drumSynthPatches; ++key)
+                        t.push_back ({ drumSynthPatchParams * dslSlot (key) + c.index, std::string (notes[key % 12]) + std::to_string (key / 12) + " " + c.name,
+                                       c.low, c.high, c.integer });
+            }
+            std::sort (t.begin(), t.end(), [] (const EngineParam& a, const EngineParam& b) { return a.index < b.index; });
+        }
+        return out;
+    }();
+    static const std::vector<EngineParam> none;
+    const auto it = all.find (kind);
+    return it != all.end() ? it->second : none;
+}
 } // namespace lynx::drumcontrols
+
+namespace lynx::modelparams
+{
+namespace
+{
+std::optional<float> getDrum (const ChannelDef& c, const EngineParam& p) { return drumcontrols::rawValue (c, p.index); }
+bool setDrum (ChannelDef& c, const EngineParam& p, float raw) { return drumcontrols::setRawValue (c, p.index, raw); }
+Table drumTable (InstrumentKind kind) { return { &drumcontrols::params (kind), &getDrum, &setDrum }; }
+} // namespace
+
+Table fruitKickModelTable() { return drumTable (InstrumentKind::fruitkick); }
+Table pluckedModelTable() { return drumTable (InstrumentKind::plucked); }
+Table drumpadModelTable() { return drumTable (InstrumentKind::drumpad); }
+Table drumaxxModelTable() { return drumTable (InstrumentKind::drumaxx); }
+Table bassDrumModelTable() { return drumTable (InstrumentKind::bassdrum); }
+Table drumSynthModelTable() { return drumTable (InstrumentKind::drumsynth); }
+Table sakuraModelTable() { return drumTable (InstrumentKind::sakura); }
+Table slayerModelTable() { return drumTable (InstrumentKind::slayer); }
+} // namespace lynx::modelparams

+ 23 - 0
src/core/DrumControls.h

@@ -11,6 +11,7 @@
 #include <string>
 #include <vector>
 
+#include "core/ModelParams.h"
 #include "core/Song.h"
 
 namespace lynx::drumcontrols
@@ -36,7 +37,29 @@ std::optional<float> value (const ChannelDef& def, const Control& c, int part =
 // Sets it (clamped to the range, rounded for integer controls); false when the state can't hold it.
 bool setValue (ChannelDef& def, const Control& c, float v, int part = 0);
 
+// The engine parameter index of a control for a part (−1: no such part), and the raw values by engine index (the
+// automation table below uses the same numbers)
+int absoluteIndex (InstrumentKind kind, const Control& c, int part);
+std::optional<float> rawValue (const ChannelDef& def, int index);
+bool setRawValue (ChannelDef& def, int index, float raw);
+
+// Every automatable parameter of the engine, by engine index (sorted): the controls above, Drumaxx's for each of the
+// 16 pads ("Pad 3 Pitch"), DrumSynth Live's for each key ("C5 Level"); listed in core/ModelParamList.inc
+const std::vector<EngineParam>& params (InstrumentKind kind);
+
 // DrumSynth Live: the key selected in the editor (stored after the 120 patches), Drumaxx: no stored selection (the
 // panel remembers it); default part of a channel
 int defaultPart (const ChannelDef& def);
 } // namespace lynx::drumcontrols
+
+namespace lynx::modelparams
+{
+Table fruitKickModelTable();
+Table pluckedModelTable();
+Table drumpadModelTable();
+Table drumaxxModelTable();
+Table bassDrumModelTable();
+Table drumSynthModelTable();
+Table sakuraModelTable();
+Table slayerModelTable();
+} // namespace lynx::modelparams

+ 111 - 0
src/core/DrumParamRanges.h

@@ -0,0 +1,111 @@
+#pragma once
+
+// The raw range of every automatable parameter of FL's drum and physical-model generators (round 168p), by the
+// engine's own parameter index: the Min / Max of the control in the plugin's FL editor form (REA_rodada168p.md §1).
+// Header-only so the engines (and the stand-alone render tools that link one engine) map an automation value 0…1 to
+// the raw value without the editor tables of core/DrumControls (whose tables the tests check against these).
+
+#include <cmath>
+
+namespace lynx::drumranges
+{
+struct Range
+{
+    bool valid = false;
+    float low = 0.0f, high = 1.0f;
+    bool integer = false;
+
+    // automation value 0…1 → raw value (linear, rounded for whole-number controls), as 168n's EngineParam::raw
+    float raw (float value01) const noexcept
+    {
+        const auto v = value01 <= 0.0f ? 0.0f : value01 >= 1.0f ? 1.0f : value01;
+        const auto r = low + v * (high - low);
+        return integer ? std::round (r) : r;
+    }
+};
+
+constexpr Range none {};
+constexpr Range unit { true, 0.0f, 1.0f, false };
+constexpr Range flag { true, 0.0f, 1.0f, true };
+constexpr Range ints (float low, float high) { return { true, low, high, true }; }
+
+constexpr Range fruitKick (int i)
+{
+    constexpr Range r[6] = { ints (-2400, 3600), ints (-1200, 1200), ints (0, 256), ints (0, 256), ints (0, 64), ints (0, 128) };
+    return i >= 0 && i < 6 ? r[i] : none;
+}
+
+constexpr Range plucked (int i)
+{
+    constexpr Range r[5] = { ints (0, 256), ints (0, 128), ints (0, 1), ints (0, 1), ints (0, 1) };
+    return i >= 0 && i < 5 ? r[i] : none;
+}
+
+// Drumpad's 38 (Drumaxx's pads hold the same set at pad·44 + 5)
+constexpr Range drumpad (int i)
+{
+    if (i == 0)
+        return flag;
+    if (i >= 30 && i <= 33)
+        return ints (0, 28); // velocity modulation targets
+    return i > 0 && i < 38 ? unit : none;
+}
+
+constexpr Range drumaxx (int i)
+{
+    if (i >= 0 && i < 16 * 44)
+    {
+        const auto j = i % 44;
+        if (j == 0 || j == 1)
+            return unit; // volume, pan
+        if (j == 2 || j == 3)
+            return flag; // mute, solo
+        return j >= 5 && j < 43 ? drumpad (j - 5) : none;
+    }
+    if (i == 0x2c1 || (i >= 0x2c4 && i <= 0x2cb) || i == 0x2cd || i == 0x2ce)
+        return unit; // master, EQ bands, limiter gain / release
+    return i == 0x2c3 || i == 0x2cc ? flag : none;
+}
+
+constexpr Range bassDrum (int i) { return i >= 0 && i < 23 ? unit : none; }
+
+// DrumSynth Live: patch slot·38 + j (120 slots)
+constexpr Range drumSynth (int i)
+{
+    if (i < 0 || i >= 120 * 38)
+        return none;
+    const auto j = i % 38;
+    switch (j)
+    {
+        case 0: case 35: case 37: return ints (0, 128);
+        case 1: return ints (-64, 64);
+        case 2: case 3: case 16: return ints (-50, 50);
+        case 4: case 10: return ints (0, 1000);
+        case 15: return ints (-1, 17);
+        case 18: case 23: return ints (0, 100);
+        case 22: case 32: return ints (0, 1);
+        case 24: return ints (0, 5);
+        case 34: case 36: return none;
+        default: break;
+    }
+    if (j >= 25 && j <= 31)
+        return ints (-50, 50);
+    return ints (0, 127); // 5…9, 11…14, 17, 19…21, 33
+}
+
+constexpr Range sakura (int i)
+{
+    if (i == 7 || i == 12 || i == 21 || i == 23 || (i >= 55 && i <= 63) || i == 70 || i == 74)
+        return flag;
+    if (i >= 79 && i < 79 + 32)
+    {
+        const auto j = (i - 79) % 4;
+        return j == 0 ? ints (0, 8) : j == 1 ? unit : j == 2 ? flag : ints (0, 14);
+    }
+    if (i == 111)
+        return ints (0, 6);
+    if (i == 112)
+        return ints (0, 9);
+    return (i >= 0 && i < 78) || i == 113 ? unit : none;
+}
+} // namespace lynx::drumranges

+ 11 - 0
src/core/DrumSynthLive.cpp

@@ -1,4 +1,5 @@
 #include "core/DrumSynthLive.h"
+#include "core/DrumParamRanges.h"
 #include "core/Sha256.h"
 
 #include <algorithm>
@@ -607,6 +608,16 @@ public:
 
     void setNextNoteExpression (float pan, float, bool) noexcept override { nextPan = pan; }
 
+    // automation (round 168p): a knob of a key's patch (slot·38 + j), 0…1 over its range; sounding voices keep the
+    // patch they were triggered with, the level / pan follow at once
+    void setParameter (int index, float value) noexcept override
+    {
+        take();
+        const auto r = drumranges::drumSynth (index);
+        if (r.valid && std::isfinite (value))
+            settings.patches[(std::size_t) index] = (std::int32_t) r.raw (value);
+    }
+
     void noteOn (int key, float velocity) noexcept override
     {
         take();

+ 41 - 0
src/core/Drumaxx.cpp

@@ -1,4 +1,5 @@
 #include "core/Drumaxx.h"
+#include "core/DrumParamRanges.h"
 #include "core/HostSlide.h"
 
 #include <algorithm>
@@ -605,6 +606,20 @@ public:
     void load (const Kit& k)
     {
         kit = k;
+        derive();
+    }
+
+    // a live knob change (automation, round 168p): the pads read their parameters at every hit / block
+    void setParam (int i, float v)
+    {
+        if (i < 0 || i >= (int) kit.P.size())
+            return;
+        kit.P[(std::size_t) i] = v;
+        derive();
+    }
+
+    void derive()
+    {
         for (int i = 0; i < padCount; ++i)
         {
             const auto v = p (i * padParams);
@@ -1183,6 +1198,23 @@ std::string drumaxxKitName (const std::vector<std::uint8_t>& state)
     return parseState (state, k) ? k.name : std::string {};
 }
 
+std::string drumaxxPadName (const std::vector<std::uint8_t>& state, int pad)
+{
+    Kit k;
+    if (pad < 0 || pad >= padCount || ! parseState (state, k))
+        return {};
+    // the 0x800-byte block after the patterns: 16 pad names of 128 bytes (round 168p)
+    const std::size_t at = 8 + 0x104 + 4 * (std::size_t) paramCount + (std::size_t) padCount * 0x402 + 128 * (std::size_t) pad;
+    if ((long) u32At (state.data() + 4) - 4 <= 0x100 || at + 128 > state.size() || at + 128 > 8 + (std::size_t) u32At (state.data() + 4))
+        return {};
+    const auto* n = reinterpret_cast<const char*> (state.data() + at);
+    std::string name (n, strnlen (n, 128));
+    for (const auto c : name)
+        if ((unsigned char) c < 0x20)
+            return {};
+    return name;
+}
+
 namespace
 {
 // the byte offset of parameter `index` in a usable state with its kit name (−1 otherwise)
@@ -1242,6 +1274,15 @@ public:
 
     void setNextNoteExpression (float, float cents, bool) noexcept override { nextCents = cents; }
 
+    // automation (round 168p): the clip's 0…1 over the knob's range, on the running kit
+    void setParameter (int index, float value) noexcept override
+    {
+        take();
+        const auto r = drumranges::drumaxx (index);
+        if (r.valid && std::isfinite (value))
+            engine->setParam (index, r.raw (value));
+    }
+
     void noteOn (int key, float velocity) noexcept override
     {
         take();

+ 2 - 0
src/core/Drumaxx.h

@@ -31,6 +31,8 @@ bool drumaxxStateUsable (const std::vector<std::uint8_t>& state);
 
 // The kit name stored in the state (empty if none)
 std::string drumaxxKitName (const std::vector<std::uint8_t>& state);
+// a pad's name (the kit's 16 names; empty when the state has none)
+std::string drumaxxPadName (const std::vector<std::uint8_t>& state, int pad);
 
 // Parameter `index` (0…719: 16 pads × 44, then the master; REA_rodada67 §6) of the state, 0…1 (NaN if unusable) / set it
 float drumaxxParam (const std::vector<std::uint8_t>& state, int index);

+ 51 - 0
src/core/FruitKick.cpp

@@ -4,6 +4,8 @@
 #include "core/FruitKick.h"
 #include "core/FlVoiceProcessor.h"
 #include "core/FlangusFastDist.h"
+#include "core/DrumParamRanges.h"
+#include "core/EngineParams.h"
 
 #include <algorithm>
 #include <array>
@@ -89,6 +91,11 @@ struct Params
     {
         for (int i = 0; i < 6; ++i)
             p[i] = i32At (state, 4 + 4 * (std::size_t) i);
+        derive (fs);
+    }
+
+    void derive (double fs)
+    {
         e4 = (float) (2247346493527.166 / fs); // 2³² · 523.25 Hz / fs
         r154 = (float) (44100.0 / fs);
         const double ln1001 = std::log (1001.0);
@@ -124,6 +131,7 @@ public:
         if (! fruitKickStateUsable (state))
             return false;
         P.init (state, fs);
+        this->fs = fs;
         // the end fade: 441 entries at every rate (built while the framework's rate object still holds 44 100 Hz, as
         // in DX10) with IPP's cosine (REA_rodada74 §1-2)
         const auto& table = flvp::endTable();
@@ -136,6 +144,16 @@ public:
         return true;
     }
 
+    // a live knob change: the decays / floor / distortion apply to the sounding kicks, the start pitch and click
+    // phase to the next ones
+    void setParam (int i, int v)
+    {
+        if (i < 0 || i >= 6 || P.p[i] == v)
+            return;
+        P.p[i] = v;
+        P.derive (fs);
+    }
+
     Voice* trigger (int key, double initVol, float fvol, float fpan, double pitchCents)
     {
         // max polyphony (FUN_0072e400): the first voice not yet released gets the end fade
@@ -282,6 +300,7 @@ public:
     }
 
     Params P;
+    double fs = 44100.0;
     flvp::Settings S;
     std::vector<float> bufA = std::vector<float> (2 * maxBlock), bufB = std::vector<float> (2 * maxBlock);
     std::vector<float> fade;
@@ -358,6 +377,24 @@ public:
         const auto b = bpm > 0.0 ? bpm : 120.0;
         if (channel.pluginState == state && b == tempo.load())
             return;
+        // a knob turned on the page (round 168p): only the six parameters differ → the running engine takes them,
+        // the sounding kicks keep playing
+        if (b == tempo.load() && incoming.load() == nullptr && channel.pluginState.size() == state.size() && fruitKickStateUsable (state)
+            && fruitKickStateUsable (channel.pluginState) && std::memcmp (state.data(), channel.pluginState.data(), 4) == 0
+            && std::memcmp (state.data() + 28, channel.pluginState.data() + 28, state.size() - 28) == 0)
+        {
+            std::vector<std::pair<int, float>> changed;
+            for (int i = 0; i < 6; ++i)
+                if (fruitKickParam (state, i) != fruitKickParam (channel.pluginState, i))
+                    changed.push_back ({ i, (float) fruitKickParam (channel.pluginState, i) });
+            if (changed.size() <= liveParams.space())
+            {
+                for (const auto& [i, v] : changed)
+                    liveParams.push (i, v);
+                state = channel.pluginState;
+                return;
+            }
+        }
         state = channel.pluginState;
         tempo.store (b);
         rebuild();
@@ -369,6 +406,15 @@ public:
         nextCents = cents;
     }
 
+    // automation (round 168p): the clip's 0…1 over the knob's range, on the running engine
+    void setParameter (int index, float value) noexcept override
+    {
+        take();
+        const auto r = drumranges::fruitKick (index);
+        if (engine != nullptr && r.valid && std::isfinite (value))
+            engine->setParam (index, (int) r.raw (value));
+    }
+
     void noteOn (int key, float velocity) noexcept override
     {
         take();
@@ -469,9 +515,14 @@ private:
             engine = e->fade.empty() ? nullptr : e; // an empty engine stands for an unusable state
             if (engine == nullptr)
                 delete e;
+            liveParams.clear(); // (the new engine was built from the newest state)
         }
+        if (engine != nullptr)
+            liveParams.drain ([this] (int i, float v) { engine->setParam (i, (int) v); });
     }
 
+    LiveParamQueue liveParams;
+
     Engine* engine = nullptr;
     std::atomic<Engine*> incoming { nullptr }, retired { nullptr };
     std::atomic<double> rate { 44100.0 }, tempo { 120.0 };

+ 6 - 0
src/core/LynxBankList.inc

@@ -3,3 +3,9 @@
 // scripts/build-local.sh CORE and scripts/build-windows-zig.sh next to src/core/LynxBanks.cpp).
 LYNX_BANK (toxic, toxicBank)       // core/ToxicBank.cpp (round 168n)
 LYNX_BANK (poizone, poizoneBank)   // core/PoiZoneBank.cpp (round 168n)
+LYNX_BANK (fruitkick, fruitKickBank)   // core/DrumBanks.cpp (round 168p)
+LYNX_BANK (plucked, pluckedBank)       // core/DrumBanks.cpp (round 168p)
+LYNX_BANK (drumpad, drumpadBank)       // core/DrumBanks.cpp (round 168p)
+LYNX_BANK (sakura, sakuraBank)         // core/DrumBanks.cpp (round 168p)
+LYNX_BANK (drumaxx, drumaxxBank)       // core/DrumBanks.cpp (round 168p)
+LYNX_BANK (drumsynth, drumSynthBank)   // core/DrumBanks.cpp (round 168p)

+ 8 - 0
src/core/ModelParamList.inc

@@ -2,3 +2,11 @@
 // <function returning modelparams::Table>), the function declared in core/ModelParams.h or in the engine's header.
 LYNX_MODEL_PARAMS (toxic, toxicModelTable)       // round 168n
 LYNX_MODEL_PARAMS (poizone, poizoneModelTable)   // round 168n
+LYNX_MODEL_PARAMS (fruitkick, fruitKickModelTable)   // round 168p (core/DrumControls.cpp)
+LYNX_MODEL_PARAMS (plucked, pluckedModelTable)
+LYNX_MODEL_PARAMS (drumpad, drumpadModelTable)
+LYNX_MODEL_PARAMS (drumaxx, drumaxxModelTable)
+LYNX_MODEL_PARAMS (bassdrum, bassDrumModelTable)
+LYNX_MODEL_PARAMS (drumsynth, drumSynthModelTable)
+LYNX_MODEL_PARAMS (sakura, sakuraModelTable)
+LYNX_MODEL_PARAMS (slayer, slayerModelTable)

+ 1 - 0
src/core/ModelParams.cpp

@@ -4,6 +4,7 @@
 #include <cstring>
 #include <map>
 
+#include "core/DrumControls.h"
 #include "core/PoiZone.h"
 #include "core/Toxic.h"
 

+ 21 - 0
src/core/PhysicalModels.cpp

@@ -1,4 +1,5 @@
 #include "core/PhysicalModels.h"
+#include "core/DrumParamRanges.h"
 #include "core/HostSlide.h"
 #include "core/Sha256.h"
 
@@ -942,6 +943,17 @@ public:
         pitchCents.store (channel.sampler.pitch * 100.0f);
     }
 
+    // automation (round 168p): the clip's 0…1 over the knob's range; the static coefficients and effects follow
+    void setParameter (int index, float value) noexcept override
+    {
+        readSettings();
+        const auto r = drumranges::sakura (index);
+        if (! r.valid || ! std::isfinite (value) || index >= sakuraParamCount)
+            return;
+        params[(std::size_t) index] = r.raw (value);
+        computeStatic();
+    }
+
     void setNextNoteExpression (float, float cents, bool) noexcept override { nextCents = cents; }
 
     // FL's PITCH knob and main pitch move the sounding notes too (round 167a)
@@ -1479,6 +1491,15 @@ public:
         pitchCents.store (channel.sampler.pitch * 100.0f);
     }
 
+    // automation (round 168p): the clip's 0…1 over the knob's range, taken at the next hit (as the page's knobs)
+    void setParameter (int index, float value) noexcept override
+    {
+        mailbox.read (raw);
+        const auto r = drumranges::drumpad (index);
+        if (r.valid && std::isfinite (value) && index < (int) raw.size())
+            raw[(std::size_t) index] = r.raw (value);
+    }
+
     void setNextNoteExpression (float, float cents, bool) noexcept override { nextCents = cents; }
 
     // a slide note moves Final.Pitch: Drumpad follows it like the channel pitch (round 28 §4, issue #14)

+ 9 - 0
src/core/Plucked.cpp

@@ -1,6 +1,7 @@
 // FL Studio's Plucked! (REA_rodada65 §1). See Plucked.h.
 
 #include "core/Plucked.h"
+#include "core/DrumParamRanges.h"
 
 #include <algorithm>
 #include <array>
@@ -345,6 +346,14 @@ public:
         nextCents = cents;
     }
 
+    // automation (round 168p): the clip's 0…1 over the knob's range (the engine reads the knobs every block)
+    void setParameter (int index, float value) noexcept override
+    {
+        const auto r = drumranges::plucked (index);
+        if (r.valid && std::isfinite (value))
+            knobs[(std::size_t) index].store ((int) r.raw (value));
+    }
+
     void noteOn (int key, float velocity) noexcept override
     {
         sync();

+ 14 - 14
src/core/PluginLayoutDrums.inc

@@ -19,7 +19,7 @@ constexpr const char* sakuraSources = "(none)|Envelope|LFO|Mod wheel|Pitch wheel
 constexpr const char* sakuraTargets = "LFO amount|Level|Pan|Pitch|Lo-cut cutoff|Hi-cut cutoff|Hi-cut attack|Hi-cut decay|"
                                       "String 1 decay|String 2 decay|Strings decay|String 1 damp|String 2 damp|Strings damp|Noise rate";
 // DrumSynth Live's voice modes (TRIG digit wheel 0…5: the front-end's mute groups, REA_rodada30 §1.3)
-constexpr const char* dslVoiceModes = "Poly|Mono|Group 1|Group 2|Group 3|Group 4";
+constexpr const char* dslVoiceModes = "Mono|Poly|Group 1|Group 2|Group 3|Group 4";
 // FL Slayer's playing aids and effects (the form's own lists)
 constexpr const char* slayerModes = "None|Auto chords|Power chords|Strumming|Solo fixed|Solo dynamic";
 constexpr const char* slayerEffects = "Dry|Amp: Phaser|Amp: Tremolo|Amp: Wah-wah|Amp: Wah-wah LFO|Amp: Ring mod|Amp: Fuzz box|"
@@ -76,7 +76,7 @@ void drumpadVoice (std::vector<LayoutItem>& v, float dx, float dy)
     sec (30, 116, TR_NOOP ("Mallet"));
     sec (148, 110, TR_NOOP ("Membrane"));
     sec (260, 54, TR_NOOP ("Low"), 136);
-    sec (312, 54, TR_NOOP ("SOF"));
+    sec (312, 54, "SOF");
     sec (366, 126, TR_NOOP ("Mid"));
     sec (494, 58, TR_NOOP ("High"));
     sec (556, 60, TR_NOOP ("Output"));
@@ -172,22 +172,22 @@ Layout drumaxx()
         v.push_back (onPage (name, page));
         v.push_back (onPage (knob (x + 24, y + 40, 32, names[pad][0], nullptr, 0, noCaption), page));
         v.push_back (onPage (knob (x + 24, y + 78, 26, names[pad][1], nullptr, 0, noCaption | bipolar), page));
-        v.push_back (onPage (toggle (x + 102, y + 29, 26, 18, names[pad][2], TR_NOOP ("M"), boxed | inverted), page));
-        v.push_back (onPage (toggle (x + 102, y + 52, 26, 18, names[pad][3], TR_NOOP ("S"), boxed), page));
+        v.push_back (onPage (toggle (x + 102, y + 29, 26, 18, names[pad][2], "M", boxed | inverted), page));
+        v.push_back (onPage (toggle (x + 102, y + 52, 26, 18, names[pad][3], "S", boxed), page));
     }
     drumpadVoice (v, -16, 255);
     v.push_back (section (14, 456, 744, 88, TR_NOOP ("Sequencer")));
     v.push_back (label (24, 486, 724, 40, TR_NOOP ("Drumaxx's pattern sequencer is not played by LYNX: play the pads from the Piano roll or the Channel rack"), dim));
     v.push_back (section (14, 548, 468, 64, TR_NOOP ("Equalizer")));
     v.push_back (section (488, 548, 270, 64, TR_NOOP ("Master")));
-    v.push_back (knob (52, 576, 32, "EQ band 1", TR_NOOP ("63"), 599, bipolar));
-    v.push_back (knob (107, 576, 32, "EQ band 2", TR_NOOP ("125"), 599, bipolar));
-    v.push_back (knob (164, 576, 32, "EQ band 3", TR_NOOP ("250"), 599, bipolar));
-    v.push_back (knob (219, 576, 32, "EQ band 4", TR_NOOP ("500"), 599, bipolar));
-    v.push_back (knob (274, 576, 32, "EQ band 5", TR_NOOP ("1k"), 599, bipolar));
-    v.push_back (knob (331, 576, 32, "EQ band 6", TR_NOOP ("2k"), 599, bipolar));
-    v.push_back (knob (394, 576, 32, "EQ band 7", TR_NOOP ("4k"), 599, bipolar));
-    v.push_back (knob (451, 576, 32, "EQ band 8", TR_NOOP ("8k"), 599, bipolar));
+    v.push_back (knob (52, 576, 32, "EQ band 1", "63", 599, bipolar));
+    v.push_back (knob (107, 576, 32, "EQ band 2", "125", 599, bipolar));
+    v.push_back (knob (164, 576, 32, "EQ band 3", "250", 599, bipolar));
+    v.push_back (knob (219, 576, 32, "EQ band 4", "500", 599, bipolar));
+    v.push_back (knob (274, 576, 32, "EQ band 5", "1k", 599, bipolar));
+    v.push_back (knob (331, 576, 32, "EQ band 6", "2k", 599, bipolar));
+    v.push_back (knob (394, 576, 32, "EQ band 7", "4k", 599, bipolar));
+    v.push_back (knob (451, 576, 32, "EQ band 8", "8k", 599, bipolar));
     v.push_back (knob (652, 576, 32, "Limiter gain", TR_NOOP ("Gain"), 599));
     v.push_back (knob (709, 576, 32, "Limiter release", TR_NOOP ("Release"), 599));
     v.push_back (toggle (495, 565, 34, 22, "EQ on", TR_NOOP ("EQ")));
@@ -219,7 +219,7 @@ Layout bassDrum()
     v.push_back (knob (330, 70, 46, "Sampling", TR_NOOP ("Sampling"), 100));
     v.push_back (knob (244, 256, 24, "Noise start", TR_NOOP ("Start"), 275));
     v.push_back (knob (172, 256, 24, "Noise D", TR_NOOP ("D"), 275));
-    v.push_back (knob (204, 256, 24, "Noise S", TR_NOOP ("S"), 275));
+    v.push_back (knob (204, 256, 24, "Noise S", "S", 275));
     v.push_back (knob (68, 281, 36, "Var peak", TR_NOOP ("Var peak"), 306));
     v.push_back (knob (98, 327, 36, "Var slide", TR_NOOP ("Var slide"), 352));
     v.push_back (knob (144, 355, 36, "Var phase", TR_NOOP ("Var phase"), 380));
@@ -360,7 +360,7 @@ Layout sakura()
     v.push_back (slider (Item::vslider, 575, 177, 27, 86, "Stereo sep", TR_NOOP ("Stereo"), noCaption));
     v.push_back (knob (32.5, 404.5, 33, "EG attack", TR_NOOP ("A"), 428));
     v.push_back (knob (72.5, 404.5, 33, "EG decay", TR_NOOP ("D"), 428));
-    v.push_back (knob (112.5, 404.5, 33, "EG sustain", TR_NOOP ("S"), 428));
+    v.push_back (knob (112.5, 404.5, 33, "EG sustain", "S", 428));
     v.push_back (knob (152.5, 404.5, 33, "EG release", TR_NOOP ("R"), 428));
     v.push_back (knob (205.5, 404.5, 33, "LFO rate", TR_NOOP ("LFO"), 428));
     v.push_back (knob (254.5, 404.5, 33, "Mod 1 amount", nullptr, 0, noCaption));

+ 186 - 1
src/ui/ChannelSettings.cpp

@@ -23,6 +23,8 @@
 #include "core/MiniSynth.h"
 #include "core/SimSynth.h"
 #include "core/Drumaxx.h"
+#include "core/DrumControls.h"
+#include <map>
 #include "core/Granulizer.h"
 #include "core/Morphine.h"
 #include "core/Ogun.h"
@@ -978,7 +980,18 @@ public:
         modelTable = modelparams::tableOf (def.instrument);
         if (modelTable != nullptr && ! modelparams::rawValue (def, modelTable->params->front().index))
             modelTable = nullptr; // (a state the engine can't read: the plain page)
-        if (modelTable != nullptr)
+        if (modelTable != nullptr && (drumaxx || drumsynth))
+        {
+            // round 168p: Drumaxx's pad voice / DrumSynth Live's patch: one knob per control, editing the selected
+            // pad's / key's parameter (the pad buttons / the key display pick the part); the rest as listed
+            drumPart = drumsynth ? editorKey : drumaxxPadOf (ref.index);
+            for (const auto& c : drumcontrols::controls (def.instrument))
+                if (c.perPart)
+                    addPartParam (def, c);
+                else if (const auto* p = modelparams::find (def.instrument, c.index))
+                    addModelParam (def, *p);
+        }
+        else if (modelTable != nullptr)
         {
             for (const auto& p : *modelTable->params)
                 addModelParam (def, p);
@@ -1170,6 +1183,67 @@ public:
         knobs.push_back (std::move (knob));
     }
 
+    // round 168p: a knob of Drumaxx's selected pad / DrumSynth Live's selected key (drumcontrols' per-part control):
+    // named as the control (the layout places it), editing and automating the part's engine parameter
+    void addPartParam (const ChannelDef& def, const drumcontrols::Control& c)
+    {
+        auto knob = std::make_unique<MenuSlider>();
+        knob->setSliderStyle (juce::Slider::RotaryHorizontalVerticalDrag);
+        knob->setTextBoxStyle (juce::Slider::TextBoxBelow, false, 70, 16);
+        knob->setRange (c.low, c.high, c.integer ? 1.0 : 0.0);
+        knob->setValue (drumcontrols::value (def, c, drumPart).value_or (c.low), juce::dontSendNotification);
+        knob->setDoubleClickReturnValue (false, 0.0);
+        knob->setName (c.name);
+        const auto* control = &c;
+        knob->onValueChange = [this, control, s = knob.get()] {
+            ref.edit (engine, [control, part = drumPart, v = (float) s->getValue()] (ChannelDef& d) { drumcontrols::setValue (d, *control, v, part); });
+            if (layout != nullptr)
+                repaint();
+        };
+        if (ref.index >= 0)
+        {
+            const auto target = [this, control] {
+                return AutomationTarget { AutomationTargetKind::channelParam, ref.index, 0, drumcontrols::absoluteIndex (instrumentKind, *control, drumPart) };
+            };
+            ui::setOwnMenu (*knob);
+            knob->onMenu = [this, k = knob.get(), target] { ui::showSliderMenu (*k, &engine, target()); };
+            knob->onDragStart = [this, target] { engine.noteTweaked (target(), true); };
+            knob->onDragEnd = [this, target] { engine.tweakReleased (target()); };
+        }
+        partKnobs.push_back ({ knob.get(), control });
+        addAndMakeVisible (*knob);
+        knobs.push_back (std::move (knob));
+    }
+
+    // the pad remembered for each Drumaxx channel while LYNX runs (FL's editor keeps it, not the state)
+    static int& drumaxxPadOf (int channel)
+    {
+        static std::map<int, int> pads;
+        return pads[channel];
+    }
+
+    // another pad / key selected: the part's knobs show its values (no rebuild)
+    void selectPart (int part)
+    {
+        const auto* def = ref.get (engine);
+        if (def == nullptr || part == drumPart)
+            return;
+        drumPart = part;
+        if (drumaxx)
+            drumaxxPadOf (ref.index) = part;
+        if (drumsynth)
+        {
+            editorKey = part;
+            ref.edit (engine, [part] (ChannelDef& d) { // FL keeps the selected key in the state
+                if (lynx::drumSynthEditorKeyIndex < (int) d.modelParams.size())
+                    d.modelParams[(std::size_t) lynx::drumSynthEditorKeyIndex] = (float) part;
+            });
+        }
+        for (const auto& [k, c] : partKnobs)
+            k->setValue (drumcontrols::value (*def, *c, drumPart).value_or (c->low), juce::dontSendNotification);
+        repaint();
+    }
+
     // the items shown only while another control is within a range (LayoutItem::whenParam, e.g. an effect slot's
     // fields for its type): their knobs follow
     bool conditionHolds (const plugui::LayoutItem& item) const
@@ -1523,6 +1597,7 @@ public:
                             g.strokePath (wave, juce::PathStrokeType (1.3f * f));
                         }
                     }
+                    paintDrumDisplay (g, item, r, def, f);
                     if (juce::String (item.display) == "flkeysname")
                         if (const auto st = flkeys::parseState (def.pluginState))
                         {
@@ -1538,6 +1613,111 @@ public:
         }
     }
 
+    // round 168p: the displays of the drum pages (Drumaxx's kit / pads, BassDrum's noise sample, DrumSynth Live's
+    // selected patch and its key display)
+    static juce::String keyName (int key) { return juce::String (notenames::keyName (key)); }
+
+    juce::Rectangle<float> dslKeyCell (juce::Rectangle<float> r, int key) const
+    {
+        // the 120 patch keys in 4 rows of 30 (C0 … B9, FL's octave numbers)
+        const auto w = r.getWidth() / 30.0f, h = r.getHeight() / 4.0f;
+        return { r.getX() + w * (float) (key % 30), r.getY() + h * (float) (key / 30), w, h };
+    }
+
+    void paintDrumDisplay (juce::Graphics& g, const plugui::LayoutItem& item, juce::Rectangle<float> r, const ChannelDef& def, float f)
+    {
+        using namespace theme;
+        const juce::String id (item.display);
+        auto text = [&] (const juce::String& t, juce::Colour c, juce::Justification j = juce::Justification::centred) {
+            g.setColour (c);
+            g.setFont (font (juce::jmax (8.0f, juce::jmin (12.0f * f, r.getHeight() * 0.62f))));
+            g.drawFittedText (t, r.reduced (4.0f * f, 1.0f).toNearestInt(), j, 1, 0.7f);
+        };
+        if (id == "drumaxxkit")
+        {
+            const auto name = juce::String::fromUTF8 (drumaxxKitName (def.pluginState).c_str());
+            text (name.isEmpty() ? tr ("(no kit name)") : name, colour::textPrimary, juce::Justification::centredLeft);
+        }
+        else if (id == "drumaxxpad")
+        {
+            const auto pad = item.steps;
+            const auto key = (int) drumaxxParam (def.pluginState, 44 * pad + 4);
+            skin::button (g, r.reduced (2.0f * f), pad == drumPart, false, accent, radius::md * f);
+            g.setColour (pad == drumPart ? colour::onAccent : colour::textSecondary);
+            g.setFont (font (juce::jmax (8.0f, 10.0f * f), true));
+            g.drawFittedText (juce::String (pad + 1) + "\n" + (key >= 0 && key < 128 ? keyName (key) : juce::String()), r.toNearestInt(),
+                              juce::Justification::centred, 2, 0.7f);
+        }
+        else if (id == "drumaxxpadname")
+        {
+            const auto name = juce::String::fromUTF8 (drumaxxPadName (def.pluginState, item.steps).c_str());
+            text (name.isEmpty() ? tr ("Pad {0}", { juce::String (item.steps + 1) }) : name, item.steps == drumPart ? accent.brighter (0.4f) : colour::textSecondary,
+                  juce::Justification::centredLeft);
+        }
+        else if (id == "bassdrumnoise")
+        {
+            if (! bassDrumStateUsable (def.pluginState) || def.samplePath.empty())
+                text (tr ("Needs FL Studio's files"), colour::textSecondary);
+            else
+            {
+                const auto name = juce::String::fromUTF8 (bassDrumNoiseName (def.pluginState).c_str());
+                text (name.isEmpty() ? tr ("(no noise sample)") : name, colour::textPrimary, juce::Justification::centredLeft);
+            }
+        }
+        else if (id == "dslpatch")
+            text (keyName (drumPart) + "  (" + juce::String (drumPart) + ")", colour::textPrimary);
+        else if (id == "dslsend" || id == "dslmorph")
+        {
+            const auto slot = drumSynthKeyToSlot (drumPart);
+            const auto at = drumSynthPatchParams * slot + (id == "dslsend" ? 34 : 36);
+            const auto v = slot >= 0 && at < (int) def.modelParams.size() ? (int) std::lround (def.modelParams[(std::size_t) at]) : -1;
+            text (id == "dslsend" ? (v < 0 ? juce::String ("-") : juce::String (v)) : (v < 0 || v > 119 ? tr ("(none)") : keyName (v)), colour::textPrimary);
+        }
+        else if (id == "dslkeys")
+        {
+            const auto inner = r.reduced (3.0f * f);
+            for (int key = 0; key < drumSynthPatches; ++key)
+            {
+                const auto cell = dslKeyCell (inner, key).reduced (0.5f * f);
+                const auto slot = drumSynthKeyToSlot (key);
+                const auto level = (std::size_t) (drumSynthPatchParams * slot) < def.modelParams.size() ? def.modelParams[(std::size_t) (drumSynthPatchParams * slot)] : 0.0f;
+                const auto black = juce::String ("0101001010100").substring (key % 12, key % 12 + 1) == "1";
+                g.setColour (key == drumPart ? accent : level > 0.0f ? accent.withAlpha (0.35f) : black ? colour::bg1 : colour::bg4);
+                g.fillRect (cell);
+                if (key % 12 == 0)
+                {
+                    g.setColour (key == drumPart ? colour::onAccent : colour::textSecondary);
+                    g.setFont (font (juce::jmax (6.5f, juce::jmin (8.0f * f, cell.getHeight() * 0.6f))));
+                    g.drawText (juce::String (key / 12), cell, juce::Justification::centred, false);
+                }
+            }
+        }
+    }
+
+    // a click on a pad button / the key display selects the part the knobs edit; true when handled
+    bool clickDrumDisplay (const plugui::LayoutItem& item, juce::Point<float> at)
+    {
+        if (item.type != plugui::Item::display || item.display == nullptr || ! layoutRect (item).contains (at) || ! conditionHolds (item))
+            return false;
+        const juce::String id (item.display);
+        if (drumaxx && (id == "drumaxxpad" || id == "drumaxxpadname"))
+        {
+            selectPart (item.steps);
+            return true;
+        }
+        if (drumsynth && id == "dslkeys")
+        {
+            const auto inner = layoutRect (item).reduced (3.0f * layoutFactor());
+            for (int key = 0; key < drumSynthPatches; ++key)
+                if (dslKeyCell (inner, key).contains (at))
+                {
+                    selectPart (key);
+                    return true;
+                }
+        }
+        return false;
+    }
+
     void resizeLayout()
     {
         for (auto& k : knobs)
@@ -1577,6 +1757,9 @@ public:
     {
         if (layout == nullptr)
             return;
+        for (const auto& item : layout->items) // round 168p: Drumaxx's pads, DrumSynth Live's keys
+            if (clickDrumDisplay (item, e.position))
+                return;
         for (const auto& item : layout->items) // the page switches first (they edit no parameter)
             if (item.type == plugui::Item::tabs && (item.style & plugui::pageTabs) != 0 && layoutRect (item).contains (e.position) && conditionHolds (item))
             {
@@ -1874,6 +2057,8 @@ private:
          fruitkick = false, bassdrum = false, toxic = false, threeOsc = false, simSynth = false, wasp = false, plucked = false, beepMap = false,
          sawer = false, flKeys = false, granulizer = false, drumaxx = false, slayer = false, fruityDance = false, sytrus = false, wavesFound = false;
     int editorKey = 60;
+    int drumPart = 0; // round 168p: the Drumaxx pad / DrumSynth Live key the per-part knobs edit
+    std::vector<std::pair<juce::Slider*, const drumcontrols::Control*>> partKnobs;
     std::vector<std::unique_ptr<juce::Slider>> knobs;
     const plugui::Layout* layout = nullptr;
     const modelparams::Table* modelTable = nullptr; // the engine's listed parameters (round 168n)

+ 94 - 2
tests/Design168pTests.inc

@@ -76,10 +76,12 @@ TEST (design168p_controls_read_and_write_their_storage)
     CHECK (minFreq != nullptr && drumcontrols::value (*kick, *minFreq) == -500.0f);
     CHECK (drumcontrols::setValue (*kick, *minFreq, -5000.0f)); // clamped to the knob's range
     CHECK (fruitKickParam (kick->pluginState, 1) == -1200);
-    // Plucked!: an empty (LYNX default) state has no knobs to edit, a bank state has
+    // Plucked!: a fresh channel (no state) shows the engine's defaults and gets a state on the first edit
     ChannelDef empty;
     empty.instrument = InstrumentKind::plucked;
-    CHECK (! drumcontrols::value (empty, *drumcontrols::find (InstrumentKind::plucked, "Decay")));
+    CHECK (drumcontrols::value (empty, *drumcontrols::find (InstrumentKind::plucked, "Decay")) == 128.0f);
+    CHECK (drumcontrols::setValue (empty, *drumcontrols::find (InstrumentKind::plucked, "Gate"), 1.0f));
+    CHECK (pluckedStateUsable (empty.pluginState) && drumcontrols::value (empty, *drumcontrols::find (InstrumentKind::plucked, "Color")) == 64.0f);
     auto pluck = bankstates::channelFor ("plucked", { 200, 30, 1, 0, 1 });
     CHECK (pluck && pluckedStateUsable (pluck->pluginState));
     CHECK (drumcontrols::value (*pluck, *drumcontrols::find (InstrumentKind::plucked, "Color")) == 30.0f);
@@ -112,3 +114,93 @@ TEST (design168p_controls_read_and_write_their_storage)
     CHECK (drumcontrols::value (dsl, *level, 51) == 0.0f);
     CHECK (drumcontrols::setValue (dsl, *level, 200.0f, 51) && drumcontrols::value (dsl, *level, 51) == 128.0f);
 }
+
+namespace design168p
+{
+lynx::drumranges::Range rangeOf (lynx::InstrumentKind kind, int index)
+{
+    using K = lynx::InstrumentKind;
+    namespace r = lynx::drumranges;
+    switch (kind)
+    {
+        case K::fruitkick: return r::fruitKick (index);
+        case K::plucked: return r::plucked (index);
+        case K::drumpad: return r::drumpad (index);
+        case K::drumaxx: return r::drumaxx (index);
+        case K::bassdrum: return r::bassDrum (index);
+        case K::drumsynth: return r::drumSynth (index);
+        case K::sakura: return r::sakura (index);
+        default: return r::none;
+    }
+}
+} // namespace design168p
+
+TEST (design168p_automation_tables_match_the_engines)
+{
+    using namespace lynx;
+    for (const auto kind : design168p::kinds)
+    {
+        const auto* table = modelparams::tableOf (kind);
+        CHECK (table != nullptr && table->params != nullptr && ! table->params->empty());
+        if (table == nullptr || table->params == nullptr)
+            continue;
+        const auto& params = *table->params;
+        std::set<std::string> names;
+        for (std::size_t i = 0; i < params.size(); ++i)
+        {
+            const auto& p = params[i];
+            CHECK (i == 0 || params[i - 1].index < p.index); // sorted, unique
+            CHECK (names.insert (p.name).second);
+            CHECK (modelparams::find (kind, p.index) == &p);
+            if (kind == InstrumentKind::slayer)
+                continue; // (Slayer's ranges live in its engine: slayerParamMax)
+            // the engine maps automation over the same range as the knob
+            const auto r = design168p::rangeOf (kind, p.index);
+            CHECK (r.valid && r.low == p.low && r.high == p.high && r.integer == p.stepped);
+            if (! (r.valid && r.low == p.low && r.high == p.high && r.integer == p.stepped))
+                std::printf ("  %s: range differs\n", p.name.c_str());
+        }
+    }
+    CHECK (modelparams::tableOf (InstrumentKind::drumaxx)->params->size() == 16 * 42 + 13);
+    CHECK (modelparams::findByName (InstrumentKind::drumaxx, "Pad 3 Pitch")->index == 2 * 44 + 5 + 29);
+    CHECK (modelparams::findByName (InstrumentKind::drumsynth, "C5 Level")->index == drumSynthPatchParams * drumSynthKeyToSlot (60));
+    CHECK (modelparams::tableOf (InstrumentKind::drumsynth)->params->size() == (std::size_t) (120 * 36));
+    // values through the shared API: 0…1 over the range
+    auto kick = *bankstates::channelFor ("fruitkick", { 100, -500, 70, 130, 20, 5 });
+    CHECK (modelparams::setValue01 (kick, 5, 0.5f) && fruitKickParam (kick.pluginState, 5) == 64);
+    CHECK (std::abs (*modelparams::value01 (kick, 0) - 2500.0f / 6000.0f) < 1e-6f);
+}
+
+TEST (design168p_engines_take_automation_while_playing)
+{
+    using namespace lynx;
+    // a Fruit Kick hit keeps sounding when its knobs move (live parameter, no engine restart)
+    auto def = *bankstates::channelFor ("fruitkick", { 600, -300, 90, 140, 16, 0 });
+    auto inst = makeInstrument (InstrumentKind::fruitkick);
+    inst->prepare (48000.0);
+    inst->configure (def, 120.0);
+    std::vector<float> l (4800), r (4800);
+    inst->render (l.data(), r.data(), 480, 1.0f, 1.0f);
+    inst->noteOn (60, 0.8f);
+    inst->render (l.data(), r.data(), 2400, 1.0f, 1.0f);
+    auto edited = def;
+    CHECK (drumcontrols::setRawValue (edited, 5, 100.0f));
+    inst->configure (edited, 120.0);
+    inst->setParameter (3, 0.9f);
+    std::fill (l.begin(), l.end(), 0.0f);
+    inst->render (l.data(), r.data(), 2400, 1.0f, 1.0f);
+    float peak = 0.0f;
+    for (int i = 0; i < 2400; ++i)
+        peak = std::max (peak, std::abs (l[(std::size_t) i]));
+    CHECK (peak > 0.01f); // (a restart would have dropped the hit)
+    // every engine accepts every parameter of its table without trouble
+    for (const auto kind : design168p::kinds)
+    {
+        auto e = makeInstrument (kind);
+        e->prepare (48000.0);
+        for (const auto& p : *modelparams::tableOf (kind)->params)
+            e->setParameter (p.index, 0.5f);
+        e->setParameter (-1, 0.5f);
+        e->setParameter (100000, 0.5f);
+    }
+}

+ 1 - 0
tests/tests.cpp

@@ -16882,4 +16882,5 @@ TEST (fl_low_lifter_matches_fl_engine)
 #include "Design168nTests.inc"
 #include "core/BankStates.h"
 #include "core/DrumControls.h"
+#include "core/DrumParamRanges.h"
 #include "Design168pTests.inc"