summaryrefslogtreecommitdiffstats
path: root/arts/modules/effects/artsmoduleseffects.idl
blob: 13e978d99902df8153c7368a772197b9097839aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/*  This file is part of the KDE project
    Copyright (C) 2002 Arnold Krille <[email protected]>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License version 2 as published by the Free Software Foundation.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.

    You should have received a copy of the GNU Library General Public License
    along with this library; see the file COPYING.LIB.  If not, write to
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
    Boston, MA 02110-1301, USA.

*/

/*
 * DISCLAIMER: The interfaces in envmixer.idl (and the derived .cc/.h files)
 *             DO NOT GUARANTEE BINARY COMPATIBILITY YET.
 *
 * They are intended for developers. You shouldn't expect that applications in
 * binary form will be fully compatibile with further releases of these
 * interfaces.
 */

#include <artsflow.idl>
#include <artsgui.idl>
#include <artsmodulescommon.idl>

module Arts {

	interface StereoToMono : Arts::SynthModule {
		attribute float pan; // From -1(left) to +1(right)
		in audio stream inleft, inright;
		out audio stream outmono;
	};

	interface MonoToStereo : Arts::SynthModule {
		attribute float pan; // Same as StereoToMono
		in audio stream inmono;
		out audio stream outleft, outright;
	};

	interface StereoBalance : Arts::StereoEffect {
		attribute float balance;
	};
	interface StereoBalanceGuiFactory : Arts::GuiFactory {};

	interface FiveBandMonoComplexEQ : Arts::StereoEffect {
		readonly attribute StereoToMono s2m;
		attribute float lowfreq, lowq, lowgain;
		attribute float mid1freq, mid1q, mid1gain;
		attribute float mid2freq, mid2q, mid2gain;
		attribute float mid3freq, mid3q, mid3gain;
		attribute float highfreq, highq, highgain;
		readonly attribute MonoToStereo m2s;
	};
	interface FiveBandMonoComplexEQGuiFactory : Arts::GuiFactory {};

	interface Synth_VOICE_REMOVAL : StereoEffect {
		attribute float position, frequency;
	};

	interface VoiceRemovalGuiFactory : GuiFactory {
	};

	interface Synth_STEREO_COMPRESSOR : StereoEffect {
		attribute float attack, release, threshold, ratio, output;
		attribute boolean thru;
	};

	interface StereoCompressorGuiFactory : GuiFactory {
	};

	interface Synth_STEREO_PITCH_SHIFT : StereoEffect {
		attribute float speed, frequency;
	};

	interface Synth_STEREO_PITCH_SHIFT_FFT : StereoEffect {
		attribute float speed, scaleFactor;
		attribute long frameSize, oversample;
	};

	interface Synth_STEREO_FIR_EQUALIZER : StereoEffect {
		attribute sequence<GraphPoint> frequencies;
		attribute long taps;
	};

	interface StereoFirEqualizerGuiFactory : GuiFactory {
	};

	interface Synth_FREEVERB : StereoEffect {
		attribute float roomsize, damp, wet, dry, width, mode;
	};

	interface FreeverbGuiFactory : GuiFactory {
	};

	interface Effect_WAVECAPTURE : StereoEffect {
		attribute string filename;
	};

	interface StereoVolumeControlGui : LayoutBox  {
		/**
			Creates a Gui for a StereoVolumeControl.
			This should be the most often used function.
		*/
		void constructor( Arts::StereoVolumeControl svc );
		/*
			The direction from min to max for all elements.
			The elements will be order 90 degree clockwise to it.
		*/
		//attribute Direction direction; // Is already in LayoutBox

		/// The title of this volumecontrol
		attribute string title;
		/// the minimum and maximum value for levelmeter(only min, max is 0dB) and volumecontrol
		attribute float dbmin, dbmax;

		/**
			The elements separate:
				- the two levelmeter
				- the volumefader
				- the tickmarks for levelmeter and volumefader
				- the Label showing the title of the VolumeControl
			Use this only if you want to connect them to own devices.
		*/
		readonly attribute LevelMeter left, right;
		readonly attribute VolumeFader fader;
		readonly attribute Tickmarks levelmetertickmarks, volumefadertickmarks;
		readonly attribute Label label;

		/**
			Couples the two VolumeSlider
			Is currently useless since StereoVolumeControl::scaleFactor is
			only one value for both channels.
		*/
		attribute boolean couple;

	};

	interface StereoVolumeControlGuiFactory : Arts::GuiFactory {};
};