WIP: fix VST3 version

This commit is contained in:
2026-02-20 22:26:35 +01:00
parent 6216b9341b
commit 2d734c471f
6 changed files with 42 additions and 12 deletions

View File

@@ -132,12 +132,11 @@ pub fn create_editor(
cagire::state::ColorScheme::default().to_palette();
theme::set(cagire_ratatui::theme::build::build(&palette));
let mut app = App::with_shared(
let mut app = App::new_plugin(
Arc::clone(&variables),
Arc::clone(&dict),
Arc::clone(&rng),
);
app.plugin_mode = true;
app.audio.section = cagire::state::EngineSection::Settings;
app.audio.setting_kind = cagire::state::SettingKind::Polyphony;

View File

@@ -119,6 +119,7 @@ impl Plugin for CagirePlugin {
},
}];
const MIDI_INPUT: MidiConfig = MidiConfig::MidiCCs;
const MIDI_OUTPUT: MidiConfig = MidiConfig::MidiCCs;
fn params(&self) -> Arc<dyn Params> {

View File

@@ -69,7 +69,7 @@ impl Forth {
if writes.is_empty() {
return;
}
let mut new_vars = (**self.vars.load()).clone();
let mut new_vars = (*self.vars.load_full()).clone();
for (k, v) in writes {
new_vars.insert(k, v);
}
@@ -99,7 +99,7 @@ impl Forth {
let mut stack = self.stack.lock();
let mut outputs: Vec<String> = Vec::with_capacity(8);
let mut cmd = CmdRegister::new();
let vars_snapshot = self.vars.load();
let vars_snapshot = self.vars.load_full();
let mut var_writes: HashMap<String, Value> = HashMap::new();
self.execute_ops(