feat: add Lathe harmonic EQ and Temper tracked distortion
Check and Windows preview / check (anvil) (push) Successful in 2m8s
Check and Windows preview / check (crucible) (push) Successful in 1m32s
Check and Windows preview / check (lathe) (push) Successful in 2m13s
Check and Windows preview / check (patina) (push) Successful in 2m5s
Check and Windows preview / check (rivet) (push) Successful in 1m34s
Check and Windows preview / check (temper) (push) Successful in 2m12s
Check and Windows preview / previews (push) Successful in 1m19s
Check and Windows preview / windows (push) Successful in 2m13s
Independent plugin release / publish (push) Successful in 8s
Independent plugin release / plan (push) Successful in 6s
Independent plugin release / build (push) Successful in 2m57s
Check and Windows preview / check (anvil) (push) Successful in 2m8s
Check and Windows preview / check (crucible) (push) Successful in 1m32s
Check and Windows preview / check (lathe) (push) Successful in 2m13s
Check and Windows preview / check (patina) (push) Successful in 2m5s
Check and Windows preview / check (rivet) (push) Successful in 1m34s
Check and Windows preview / check (temper) (push) Successful in 2m12s
Check and Windows preview / previews (push) Successful in 1m19s
Check and Windows preview / windows (push) Successful in 2m13s
Independent plugin release / publish (push) Successful in 8s
Independent plugin release / plan (push) Successful in 6s
Independent plugin release / build (push) Successful in 2m57s
Lathe places EQ bands on harmonics 1-32 of the played note, so a cut on harmonic 3 stays on harmonic 3 on every note. Temper normalises each note's level before an oversampled shaper and tunes its floor, push and bright filters to the note, so every note distorts the same. The note tracker moves from Anvil into common-dsp, together with a state-variable filter, 4x oversampler and harmonic meter. Anvil's behaviour and editor render are unchanged. docs/ideas.md collects all plugin ideas and their status.
This commit is contained in:
1 parent
f36ff0780c
commit
b3ebe4d952
48 files changed
+9862
-339
No files matched your search
@@ -10,15 +10,21 @@ fn main() {
|
||||
.find(|a| a[0] == "--plugin")
|
||||
.map(|a| a[1].as_str())
|
||||
.unwrap_or("rivet");
|
||||
if !["rivet", "patina", "anvil", "crucible"].contains(&plugin) {
|
||||
eprintln!("Use --plugin rivet, patina, anvil or crucible");
|
||||
if !["rivet", "patina", "anvil", "crucible", "lathe", "temper"].contains(&plugin) {
|
||||
eprintln!("Use --plugin rivet, patina, anvil, crucible, lathe or temper");
|
||||
std::process::exit(2);
|
||||
}
|
||||
let patina = plugin == "patina" || args.iter().any(|arg| arg == "--resonance");
|
||||
let compact = std::env::args().any(|arg| arg == "--compact");
|
||||
let anvil = plugin == "anvil";
|
||||
let crucible = plugin == "crucible";
|
||||
let (width, height) = if crucible {
|
||||
let lathe = plugin == "lathe";
|
||||
let temper = plugin == "temper";
|
||||
let (width, height) = if temper {
|
||||
(temper_ui::WIDTH, temper_ui::HEIGHT)
|
||||
} else if lathe {
|
||||
(lathe_ui::WIDTH, lathe_ui::HEIGHT)
|
||||
} else if crucible {
|
||||
(crucible_ui::WIDTH, crucible_ui::HEIGHT)
|
||||
} else if anvil {
|
||||
(anvil_ui::WIDTH, anvil_ui::HEIGHT)
|
||||
@@ -85,6 +91,54 @@ fn main() {
|
||||
}
|
||||
anvil_state.accept_frame(engine.take_analyzer());
|
||||
}
|
||||
let mut lathe_settings = lathe_core::Settings::default();
|
||||
let mut lathe_state = lathe_ui::State::default();
|
||||
if lathe {
|
||||
// A growl-like map: cut the hollow region, lift the 5th, darker top.
|
||||
lathe_settings.gains[1] = -4.;
|
||||
lathe_settings.gains[2] = -12.;
|
||||
lathe_settings.gains[4] = 6.;
|
||||
lathe_settings.gains[6] = 3.;
|
||||
lathe_settings.gains[10] = -8.;
|
||||
lathe_settings.gains[11] = -8.;
|
||||
lathe_settings.tilt = -1.5;
|
||||
lathe_settings.between = -6.;
|
||||
let mut engine = lathe_core::Engine::new(48000., 2).unwrap();
|
||||
engine.set_settings(lathe_settings).unwrap();
|
||||
let mut saw = common_dsp::Saw::new(48000., 43.65);
|
||||
for i in 0..36000 {
|
||||
let x = (saw.sample() * 1.6).tanh() * 0.4;
|
||||
engine.process_sample([x, x]);
|
||||
if i % 1600 == 0 {
|
||||
lathe_state.accept_frame(engine.take_analyzer());
|
||||
}
|
||||
}
|
||||
lathe_state.accept_frame(engine.take_analyzer());
|
||||
}
|
||||
let mut temper_settings = temper_core::Settings {
|
||||
drive: 20.,
|
||||
curve: temper_core::Curve::Hard,
|
||||
bias: 20.,
|
||||
floor: 0.5,
|
||||
push_harmonic: 5,
|
||||
push_gain: 6.,
|
||||
bright: 12.,
|
||||
..Default::default()
|
||||
};
|
||||
let mut temper_state = temper_ui::State::default();
|
||||
if temper {
|
||||
let mut engine = temper_core::Engine::new(48000., 2).unwrap();
|
||||
engine.set_settings(temper_settings).unwrap();
|
||||
let mut saw = common_dsp::Saw::new(48000., 43.65);
|
||||
for i in 0..36000 {
|
||||
let x = saw.sample() * 0.3;
|
||||
engine.process_sample([x, x]);
|
||||
if i % 1600 == 0 {
|
||||
temper_state.accept_frame(engine.take_analyzer());
|
||||
}
|
||||
}
|
||||
temper_state.accept_frame(engine.take_analyzer());
|
||||
}
|
||||
let mut crucible_settings = crucible_core::Settings {
|
||||
folder: "C:\\Users\\you\\Documents\\Crucible".into(),
|
||||
..Default::default()
|
||||
@@ -173,7 +227,11 @@ fn main() {
|
||||
let session_motif = session.motifs[0].id;
|
||||
shared.replace(session).unwrap();
|
||||
let ctx = egui::Context::default();
|
||||
if crucible {
|
||||
if temper {
|
||||
temper_ui::style(&ctx);
|
||||
} else if lathe {
|
||||
lathe_ui::style(&ctx);
|
||||
} else if crucible {
|
||||
crucible_ui::style(&ctx);
|
||||
} else if anvil {
|
||||
anvil_ui::style(&ctx);
|
||||
@@ -202,7 +260,11 @@ fn main() {
|
||||
},
|
||||
|ui| {
|
||||
egui::CentralPanel::default().show(ui, |ui| {
|
||||
if crucible {
|
||||
if temper {
|
||||
temper_ui::show(ui, &mut temper_settings, &mut temper_state);
|
||||
} else if lathe {
|
||||
lathe_ui::show(ui, &mut lathe_settings, &mut lathe_state);
|
||||
} else if crucible {
|
||||
crucible_ui::show(
|
||||
ui,
|
||||
&mut crucible_settings,
|
||||
|
||||
Reference in new issue
Block a user