Newbie Plug N Script Q's
-
- KVRer
- 15 posts since 8 Dec, 2022
Hello! I'm trying to build a plugin that is mostly a distortion plug but has EQ filters happening inside of the plug that I don't want to be customizable to the user. I can't figure out how to add a high pass filter inside the already created amp preset script. Please help!
-
- KVRer
- Topic Starter
- 15 posts since 8 Dec, 2022
Is it possible to use/call an EQ filter without taking or showing input while still passing the audio?
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6345 posts since 8 Sep, 2004 from Paris (France)
The mini amp plug-in already has a lowpass filter at the output. You can duplicate this filter and this time set it up as a high pass, and apply it to the input. It can have static parameters that you can set in the Initialize() function, no problem.
-
- KVRer
- Topic Starter
- 15 posts since 8 Dec, 2022
Thank you for responding. I have messed around with the mini amp plug but just can't figure out how to add a static parameter to the input. What would that look like so I can learn from it?
-
- KVRer
- Topic Starter
- 15 posts since 8 Dec, 2022
After a couple days I got a script that successfully loads using the Initialize function. This should work in theory but doesn't affect the signal at all:
/** \file
/* include our dsp classes.
*
*/
#include "library/BiquadFilter.hxx"
#include "library/Constants.hxx"
KittyDSP::Biquad::Filter filter(audioInputsCount);
void initialize()
{
double freqFactor = 2 * PI * 200 / sampleRate;
double bwRange = 1;
double minBw = 1. / 10.;
double frequency = .5;
double bandwidth = 0;
double boost = .5;
filter.setPeak(freqFactor * pow(1000, frequency), minBw + bandwidth * bwRange, pow(10, -.5 + boost));
}
void processSample(array<double>& ioSample)
{
filter.processSample(ioSample);
}
Am I missing something?
/** \file
/* include our dsp classes.
*
*/
#include "library/BiquadFilter.hxx"
#include "library/Constants.hxx"
KittyDSP::Biquad::Filter filter(audioInputsCount);
void initialize()
{
double freqFactor = 2 * PI * 200 / sampleRate;
double bwRange = 1;
double minBw = 1. / 10.;
double frequency = .5;
double bandwidth = 0;
double boost = .5;
filter.setPeak(freqFactor * pow(1000, frequency), minBw + bandwidth * bwRange, pow(10, -.5 + boost));
}
void processSample(array<double>& ioSample)
{
filter.processSample(ioSample);
}
Am I missing something?
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6345 posts since 8 Sep, 2004 from Paris (France)
With your figures, it indeed seems you have setup a peak filter with its gain set to 0 dB. If you want to hear it, changing the boost value for something larger should do something.
-
- KVRer
- Topic Starter
- 15 posts since 8 Dec, 2022
I'll give that a try. Thank you! I've run into a problem with KUIML and can't find the answer on the tutorials or website. A concatenated knob I made does not stay fixed in place in the GUI. It moves around when the parameter is going up or down.
<?xml version="1.0" encoding="utf-8" ?>
<!-- Skin Node: the root node of the skin. Here it defines a default font.
widgets inside it will be displayed in a column.
-->
<SKIN author="Blue Cat Audio" name="Sample" language_version="1.0"
font_face="Arial" font_height="13" text_color="#ffffff" font_quality="cleartype" layout_type="column"
background_image="BKRND.png" repeat="true" v_margin="25" h_margin="25" spacing="3" refresh_priority="idle" font_size="16" font_size_mode="character">
<!-- Title -->
<CELL id="root_cell" min_width="400" min_height="300">
<COLUMN v_align="top">
<IMAGE_PARAM_KNOB param_id="dsp.input8" image="L_KNOB2.png" image_focus="L_KNOB2.png" image_hover="L_KNOB2.png" image_pushed="L_KNOB2.png" image_orientation="vertical" cursor="system::hand"
images_count="31" positions_count="41">
<!-- The tooltip is declared under the Knob so that it is displayed when the mouse is over the knob.-->
<PARAM_TOOLTIP show_on_click="true" param_id="dsp.input8" delay_ms="0" value_format="+.0"/>
</IMAGE_PARAM_KNOB>
<PARAM_TEXT param_id="dsp.input8" content="{name}" />
</COLUMN>
<!-- Bypass button (param 0)-->
<COLUMN v_align="top" v_margin="8">
<IMAGE_PARAM_BUTTON param_id="dsp.input0" image="on_off_button.bmp" image_orientation="horizontal" cursor="system::hand"
images_count="2" />
<PARAM_TEXT param_id="dsp.input0" content="{name}" />
</COLUMN>
</CELL>
</SKIN>
<?xml version="1.0" encoding="utf-8" ?>
<!-- Skin Node: the root node of the skin. Here it defines a default font.
widgets inside it will be displayed in a column.
-->
<SKIN author="Blue Cat Audio" name="Sample" language_version="1.0"
font_face="Arial" font_height="13" text_color="#ffffff" font_quality="cleartype" layout_type="column"
background_image="BKRND.png" repeat="true" v_margin="25" h_margin="25" spacing="3" refresh_priority="idle" font_size="16" font_size_mode="character">
<!-- Title -->
<CELL id="root_cell" min_width="400" min_height="300">
<COLUMN v_align="top">
<IMAGE_PARAM_KNOB param_id="dsp.input8" image="L_KNOB2.png" image_focus="L_KNOB2.png" image_hover="L_KNOB2.png" image_pushed="L_KNOB2.png" image_orientation="vertical" cursor="system::hand"
images_count="31" positions_count="41">
<!-- The tooltip is declared under the Knob so that it is displayed when the mouse is over the knob.-->
<PARAM_TOOLTIP show_on_click="true" param_id="dsp.input8" delay_ms="0" value_format="+.0"/>
</IMAGE_PARAM_KNOB>
<PARAM_TEXT param_id="dsp.input8" content="{name}" />
</COLUMN>
<!-- Bypass button (param 0)-->
<COLUMN v_align="top" v_margin="8">
<IMAGE_PARAM_BUTTON param_id="dsp.input0" image="on_off_button.bmp" image_orientation="horizontal" cursor="system::hand"
images_count="2" />
<PARAM_TEXT param_id="dsp.input0" content="{name}" />
</COLUMN>
</CELL>
</SKIN>
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6345 posts since 8 Sep, 2004 from Paris (France)
Have you checked that the number of images (31 set here) corresponds to the actual number of images used in the strip image file?
-
- KVRer
- Topic Starter
- 15 posts since 8 Dec, 2022
That was it. My ImageMagick concatenation process was probably wrong somewhere. Thank you.