shithub: neindaw

Download patch

ref: facff7461d4faaa377701d70e146e44890f26b0a
parent: 9b646fb0b8f7c6f610110117ea22e0645cc5dc8e
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Jan 12 17:11:22 EST 2020

kick drum: add unit to B frequency

--- a/kick_drum.c
+++ b/kick_drum.c
@@ -337,6 +337,7 @@
 	ui_interface->closeBox(ui_interface->uiInterface);
 	ui_interface->openVerticalBox(ui_interface->uiInterface, "B");
 	ui_interface->declare(ui_interface->uiInterface, &dsp->fHslider1, "0", "");
+	ui_interface->declare(ui_interface->uiInterface, &dsp->fHslider1, "unit", "Hz");
 	ui_interface->addHorizontalSlider(ui_interface->uiInterface, "Frequency", &dsp->fHslider1, 200.0f, -400.0f, 400.0f, 5.0f);
 	ui_interface->declare(ui_interface->uiInterface, &dsp->fHslider2, "1", "");
 	ui_interface->declare(ui_interface->uiInterface, &dsp->fHslider2, "unit", "s");
--- a/kick_drum.dsp
+++ b/kick_drum.dsp
@@ -9,6 +9,6 @@
 aR = hslider("v:A/[3]Release[unit:s]", 0.001, 0.00001, 1.0, 0.001);
 bA = hslider("v:B/[1]Attack[unit:s]", 0.001, 0.00001, 0.2, 0.001);
 bR = hslider("v:B/[2]Release[unit:s]", 0.001, 0.00001, 1, 0.001);
-bFreq = checkbox("v:B/[3]Enable") * hslider("v:B/[0]Frequency", 200, -400, 400, 5);
+bFreq = checkbox("v:B/[3]Enable") * hslider("v:B/[0]Frequency[unit:Hz]", 200, -400, 400, 5);
 
 process = os.hs_oscsin(aFreq + bFreq*en.ar(bA, bR, 1)) * en.adsr(aA, aD, 0.000001, aR, 1.0);