diff --git a/audiohandler.cpp b/audiohandler.cpp index 0420b12..e1e7e9f 100644 --- a/audiohandler.cpp +++ b/audiohandler.cpp @@ -732,11 +732,55 @@ void audioHandler::incomingAudio(audioPacket inPacket) // In this case, control is a float from 0 to 1. control = pre_control = 0.5f; - // Modify controls: - controls[0] = 0.0f; // peak limit (dB) -30 to 0, default 0 - controls[1] = 0.01f; // release time, in seconds - controls[2] = 1.0f; // "fast compression ratio", 0 to 1 - controls[3] = 1.0f; // compression ratio, 0 to 1 + // How to get parameters: + // cd /usr/lib/ladspa + // export LADSPA_PATH=$PWD + // listplugins + // analyzeplugin gverb_1216.so + // Place filename and label name into the audiohandler.h file + // (When you install the SDK, you get the listplugins and analyzeplugin programs.) + + // The setupLADSPA() function will assign pointers to the controls array into the plugin's instance. + // The controls array has 15 slots (per the audiohandler.h file where it is allocated on the stack). + + +// // Modify controls: Dyson Compressor: +// controls[0] = 0.0f; // peak limit (dB) -30 to 0, default 0. For the amp plugin, this is the gain. +// controls[1] = 0.01f; // release time, in seconds +// controls[2] = 1.0f; // "fast compression ratio", 0 to 1 +// controls[3] = 1.0f; // compression ratio, 0 to 1 + + + // Modify controls: sc1_1425.so +// controls[0] = 10.0f; // "Attack time (ms)" input, control, 2 to 400, default 101.5 +// controls[1] = 10.0f; // "Release time (ms)" input, control, 2 to 800, default 401 +// controls[2] = -25.0f; // "Threshold level (dB)" input, control, -30 to 0, default 0 +// controls[3] = 6.0f; // "Ratio (1:n)" input, control, 1 to 10, default 1 +// controls[4] = 3.25f; // "Knee radius (dB)" input, control, 1 to 10, default 3.25 +// controls[5] = 12.0f; // "Makeup gain (dB)" input, control, 0 to 24, default 0 + + // Modify controls: fad_delay_1192.so +// controls[0] = 1.0f; // delay in seconds, 1 to 10 +// controls[1] = -12.0f; // feedback (dB), -70 to 0 + + // Modify controls: gold reverv gverb_1216.so +// controls[0] = 75.0f; // "Roomsize (m)" input, control, 1 to 300, default 75.75 +// controls[1] = 15.0f; // "Reverb time (s)" input, control, 0.1 to 30, default 7.575 +// controls[2] = 0.5f; // "Damping" input, control, 0 to 1, default 0.5 +// controls[3] = 0.75f; // "Input bandwidth" input, control, 0 to 1, default 0.75 +// controls[4] = 0.0f; // "Dry signal level (dB)" input, control, -70 to 0, default -70 +// controls[5] = 0.0f; // "Early reflection level (dB)" input, control, -70 to 0, default 0 +// controls[6] = -15.0f; // "Tail level (dB)" input, control, -70 to 0, default -17.5 + + + // multi-band EQ. Experiment to see if I only adjust one if the defaults hold out. + // file: mbeq_1197.so + controls[3] = 12.0f; // 220 Hz + controls[4] = 12.0f; // 440 Hz + controls[8] = -25.0f; // "1250Hz gain" input, control, -70 to 30, default 0 + controls[9] = -12.0f; + + runPlugin(); diff --git a/audiohandler.h b/audiohandler.h index ff93c5e..3c0639c 100644 --- a/audiohandler.h +++ b/audiohandler.h @@ -197,8 +197,8 @@ private: // char *pcPluginLabel = (char*)"amp_stereo"; // Testing: - char *pcPluginFilename = (char*)"dyson_compress_1403.so"; - char *pcPluginLabel = (char*)"dysonCompress"; + char *pcPluginFilename = (char*)"mbeq_1197.so"; + char *pcPluginLabel = (char*)"mbeq"; int inBufferIndex = 0; int outBufferIndex = 0; @@ -213,7 +213,7 @@ private: LADSPA_Data control; LADSPA_Data pre_control = 0.2f; - LADSPA_Data controls[12]; // twelve controls + LADSPA_Data controls[15]; // twelve controls void setupLADSP();