summaryrefslogtreecommitdiff
path: root/objects/faust/phaser_stereo_float.axo
blob: b5632bd85cea6dd9bda59de456f430ede2abd27a (about) (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
<objdefs>
   <obj.normal id="phaser_stereo_float" uuid="c5fac2db26a58c24e984c8fc7ac529193898cad1" sha="2148880b2a099a2582ec29deabcc2fd80cba0195">
   <sDescription>Phaser Stereo (from Faust)</sDescription>
      <author>Ricardo Wurmus</author>
      <license>GPL</license>
      <helpPatch/>
      <inlets>
         <frac32buffer name="in" description="in"/>
      </inlets>
      <outlets>
         <frac32buffer.bipolar name="left" description="left output"/>
         <frac32buffer.bipolar name="right" description="right output"/>
      </outlets>
      <params>
         <bool32.tgl name="fcheckbox0" description="VibratoMode: direct/vibrato"/>
         <bool32.tgl name="fcheckbox1" description="linear/invert"/>
         <!-- values are given as: default, min, max, increment? -->
         <!-- They all need to be remapped to the -64.0..0..64.0 range -->

         <!-- 1.0f, 0.0f, 1.0f, 0.01f -->
         <frac32.u.map description="Depth" name="fslider0"/>

         <!-- 0.0f, 0.0f, 1.0f, 0.01f -->
         <frac32.u.map description="feedback gain" name="fslider1"/>

         <!-- 1e+03f, 1e+01f, 5e+03f, 1.0f -->
         <frac32.s.map.pitch description="Notch width (Hz)" name="fslider3"/>

         <!-- 0.5f, 0.0f, 1e+01f, 0.01f -->
         <frac32.u.map description="Speed (Hz)" name="fslider4"/>
        
         <!-- 1e+02f, 2e+01f, 5e+03f, 1.0f -->
         <frac32.s.map.pitch description="MinNotch1Freq (Hz)" name="fslider5"/>

         <!-- 8e+02f, 2e+01f, 1e+04f, 1.0f -->
         <frac32.s.map.pitch description="MaxNotch1Freq (Hz)" name="fslider6"/>
        
         <!-- 1.5f, 1.1f, 4.0f, 0.01f -->
         <frac32.u.map description="NotchFreq (Hz)" name="fslider7"/>
      </params>
      <displays/>
      <attribs/>
      <includes>
         <include>./phaser_stereo_float.cpp</include>
      </includes>
      
      <code.declaration><![CDATA[
Dsp phaser;
]]></code.declaration>
      <code.init><![CDATA[
      
      phaser.init(48000);
      ]]></code.init>
      <code.krate><![CDATA[
      phaser.compute(BUFSIZE,
                     &inlet_in,
                     &outlet_left[0],
                     &outlet_right[0],
                     param_fcheckbox0,
                     param_fcheckbox1,
                     param_fslider0,
                     param_fslider1,
                     param_fslider3,
                     param_fslider4,
                     param_fslider5,
                     param_fslider6,
                     param_fslider7);
]]></code.krate>
   </obj.normal>
</objdefs>