2 include
"bse/bsecxxmodule.idl";
4 interface Balance : Effect {
5 Info icon =
"icons/balance.png";
6 Info authors =
"Tim Janik";
7 Info license = _(
"GNU Lesser General Public License");
8 Info category = _(
"/Spatial/Balance");
9 Info blurb = _(
"BseBalance is a stereo panning module with "
10 "two audio and two control inputs, each of which can "
11 "be seperately level adjusted. "
12 "The resulting output balance is controlled by a balance adjustment "
13 "and the sum of the control inputs. "
14 "To avoid aliasing artefacts for rapid balance changes, the control "
15 "signal is preprocessed by a simple lowpass filter with adjustable "
17 IStream audio_in1 = Stream (_(
"Audio In1"), _(
"First audio input"));
18 IStream audio_in2 = Stream (_(
"Audio In2"), _(
"Second audio input"));
19 IStream ctrl_in1 = Stream (_(
"Ctrl In1"), _(
"First control input"));
20 IStream ctrl_in2 = Stream (_(
"Ctrl In2"), _(
"Second control input"));
21 OStream left_out = Stream (_(
"Left Out"), _(
"Left audio output"));
22 OStream mix_out = Stream (_(
"Mix Out"), _(
"Mixed audio output"));
23 OStream right_out = Stream (_(
"Right Out"), _(
"Right audio output"));
24 group _(
"Audio Input") {
25 Real alevel1 = Perc (_(
"Input 1 [%]"), _(
"Attenuate the level of audio input 1"), 100, STANDARD);
26 Real alevel2 = Perc (_(
"Input 2 [%]"), _(
"Attenuate the level of audio input 2"), 100, STANDARD);
27 Real abalance = Balance (_(
"Balance"), _(
"Balance audio input levels"), 0, GUI);
29 group _(
"Control Input") {
30 Real clevel1 = Perc (_(
"Input 1 [%]"), _(
"Attenuate the level of control input 1"), 100, STANDARD);
31 Real clevel2 = Perc (_(
"Input 2 [%]"), _(
"Attenuate the level of control input 2"), 100, STANDARD);
32 Real cbalance = Balance (_(
"Balance"), _(
"Balance control input levels"), 0, GUI);
34 group _(
"Output Panning") {
35 Real ostrength = Perc (_(
"Control Strength"), _(
"Adjust how much the control signals affect the output balance"), 100, STANDARD);
36 Real lowpass = SfiReal (_(
"Lowpass [Hz]"), _(
"Lowpass filter frequency for the control signal"), 100, 100, 1000, 10,
"scale:" STANDARD);
37 Real obalance = Balance (_(
"Output Balance"), _(
"Adjust output balance between left and right"), 0, STANDARD);
The Bse namespace contains all functions of the synthesis engine.
Definition: bstbseutils.cc:67