<instrument type='blue.orchestra.BlueSynthBuilder' editEnabled='true'>
  <name>SFinst</name>
  <comment>
DESCRIPTION:

SFinst, based on the sfinstr3 opcode, loads the instruments of a Soundfont. So it does NOT use the Presets of the Soundfont, but the instruments the Presets are made of. 

SFinst is suited for use in microtonal compositions; for instance, the PianoRoll Object can contain an arbitrary tone scale, SFinst will follow the notes nicely when microtuned. 

SFinst can use midi note numbers as entries for p4, but also frequencies.  Set the parameter &apos;scoreP4&apos; accordingly.
A PianoRoll for example, must be set to Pch Generation --&gt; Frequency (and not the Midi note pitch), while a PianoRoll using the familiar 12TET set Pch Generation --&gt; MIDI.
Or use the AL.

Velocity (= p5) is from 0 - 1, but scaled to 0-127 according to the SF expectency. It then follows the normal Soundfont/midi protocol.

Reason for this instrument is to have easy acces to those well-known acoustical musical instruments but with different and interesting transformation options and microtonality. That makes the well-known and mostly harmonic sounds &quot;only&quot; basic material to start molding new sounds with an already acoustal property.

ATTENTION: SoundFont Presets can be made of stereo samples. According to SF Protocol, these samples are divided over 2 mono Instruments, each with its own number. 
This means that if you select an Instrument, you load only the Left channel or the Right channel if it is part of a stereo sample.
There is a checkbox that makes the mono sound a pseudostereo sound by panning the notes freely over the stereo image.

note example:
i2	0	0.8	60	1.0             ; P4 = midi value, P5 = amplitude
i2	0	0.2	261.625565	1.0     ; P4 = frequency, P5 = amplitude


CONTROLLERS:

see the help balloon when hovering over the controllers in the instrument. Help can be turned off by pressing the &apos;I&apos; button next to the play bar.


---

version 3.2, December 2020
- added color option, for accessing a sample on a different key
- changed from mono reading to stereo reading of SF

version 3.1, November 2020
- added tremolo envelope

version 3.0, October 2020
- big overhaul: new filters
- filters have amplitude or frequency/pitch followers (exponentially)
- switch for P4 = frequency or MidiPitch
- 2 types of filter envelopes, can be mixed
- optional Score Module

version 2.0, July 2020
- big changes in: dynamics, vibrato, 

version 1.1, August 2019
- added Show Midi Key, so you know what keys are hit and adjust the range of the preset accordingly
- added Depth slider for filters

version 1, August 2019
- first version- that&apos;s why i call it version 1
</comment>
  <globalOrc>gisf&lt;INSTR_ID&gt;   sfload &lt;file&gt;
;
if i(&lt;SF:show instruments&gt;) == 1 then 
    sfilist gisf&lt;INSTR_ID&gt;
endif

</globalOrc>
  <globalSco/>
  <instrumentText>
;================================init===========================================

inum    =   p4                                                                  ; frequency in Hz
iamp    =   p5 * 127                                                            ; midi velocity         

if (i(&lt;scoreP4&gt;) == 0) then                                                     ; p4 = frequency                                                   
    inumber = ftom:i(inum + .000001)   
endif

if &lt;pitch slider&gt; == 1 then                                                     ; use pitch slider to override
    kpitch  =   &lt;pitch coarse&gt; + &lt;pitch fine&gt;
else
    kpitch  =   1
endif

;=========================set envelopes=========================================

if i(&lt;amplitude exponential switch&gt;) == 1 then
    kenvamp loopxseg    1/p3, 0, 0, &lt;envelope_amplitude envelope2&gt;, 0           ; main envelope
else
    kenvamp loopxseg    1/p3, 0, 0, &lt;envelope_amplitude envelope2&gt;, 0 
endif 

ktremolo loopxseg    (&lt;rate amplitude envelope&gt;/p3), 0, 0, &lt;envelope_tremolo envelope&gt;, 0 ; create tremolo envelope

atremolo     interp  ktremolo
aampenv     interp  kenvamp

if i(&lt;filter exponential switch&gt;) == 1 then                                     ; create filter envelope
    kenvfilter loopxseg    (&lt;rate filter envelope&gt;/p3), 0, 0, &lt;envelope_filter envelope&gt;, 0        ; exponential envelope
else
    kenvfilter loopseg     (&lt;rate filter envelope&gt;/p3), 0, 0, &lt;envelope_filter envelope&gt;, 0        ; or linear envelepe
endif

kpitchbend  loopxseg     &lt;rate pitch envelope&gt;/p3, 0, 0, &lt;envelope_pitch bend envelope&gt;, 0         ; exponential envelope
kglissando  linseg  0, p3, p6
;================================================================================

if (&lt;pitch bend envelope&gt; == 0) then                                           ; switch for pitch bend
    kpitchbend = 1
endif

ktuning =   &lt;tuning&gt;                                                            ; set coarse tuning
if &lt;pitch bend envelope&gt; == 1 then                                              ; add envelope pitchbend
    ktuning  =   &lt;tuning&gt; * kpitchbend   
endif  

;===========================vibrato=============================================

if (&lt;VibratoON&gt; == 1)  then
    if i(&lt;vibrato fade in&gt;) == 1 then
        kvibfade_in   expseg 0.01, p3, 1                                        ; fade in vibrato
    else
        kvibfade_in =   1                                                       ; vibrato starts right away
    endif

    kvib = lfo3(&lt;vibrato speed&gt;, &lt;vibrato wave&gt;)
    kvib    *=  &lt;vibrato depth&gt; * kvibfade_in
endif

;========================SoundFont==============================================

kmidifreq   =   ktuning * kpitch + kvib
kfrequency  =   inum * ktuning * kpitch + (kvib*300)

istart_sample   =   i(&lt;SF playback offset&gt;)   + p7                                  ; playback position in SF                                  

if changed2(&lt;SF playback offset&gt;) == 1  then
    reinit  STARTPLAYBACK
endif

;                            iamp,   inotenum,   xamp,     xfreq,      instrnum,      ifilhandle ,    iflag  , ioffset
if (&lt;scoreP4&gt; == 1) then                                                      ; switch between MIDI score events or not
    STARTPLAYBACK:
    asigFL, asigFR sfinstr3  int(iamp),  inum,   .00001 * &lt;pregain&gt; * iamp, kmidifreq, &lt;SFinstrument&gt;, gisf&lt;INSTR_ID&gt;, 0, istart_sample ; midi note
    rireturn
else
    STARTPLAYBACK:
    asigFL, asigFR sfinstr3  int(iamp), inumber + &lt;sample of other key&gt; + p9, .00001 * &lt;pregain&gt; * iamp, kfrequency+kglissando, &lt;SFinstrument&gt;, gisf&lt;INSTR_ID&gt;, 1, istart_sample ; freq in Hz
    rireturn
    if i(&lt;show midi key&gt;) == 1 then
        prints &quot;\nINSTR %d: MIDI KEY = %5.4f, AND IS USING SAMPLE (COLOR) OF KEY = %5.4f\n\n&quot;, &lt;INSTR_ID&gt;, inumber, inumber + &lt;sample of other key&gt; + p9
    endif
endif

if (&lt;pseudostereo&gt; == 1) then                                                   ; pseudostereo for mono sounds
    ipan    random  0.1, .9
    asigFL, asigFR    pan2    asigFL, ipan
endif
;================================filter=========================================

if (&lt;filterON&gt; == 1) then                                          ; switch filter ON by checkbox or p6

; switch for amplitude or frequency dependency
    if (&lt;filter follower&gt; == 0) then
        acutoff =   &lt;filter frequency cutoff&gt;
    elseif (&lt;filter follower&gt; == 1) then                                        ; amp --&gt; filter
        kfiltcut    =   &lt;filter frequency cutoff&gt;
        kurve    logcurve iamp, 10
        kampfilter    =   kfiltcut * (kurve) 
        acutoff =   kfiltcut * kampfilter 
    elseif (&lt;filter follower&gt; == 2) then                                        ; -(amp) --&gt; filter
        kfiltcut    =   &lt;filter frequency cutoff&gt;
        kurve    logcurve iamp, 17
        kampfilter    =   kfiltcut / kurve    
        acutoff =   kfiltcut * kampfilter
    elseif (&lt;filter follower&gt; == 3) then                                        ; key --&gt; filter
        acutoff = limit(octcps(inum) - 4.35, 0, 10)                             ; frequency to filter
    elseif (&lt;filter follower&gt; == 4) then
        koct = limit(octcps(inum) - 4.35, 0, 10)
        acutoff = abs(&lt;filter frequency cutoff&gt; - koct + 5)                     ; avoid negative freqs
    endif

    if (&lt;filter envelopes&gt; == 0) then                                           ; envelopes disabled
        ; do nothing, but pass through
    elseif (&lt;filter envelopes&gt; == 1) then                                       ; switch for ADS envelope
        aretrig init 1
        agate = 1
        acutenv adsr140 agate, aretrig, &lt;filter ads attack&gt;, &lt;filter ads decay&gt;, &lt;filter ads sustain&gt;, 0
        acutoff *=  acutenv * &lt;filter ads depth&gt; 
    elseif (&lt;filter envelopes&gt; == 2) then                                       ; graphical envelope
        acutoff   *=  (kenvfilter * &lt;filter envelope depth&gt;)
    elseif (&lt;filter envelopes&gt; == 3) then                                       ; switch for ADS envelope and graphical combined
        acuto   =   (kenvfilter  * &lt;filter envelope depth&gt; * 3.2)
        aretrig init 1
        agate = 1
        afilterads adsr140 agate, aretrig, &lt;filter ads attack&gt;, &lt;filter ads decay&gt;, &lt;filter ads sustain&gt;, 0
        acutoff = acuto + (afilterads * &lt;filter ads depth&gt; * 3.2)
    endif

    acutoff *=  &lt;filter total depth&gt;                                            ; scale total depth of filters
    acutoff = cpsoct:a(4.35 + limit(acutoff, 0, 10))                            ; finally convert to frequencies
    acutoff  limit   acutoff, 10, 21000                                         ; limit frequency band of filter, a safeguard

;filter opcode section
    kQ = &lt;filter resonance&gt;	
    al, abpL, ahpL  zdf_2pole_mode  asigFL, acutoff, kQ                         ; don&apos;t use lowpass filter here
    ar, abpR, ahpR  zdf_2pole_mode  asigFR, acutoff, kQ                         ; use only for bandpass and highpass (12 dB)
    alpL            zdf_ladder      asigFL, acutoff, kQ                         ; but use this lowpass (24 dB)
    alpR            zdf_ladder      asigFR, acutoff, kQ
    alpL    *=  &lt;filter lowpass gain&gt;                                           ; filters gain Left
    ahpL    *=  &lt;filter highpass gain&gt;
    abpL    *=  &lt;filter bandpass gain&gt;

    alpR    *=  &lt;filter lowpass gain&gt;                                           ; filters gain Right
    ahpR    *=  &lt;filter highpass gain&gt;
    abpR    *=  &lt;filter bandpass gain&gt;

;gain of filters
    asigL   =   (ahpL + alpL + abpL) * &lt;output gain left&gt;                       ; mix all filter gains
    asigR   =   (ahpR + alpR + abpR) * &lt;output gain right&gt; 

else
    asigL    =   asigFL * &lt;output gain left&gt;                                    ; gain without filters 
    asigR    =   asigFR * &lt;output gain right&gt;
endif

;=======================gains===================================================
aLeft   =   asigL * atremolo  * aampenv
aRight  =   asigR * atremolo  * aampenv
blueMixerOut aLeft, aRight
blueMixerOut &quot;SubChannel1&quot;, aLeft * p8 ,aRight * p8
</instrumentText>
  <alwaysOnInstrumentText></alwaysOnInstrumentText>
  <graphicInterface editEnabled='false'>
    <gridSettings>
      <width>5</width>
      <height>2</height>
      <gridStyle>DOT</gridStyle>
      <snapGridEnabled>true</snapGridEnabled>
    </gridSettings>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
      <objectName></objectName>
      <x>0</x>
      <y>0</y>
      <groupName>Group</groupName>
      <backgroundColor>0x00000033</backgroundColor>
      <borderColor>0x000000ff</borderColor>
      <labelTextColor>0xffffffff</labelTextColor>
      <titleEnabled>true</titleEnabled>
      <width>20</width>
      <height>20</height>
      <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
        <objectName></objectName>
        <x>1115</x>
        <y>0</y>
        <comment>Score Module - use this to add extra P-fields in Score and instrumentcode</comment>
        <groupName>Score Module</groupName>
        <backgroundColor>0x66666600</backgroundColor>
        <borderColor>0x000000ff</borderColor>
        <labelTextColor>0xff0000ff</labelTextColor>
        <titleEnabled>false</titleEnabled>
        <width>137</width>
        <height>20</height>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>14</x>
          <y>34</y>
          <label>4</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
          <objectName></objectName>
          <x>28</x>
          <y>197</y>
          <value></value>
          <textFieldWidth>100</textFieldWidth>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
          <objectName></objectName>
          <x>28</x>
          <y>134</y>
          <value>sample key</value>
          <textFieldWidth>100</textFieldWidth>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>6</x>
          <y>159</y>
          <label>10</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>14</x>
          <y>97</y>
          <label>7</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
          <objectName></objectName>
          <x>28</x>
          <y>239</y>
          <value></value>
          <textFieldWidth>100</textFieldWidth>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>6</x>
          <y>222</y>
          <label>13</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
          <objectName></objectName>
          <x>28</x>
          <y>71</y>
          <value>glissando</value>
          <textFieldWidth>100</textFieldWidth>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
          <objectName></objectName>
          <x>28</x>
          <y>260</y>
          <value></value>
          <textFieldWidth>100</textFieldWidth>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>14</x>
          <y>53</y>
          <label>5</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>14</x>
          <y>74</y>
          <label>6</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>6</x>
          <y>179</y>
          <label>11</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>36</x>
          <y>53</y>
          <label>volume</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
          <objectName></objectName>
          <x>28</x>
          <y>113</y>
          <value>reverb send</value>
          <textFieldWidth>100</textFieldWidth>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
          <objectName></objectName>
          <x>28</x>
          <y>178</y>
          <value></value>
          <textFieldWidth>100</textFieldWidth>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
          <objectName></objectName>
          <x>28</x>
          <y>219</y>
          <value></value>
          <textFieldWidth>100</textFieldWidth>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
          <objectName></objectName>
          <x>28</x>
          <y>156</y>
          <value></value>
          <textFieldWidth>100</textFieldWidth>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>6</x>
          <y>199</y>
          <label>12</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>36</x>
          <y>34</y>
          <label>frequency</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>6</x>
          <y>243</y>
          <label>14</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>14</x>
          <y>117</y>
          <label>8</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>14</x>
          <y>138</y>
          <label>9</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>4</x>
          <y>10</y>
          <label>Pfield description</label>
          <font>
            <name>System Bold</name>
            <size>14.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
          <objectName></objectName>
          <x>28</x>
          <y>93</y>
          <value>start time</value>
          <textFieldWidth>100</textFieldWidth>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>6</x>
          <y>263</y>
          <label>15</label>
          <font>
            <name>System Regular</name>
            <size>14.0</size>
          </font>
        </bsbObject>
      </bsbObject>
      <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
        <objectName></objectName>
        <x>0</x>
        <y>0</y>
        <groupName>l---------------------------- SF i n s t  ----------------------------l</groupName>
        <backgroundColor>0x4d4d4dff</backgroundColor>
        <borderColor>0x4d1a4dff</borderColor>
        <labelTextColor>0xffffffff</labelTextColor>
        <titleEnabled>true</titleEnabled>
        <width>20</width>
        <height>20</height>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
          <objectName></objectName>
          <x>10</x>
          <y>10</y>
          <comment>import SoundFont</comment>
          <groupName>load SoundFont</groupName>
          <backgroundColor>0x669966ff</backgroundColor>
          <borderColor>0x1a1a1aff</borderColor>
          <labelTextColor>0xffffffff</labelTextColor>
          <titleEnabled>true</titleEnabled>
          <width>1095</width>
          <height>20</height>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
            <objectName>pregain</objectName>
            <x>923</x>
            <y>74</y>
            <comment>pregain of preset volume</comment>
            <automationAllowed>true</automationAllowed>
            <minimum>0.01</minimum>
            <maximum>3.0</maximum>
            <bdresolution>0.01</bdresolution>
            <value>0.33</value>
            <sliderWidth>90</sliderWidth>
            <randomizable>true</randomizable>
            <valueDisplayEnabled>true</valueDisplayEnabled>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>2</x>
            <y>16</y>
            <label>soundfont</label>
            <font>
              <name>System Bold</name>
              <size>20.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
            <objectName>pitch coarse</objectName>
            <x>120</x>
            <y>70</y>
            <comment>coarse tuning of preset</comment>
            <automationAllowed>true</automationAllowed>
            <minimum>0.0</minimum>
            <maximum>3.0</maximum>
            <bdresolution>0.001</bdresolution>
            <value>0.594</value>
            <sliderWidth>650</sliderWidth>
            <randomizable>true</randomizable>
            <valueDisplayEnabled>true</valueDisplayEnabled>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBTextField'>
            <objectName>SFinstrument</objectName>
            <x>710</x>
            <y>18</y>
            <comment>instrument number that can be found when &apos;show instrument list&apos; is checked. Can be in the hundreds...</comment>
            <value>0</value>
            <textFieldWidth>49</textFieldWidth>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>76</x>
            <y>84</y>
            <label>__</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
            <objectName>tuning</objectName>
            <x>923</x>
            <y>96</y>
            <comment>overall tuning</comment>
            <automationAllowed>true</automationAllowed>
            <minimum>0.01</minimum>
            <maximum>4.0</maximum>
            <bdresolution>0.01</bdresolution>
            <value>1.0</value>
            <sliderWidth>90</sliderWidth>
            <randomizable>true</randomizable>
            <valueDisplayEnabled>true</valueDisplayEnabled>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBFileSelector'>
            <objectName>file</objectName>
            <x>120</x>
            <y>15</y>
            <comment>choose SoundFont. Rightclick and there is an option to opy To Media Folder</comment>
            <fileName>/media/menno/datae/soundfonts2uitzoeken/SoundFonts - The Collection/ZSF Distribution/SoundFonts/Colossus.SF2/4400/021 Accordion.sf2</fileName>
            <textFieldWidth>485</textFieldWidth>
            <stringChannelEnabled>true</stringChannelEnabled>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBDropdown' version='2'>
            <objectName>sample of other key</objectName>
            <x>796</x>
            <y>18</y>
            <comment>a value of 0 means that the sample on the key being used is the one belonging to the midi key. If other than 0, samples that belong to other keys are transposed so, that they match the frequency of the midi key. Often this results in different colors.</comment>
            <automationAllowed>false</automationAllowed>
            <selectedIndex>36</selectedIndex>
            <fontSize>12</fontSize>
            <randomizable>true</randomizable>
            <bsbDropdownItemList>
              <bsbDropdownItem uniqueId='668764333'>
                <name>-36</name>
                <value>-36</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764334'>
                <name>-35</name>
                <value>-35</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764335'>
                <name>-34</name>
                <value>-34</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764336'>
                <name>-33</name>
                <value>-33</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764337'>
                <name>-32</name>
                <value>-32</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764338'>
                <name>-31</name>
                <value>-31</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764339'>
                <name>-30</name>
                <value>-30</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764340'>
                <name>-29</name>
                <value>-29</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764341'>
                <name>-28</name>
                <value>-28</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764342'>
                <name>-27</name>
                <value>-27</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764343'>
                <name>-26</name>
                <value>-26</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764344'>
                <name>-25</name>
                <value>-25</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764345'>
                <name>-24</name>
                <value>-24</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764346'>
                <name>-23</name>
                <value>-23</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764347'>
                <name>-22</name>
                <value>-22</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764348'>
                <name>-21</name>
                <value>-21</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764349'>
                <name>-20</name>
                <value>-20</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764350'>
                <name>-19</name>
                <value>-19</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764351'>
                <name>-18</name>
                <value>-18</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764352'>
                <name>-17</name>
                <value>-17</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764353'>
                <name>-16</name>
                <value>-16</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764354'>
                <name>-15</name>
                <value>-15</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764355'>
                <name>-14</name>
                <value>-14</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764356'>
                <name>-13</name>
                <value>-13</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764357'>
                <name>-12</name>
                <value>-12</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764358'>
                <name>-11</name>
                <value>-11</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764359'>
                <name>-10</name>
                <value>-10</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764360'>
                <name>-9</name>
                <value>-9</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764361'>
                <name>-8</name>
                <value>-8</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764362'>
                <name>-7</name>
                <value>-7</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764363'>
                <name>-6</name>
                <value>-6</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764364'>
                <name>-5</name>
                <value>-5</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764365'>
                <name>-4</name>
                <value>-4</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764366'>
                <name>-3</name>
                <value>-3</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764367'>
                <name>-2</name>
                <value>-2</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764368'>
                <name>-1</name>
                <value>-1</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764369'>
                <name>0</name>
                <value>0</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764370'>
                <name>1</name>
                <value>1</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764371'>
                <name>2</name>
                <value>2</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764372'>
                <name>3</name>
                <value>3</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764373'>
                <name>4</name>
                <value>4</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764374'>
                <name>5</name>
                <value>5</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764375'>
                <name>6</name>
                <value>6</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764376'>
                <name>7</name>
                <value>7</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764377'>
                <name>8</name>
                <value>8</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764378'>
                <name>9</name>
                <value>9</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764379'>
                <name>10</name>
                <value>10</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764380'>
                <name>11</name>
                <value>11</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764381'>
                <name>12</name>
                <value>12</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764382'>
                <name>13</name>
                <value>13</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764383'>
                <name>14</name>
                <value>14</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764384'>
                <name>15</name>
                <value>15</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764385'>
                <name>16</name>
                <value>16</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764386'>
                <name>17</name>
                <value>17</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764387'>
                <name>18</name>
                <value>18</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764388'>
                <name>19</name>
                <value>19</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764389'>
                <name>20</name>
                <value>20</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764390'>
                <name>21</name>
                <value>21</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764391'>
                <name>22</name>
                <value>22</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764392'>
                <name>23</name>
                <value>23</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764393'>
                <name>24</name>
                <value>24</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764394'>
                <name>25</name>
                <value>25</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764395'>
                <name>26</name>
                <value>26</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764396'>
                <name>27</name>
                <value>27</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764397'>
                <name>28</name>
                <value>28</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764398'>
                <name>29</name>
                <value>29</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764399'>
                <name>30</name>
                <value>30</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764400'>
                <name>31</name>
                <value>31</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764401'>
                <name>32</name>
                <value>32</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764402'>
                <name>33</name>
                <value>33</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764403'>
                <name>34</name>
                <value>34</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764404'>
                <name>35</name>
                <value>35</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764405'>
                <name>36</name>
                <value>36</value>
              </bsbDropdownItem>
            </bsbDropdownItemList>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>640</x>
            <y>22</y>
            <label>instrument</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>90</x>
            <y>90</y>
            <label>l</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBDropdown' version='2'>
            <objectName>scoreP4</objectName>
            <x>875</x>
            <y>6</y>
            <comment>switch for Pfield 4 </comment>
            <automationAllowed>true</automationAllowed>
            <selectedIndex>0</selectedIndex>
            <fontSize>12</fontSize>
            <randomizable>true</randomizable>
            <bsbDropdownItemList>
              <bsbDropdownItem uniqueId='668764406'>
                <name>P4 = frequency</name>
                <value>0</value>
              </bsbDropdownItem>
              <bsbDropdownItem uniqueId='668764407'>
                <name>P4 = Midi Pitch</name>
                <value>1</value>
              </bsbDropdownItem>
            </bsbDropdownItemList>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>75</x>
            <y>75</y>
            <label>coarse</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
            <objectName>SF:show instruments</objectName>
            <x>875</x>
            <y>34</y>
            <comment>show all instruments in Soundfont. Left channel and Right channel of 1 instrument have become 2 different numbers, so instrument is always mono</comment>
            <automationAllowed>true</automationAllowed>
            <label>show instrument list</label>
            <selected>false</selected>
            <randomizable>true</randomizable>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
            <objectName>SF playback offset</objectName>
            <x>118</x>
            <y>48</y>
            <comment>start playback in samples of presets</comment>
            <automationAllowed>true</automationAllowed>
            <minimum>0.0</minimum>
            <maximum>48000.0</maximum>
            <bdresolution>1</bdresolution>
            <value>0.0</value>
            <sliderWidth>652</sliderWidth>
            <randomizable>true</randomizable>
            <valueDisplayEnabled>true</valueDisplayEnabled>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>40</x>
            <y>90</y>
            <label>pitch</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>763</x>
            <y>22</y>
            <label>color</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>81</x>
            <y>55</y>
            <label>offset</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
            <objectName>pitch fine</objectName>
            <x>120</x>
            <y>95</y>
            <comment>fine tuning of preset</comment>
            <automationAllowed>true</automationAllowed>
            <minimum>0.0</minimum>
            <maximum>0.06</maximum>
            <bdresolution>0.005</bdresolution>
            <value>0.005</value>
            <sliderWidth>650</sliderWidth>
            <randomizable>true</randomizable>
            <valueDisplayEnabled>true</valueDisplayEnabled>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>90</x>
            <y>100</y>
            <label>fine</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>876</x>
            <y>78</y>
            <label>pregain</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
            <objectName>pitch slider</objectName>
            <x>20</x>
            <y>90</y>
            <comment>switch pitch on/off</comment>
            <automationAllowed>true</automationAllowed>
            <label/>
            <selected>false</selected>
            <randomizable>true</randomizable>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
            <objectName>show midi key</objectName>
            <x>875</x>
            <y>56</y>
            <comment>show what MIDI key would have been for this frequency</comment>
            <automationAllowed>true</automationAllowed>
            <label>show midi key ##</label>
            <selected>false</selected>
            <randomizable>true</randomizable>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
            <objectName></objectName>
            <x>875</x>
            <y>102</y>
            <label>tuning</label>
            <font>
              <name>System Regular</name>
              <size>12.0</size>
            </font>
          </bsbObject>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
          <objectName></objectName>
          <x>10</x>
          <y>162</y>
          <groupName>amplitude and filter envelope</groupName>
          <backgroundColor>0x669966ff</backgroundColor>
          <borderColor>0x1a1a1aff</borderColor>
          <labelTextColor>0xffffffff</labelTextColor>
          <titleEnabled>true</titleEnabled>
          <width>1063</width>
          <height>269</height>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
            <objectName></objectName>
            <x>861</x>
            <y>192</y>
            <groupName>vibrato</groupName>
            <backgroundColor>0x669966ff</backgroundColor>
            <borderColor>0x000000ff</borderColor>
            <labelTextColor>0xffffffff</labelTextColor>
            <titleEnabled>false</titleEnabled>
            <width>20</width>
            <height>104</height>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
              <objectName>vibrato depth</objectName>
              <x>124</x>
              <y>8</y>
              <comment>depth of the vibrato</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>0.0</minimum>
              <maximum>0.15</maximum>
              <value>0.15</value>
              <knobWidth>40</knobWidth>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>true</valueDisplayEnabled>
              <label>depth</label>
              <labelEnabled>true</labelEnabled>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
              <objectName>vibrato wave</objectName>
              <x>81</x>
              <y>22</y>
              <automationAllowed>true</automationAllowed>
              <minimum>0.0</minimum>
              <maximum>5.0</maximum>
              <bdresolution>1</bdresolution>
              <value>0.0</value>
              <sliderHeight>58</sliderHeight>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>false</valueDisplayEnabled>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
              <objectName>vibrato speed</objectName>
              <x>174</x>
              <y>8</y>
              <comment>frequency rate of vibrato</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>0.0</minimum>
              <maximum>10.0</maximum>
              <value>7.6</value>
              <knobWidth>40</knobWidth>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>true</valueDisplayEnabled>
              <label>speed</label>
              <labelEnabled>true</labelEnabled>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
              <objectName>vibrato fade in</objectName>
              <x>10</x>
              <y>32</y>
              <comment>vibrato sets in slowly and is at full at the end of the note event</comment>
              <automationAllowed>true</automationAllowed>
              <label>fade in</label>
              <selected>false</selected>
              <randomizable>true</randomizable>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>85</x>
              <y>8</y>
              <label>type</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
              <objectName>VibratoON</objectName>
              <x>10</x>
              <y>10</y>
              <comment>switch for Vibrato ON or OFF</comment>
              <automationAllowed>true</automationAllowed>
              <label>vibrato</label>
              <selected>false</selected>
              <randomizable>true</randomizable>
            </bsbObject>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
            <objectName></objectName>
            <x>0</x>
            <y>0</y>
            <groupName>graphic envelopes</groupName>
            <backgroundColor>0x669966ff</backgroundColor>
            <borderColor>0x000000ff</borderColor>
            <labelTextColor>0xffffffff</labelTextColor>
            <titleEnabled>false</titleEnabled>
            <width>1084</width>
            <height>20</height>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>1019</x>
              <y>86</y>
              <label>output</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
              <objectName>output gain left</objectName>
              <x>1011</x>
              <y>98</y>
              <comment>output level Left channel</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>0.0</minimum>
              <maximum>1.0</maximum>
              <bdresolution>0.05</bdresolution>
              <value>0.35</value>
              <sliderHeight>70</sliderHeight>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>false</valueDisplayEnabled>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
              <objectName>pitch bend envelope</objectName>
              <x>931</x>
              <y>146</y>
              <comment>switch for pitch envelope</comment>
              <automationAllowed>true</automationAllowed>
              <label/>
              <selected>false</selected>
              <randomizable>true</randomizable>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>870</x>
              <y>168</y>
              <label>freq. rate</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>1023</x>
              <y>168</y>
              <label>L</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
              <objectName>filter exponential switch</objectName>
              <x>952</x>
              <y>34</y>
              <comment>let filter envelope be exponential</comment>
              <automationAllowed>true</automationAllowed>
              <label>filter  exponential</label>
              <selected>false</selected>
              <randomizable>true</randomizable>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>1047</x>
              <y>168</y>
              <label>R</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
              <objectName>rate pitch envelope</objectName>
              <x>905</x>
              <y>24</y>
              <comment>frequency rate of pitch envelope</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>1.0</minimum>
              <maximum>40.0</maximum>
              <bdresolution>0.05</bdresolution>
              <value>1.0</value>
              <sliderHeight>142</sliderHeight>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>false</valueDisplayEnabled>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
              <objectName>amplitude exponential switch</objectName>
              <x>952</x>
              <y>12</y>
              <comment>let amplitude envelope be exponential</comment>
              <automationAllowed>true</automationAllowed>
              <label>amp exponential</label>
              <selected>true</selected>
              <randomizable>true</randomizable>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>907</x>
              <y>10</y>
              <label>pitch</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>857</x>
              <y>10</y>
              <label>tremolo</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
              <objectName>rate amplitude envelope</objectName>
              <x>863</x>
              <y>24</y>
              <comment>frequency rate of amplitude envelope</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>1.0</minimum>
              <maximum>40.0</maximum>
              <bdresolution>0.05</bdresolution>
              <value>1.0</value>
              <sliderHeight>142</sliderHeight>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>false</valueDisplayEnabled>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
              <objectName>pseudostereo</objectName>
              <x>952</x>
              <y>56</y>
              <comment>will create a stereo image by pannign notes randomly</comment>
              <automationAllowed>true</automationAllowed>
              <label>pseudostereo</label>
              <selected>false</selected>
              <randomizable>true</randomizable>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLineObject'>
              <objectName>envelope</objectName>
              <x>10</x>
              <y>10</y>
              <comment>draw envelopes for amplitude, filter and pitch</comment>
              <canvasWidth>845</canvasWidth>
              <canvasHeight>150</canvasHeight>
              <xMax>1.0</xMax>
              <relativeXValues>true</relativeXValues>
              <separatorType>COMMA</separatorType>
              <leadingZero>false</leadingZero>
              <locked>false</locked>
              <lines>
                <line name='tremolo envelope' version='2' max='1.0' min='0.0' bdresolution='-1' color='-52378' rightBound='true' endPointsLinked='false'>
                  <linePoint x='0.0' y='0.0'/>
                  <linePoint x='0.0' y='1.0'/>
                  <linePoint x='0.0' y='1.0'/>
                  <linePoint x='0.3301775147928994' y='0.6933333333333334'/>
                  <linePoint x='0.5976331360946746' y='0.6'/>
                  <linePoint x='0.7195266272189349' y='0.9066666666666666'/>
                  <linePoint x='0.7988165680473372' y='0.5933333333333333'/>
                  <linePoint x='0.9940828402366864' y='1.0'/>
                  <linePoint x='1.0' y='0.0'/>
                  <linePoint x='1.0' y='0.0'/>
                </line>
                <line name='filter envelope' version='2' max='1.0' min='0.0' bdresolution='-1' color='-16737793' rightBound='true' endPointsLinked='false'>
                  <linePoint x='0.0' y='0.0'/>
                  <linePoint x='0.0' y='1.0'/>
                  <linePoint x='0.49230769230769234' y='0.88'/>
                  <linePoint x='0.6473372781065089' y='0.6799999999999999'/>
                  <linePoint x='0.7734177215189874' y='0.8866666666666667'/>
                  <linePoint x='0.9159763313609467' y='0.5466666666666666'/>
                  <linePoint x='1.0' y='0.0'/>
                </line>
                <line name='pitch bend envelope' version='2' max='1.2' min='0.8' bdresolution='-1' color='-23296' rightBound='true' endPointsLinked='false'>
                  <linePoint x='0.0' y='1.0026666666666666'/>
                  <linePoint x='0.015730337078651686' y='0.9706666666666667'/>
                  <linePoint x='0.3183431952662722' y='0.9333333333333333'/>
                  <linePoint x='0.46982248520710057' y='1.0853333333333333'/>
                  <linePoint x='0.6248520710059171' y='1.0'/>
                  <linePoint x='0.8248520710059172' y='1.08'/>
                  <linePoint x='1.0' y='1.0'/>
                </line>
                <line name='amplitude envelope2' version='2' max='1.0' min='0.0' bdresolution='-1' color='-10027009' rightBound='true' endPointsLinked='false'>
                  <linePoint x='0.0' y='0.0'/>
                  <linePoint x='0.0' y='1.0'/>
                  <linePoint x='0.9751479289940829' y='1.0'/>
                  <linePoint x='1.0' y='0.0'/>
                </line>
              </lines>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
              <objectName>output gain right</objectName>
              <x>1037</x>
              <y>98</y>
              <comment>output level Right channel</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>0.0</minimum>
              <maximum>1.0</maximum>
              <bdresolution>0.05</bdresolution>
              <value>0.35</value>
              <sliderHeight>70</sliderHeight>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>false</valueDisplayEnabled>
            </bsbObject>
          </bsbObject>
          <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
            <objectName></objectName>
            <x>10</x>
            <y>194</y>
            <groupName>filters</groupName>
            <backgroundColor>0x669966ff</backgroundColor>
            <borderColor>0x000000ff</borderColor>
            <labelTextColor>0xffffffff</labelTextColor>
            <titleEnabled>false</titleEnabled>
            <width>850</width>
            <height>20</height>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
              <objectName>filter resonance</objectName>
              <x>312</x>
              <y>8</y>
              <comment>gain of feedback of filters</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>0.5</minimum>
              <maximum>25.0</maximum>
              <value>17.650000000000006</value>
              <knobWidth>40</knobWidth>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>true</valueDisplayEnabled>
              <label>resonance</label>
              <labelEnabled>true</labelEnabled>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
              <objectName>filter frequency cutoff</objectName>
              <x>271</x>
              <y>8</y>
              <comment>cutoff frequency of filters</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>0.0</minimum>
              <maximum>10.0</maximum>
              <value>1.1999999999999993</value>
              <knobWidth>40</knobWidth>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>true</valueDisplayEnabled>
              <label>cutoff</label>
              <labelEnabled>true</labelEnabled>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>188</x>
              <y>8</y>
              <label>high</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
              <objectName>filter total depth</objectName>
              <x>377</x>
              <y>8</y>
              <comment>gain of filters</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>0.01</minimum>
              <maximum>5.0</maximum>
              <value>3.7525</value>
              <knobWidth>40</knobWidth>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>true</valueDisplayEnabled>
              <label>depth</label>
              <labelEnabled>true</labelEnabled>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
              <objectName>filter bandpass gain</objectName>
              <x>220</x>
              <y>20</y>
              <comment>gain of bandpass filter</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>0.0</minimum>
              <maximum>0.5</maximum>
              <bdresolution>0.1</bdresolution>
              <value>0.0</value>
              <sliderHeight>56</sliderHeight>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>false</valueDisplayEnabled>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>218</x>
              <y>8</y>
              <label>bndP</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
              <objectName>filterON</objectName>
              <x>11</x>
              <y>8</y>
              <comment>filters ON or OFF</comment>
              <automationAllowed>true</automationAllowed>
              <label>filters</label>
              <selected>false</selected>
              <randomizable>true</randomizable>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
              <objectName>filter highpass gain</objectName>
              <x>188</x>
              <y>20</y>
              <comment>gain of highpass filter</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>0.0</minimum>
              <maximum>0.5</maximum>
              <bdresolution>0.1</bdresolution>
              <value>0.4</value>
              <sliderHeight>56</sliderHeight>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>false</valueDisplayEnabled>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
              <objectName></objectName>
              <x>161</x>
              <y>8</y>
              <label>low</label>
              <font>
                <name>System Regular</name>
                <size>12.0</size>
              </font>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBDropdown' version='2'>
              <objectName>filter follower</objectName>
              <x>11</x>
              <y>52</y>
              <comment>open and close filter depending on amplitude or frequency</comment>
              <automationAllowed>true</automationAllowed>
              <selectedIndex>1</selectedIndex>
              <fontSize>12</fontSize>
              <randomizable>true</randomizable>
              <bsbDropdownItemList>
                <bsbDropdownItem uniqueId='668764412'>
                  <name>---</name>
                  <value>0</value>
                </bsbDropdownItem>
                <bsbDropdownItem uniqueId='668764413'>
                  <name>amp follow</name>
                  <value>1</value>
                </bsbDropdownItem>
                <bsbDropdownItem uniqueId='668764414'>
                  <name>amp follow invert</name>
                  <value>2</value>
                </bsbDropdownItem>
                <bsbDropdownItem uniqueId='668764415'>
                  <name>key follow</name>
                  <value>3</value>
                </bsbDropdownItem>
                <bsbDropdownItem uniqueId='668764416'>
                  <name>key follow invert</name>
                  <value>4</value>
                </bsbDropdownItem>
              </bsbDropdownItemList>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
              <objectName></objectName>
              <x>435</x>
              <y>4</y>
              <groupName>envelopes</groupName>
              <backgroundColor>0x669966ff</backgroundColor>
              <borderColor>0x000000ff</borderColor>
              <labelTextColor>0xffffffff</labelTextColor>
              <titleEnabled>false</titleEnabled>
              <width>20</width>
              <height>20</height>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
                <objectName>filter ads attack</objectName>
                <x>7</x>
                <y>36</y>
                <comment>attack portion of envelope</comment>
                <automationAllowed>true</automationAllowed>
                <minimum>0.0</minimum>
                <maximum>1.0</maximum>
                <value>0.0</value>
                <knobWidth>31</knobWidth>
                <randomizable>true</randomizable>
                <valueDisplayEnabled>false</valueDisplayEnabled>
                <label>attack</label>
                <labelEnabled>true</labelEnabled>
                <font>
                  <name>System Regular</name>
                  <size>12.0</size>
                </font>
              </bsbObject>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
                <objectName></objectName>
                <x>7</x>
                <y>8</y>
                <label>A-D-S</label>
                <font>
                  <name>System Bold</name>
                  <size>18.0</size>
                </font>
              </bsbObject>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
                <objectName></objectName>
                <x>356</x>
                <y>10</y>
                <label>depth</label>
                <font>
                  <name>System Regular</name>
                  <size>12.0</size>
                </font>
              </bsbObject>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
                <objectName></objectName>
                <x>280</x>
                <y>10</y>
                <label>GRAPH</label>
                <font>
                  <name>System Bold</name>
                  <size>18.0</size>
                </font>
              </bsbObject>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
                <objectName>filter ads depth</objectName>
                <x>137</x>
                <y>22</y>
                <comment>gain of ADS envelope</comment>
                <automationAllowed>true</automationAllowed>
                <minimum>0.0</minimum>
                <maximum>1.0</maximum>
                <bdresolution>0.01</bdresolution>
                <value>1.0</value>
                <sliderHeight>57</sliderHeight>
                <randomizable>true</randomizable>
                <valueDisplayEnabled>false</valueDisplayEnabled>
              </bsbObject>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
                <objectName></objectName>
                <x>132</x>
                <y>8</y>
                <label>depth</label>
                <font>
                  <name>System Regular</name>
                  <size>12.0</size>
                </font>
              </bsbObject>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
                <objectName>filter ads sustain</objectName>
                <x>87</x>
                <y>36</y>
                <comment>sustain portion of envelope</comment>
                <automationAllowed>true</automationAllowed>
                <minimum>0.0</minimum>
                <maximum>1.0</maximum>
                <value>0.0</value>
                <knobWidth>31</knobWidth>
                <randomizable>true</randomizable>
                <valueDisplayEnabled>false</valueDisplayEnabled>
                <label>sustain</label>
                <labelEnabled>true</labelEnabled>
                <font>
                  <name>System Regular</name>
                  <size>12.0</size>
                </font>
              </bsbObject>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
                <objectName>filter envelope depth</objectName>
                <x>359</x>
                <y>24</y>
                <comment>gain of filter envelope</comment>
                <automationAllowed>true</automationAllowed>
                <minimum>0.0</minimum>
                <maximum>1.0</maximum>
                <bdresolution>0.05</bdresolution>
                <value>0.65</value>
                <sliderHeight>57</sliderHeight>
                <randomizable>true</randomizable>
                <valueDisplayEnabled>false</valueDisplayEnabled>
              </bsbObject>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
                <objectName>rate filter envelope</objectName>
                <x>300</x>
                <y>36</y>
                <comment>frequency rate of filter envelope</comment>
                <automationAllowed>true</automationAllowed>
                <minimum>1.0</minimum>
                <maximum>20.0</maximum>
                <value>7.65</value>
                <knobWidth>31</knobWidth>
                <randomizable>true</randomizable>
                <valueDisplayEnabled>false</valueDisplayEnabled>
                <label>rate</label>
                <labelEnabled>true</labelEnabled>
                <font>
                  <name>System Regular</name>
                  <size>12.0</size>
                </font>
              </bsbObject>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
                <objectName>filter ads decay</objectName>
                <x>49</x>
                <y>36</y>
                <comment>decay portion of envelope</comment>
                <automationAllowed>true</automationAllowed>
                <minimum>0.0</minimum>
                <maximum>1.0</maximum>
                <value>0.27999999999999997</value>
                <knobWidth>31</knobWidth>
                <randomizable>true</randomizable>
                <valueDisplayEnabled>false</valueDisplayEnabled>
                <label>decay</label>
                <labelEnabled>true</labelEnabled>
                <font>
                  <name>System Regular</name>
                  <size>12.0</size>
                </font>
              </bsbObject>
              <bsbObject type='blue.orchestra.blueSynthBuilder.BSBDropdown' version='2'>
                <objectName>filter envelopes</objectName>
                <x>171</x>
                <y>50</y>
                <comment>bypass envelopes, or choose one of them or both of them</comment>
                <automationAllowed>true</automationAllowed>
                <selectedIndex>0</selectedIndex>
                <fontSize>12</fontSize>
                <randomizable>true</randomizable>
                <bsbDropdownItemList>
                  <bsbDropdownItem uniqueId='668764408'>
                    <name>disabled</name>
                    <value>0</value>
                  </bsbDropdownItem>
                  <bsbDropdownItem uniqueId='668764409'>
                    <name>AttDecSus</name>
                    <value>1</value>
                  </bsbDropdownItem>
                  <bsbDropdownItem uniqueId='668764410'>
                    <name>Graphic</name>
                    <value>2</value>
                  </bsbDropdownItem>
                  <bsbDropdownItem uniqueId='668764411'>
                    <name>ADS+Graphic</name>
                    <value>3</value>
                  </bsbDropdownItem>
                </bsbDropdownItemList>
              </bsbObject>
            </bsbObject>
            <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
              <objectName>filter lowpass gain</objectName>
              <x>156</x>
              <y>20</y>
              <comment>gain of lowpass filter</comment>
              <automationAllowed>true</automationAllowed>
              <minimum>0.0</minimum>
              <maximum>2.5</maximum>
              <bdresolution>0.1</bdresolution>
              <value>2.5</value>
              <sliderHeight>56</sliderHeight>
              <randomizable>true</randomizable>
              <valueDisplayEnabled>false</valueDisplayEnabled>
            </bsbObject>
          </bsbObject>
        </bsbObject>
      </bsbObject>
    </bsbObject>
  </graphicInterface>
  <parameterList>
    <parameter uniqueId='-101344323' name='filter lowpass gain' label='' min='0.0' max='2.5' bdresolution='0.1' automationEnabled='false' value='2.5'>
      <line name='' version='2' max='2.5' min='0.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='2.5'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344321' name='filter follower' label='' min='0.0' max='4.0' bdresolution='1' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='4.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344319' name='filter highpass gain' label='' min='0.0' max='0.5' bdresolution='0.1' automationEnabled='false' value='0.4'>
      <line name='' version='2' max='0.5' min='0.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.4'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344317' name='filter envelope depth' label='' min='0.0' max='1.0' bdresolution='0.05' automationEnabled='false' value='0.65'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='0.05' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.65'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344315' name='filter ads decay' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.27999999999999997'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.27999999999999997'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344313' name='filter envelopes' label='' min='0.0' max='3.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='3.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344311' name='rate filter envelope' label='' min='1.0' max='20.0' bdresolution='-1' automationEnabled='false' value='7.65'>
      <line name='' version='2' max='20.0' min='1.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='7.65'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344309' name='filter ads depth' label='' min='0.0' max='1.0' bdresolution='0.01' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='0.01' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344307' name='filter ads attack' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344305' name='filter ads sustain' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344303' name='filter frequency cutoff' label='' min='0.0' max='10.0' bdresolution='-1' automationEnabled='false' value='1.1999999999999993'>
      <line name='' version='2' max='10.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.1999999999999993'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344301' name='filter resonance' label='' min='0.5' max='25.0' bdresolution='-1' automationEnabled='false' value='17.650000000000006'>
      <line name='' version='2' max='25.0' min='0.5' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='17.650000000000006'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344299' name='filter bandpass gain' label='' min='0.0' max='0.5' bdresolution='0.1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='0.5' min='0.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344297' name='filterON' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344295' name='filter total depth' label='' min='0.01' max='5.0' bdresolution='-1' automationEnabled='false' value='3.7525'>
      <line name='' version='2' max='5.0' min='0.01' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='3.7525'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344293' name='output gain right' label='' min='0.0' max='1.0' bdresolution='0.05' automationEnabled='false' value='0.35'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='0.05' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.35'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344291' name='filter exponential switch' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344289' name='rate amplitude envelope' label='' min='1.0' max='40.0' bdresolution='0.05' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='40.0' min='1.0' bdresolution='0.05' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344287' name='amplitude exponential switch' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344285' name='pseudostereo' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344283' name='rate pitch envelope' label='' min='1.0' max='40.0' bdresolution='0.05' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='40.0' min='1.0' bdresolution='0.05' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344281' name='output gain left' label='' min='0.0' max='1.0' bdresolution='0.05' automationEnabled='false' value='0.35'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='0.05' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.35'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344279' name='pitch bend envelope' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344277' name='VibratoON' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344275' name='vibrato depth' label='' min='0.0' max='0.15' bdresolution='-1' automationEnabled='false' value='0.15'>
      <line name='' version='2' max='0.15' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.15'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344273' name='vibrato wave' label='' min='0.0' max='5.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='5.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344271' name='vibrato speed' label='' min='0.0' max='10.0' bdresolution='-1' automationEnabled='false' value='7.6'>
      <line name='' version='2' max='10.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='7.6'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344269' name='vibrato fade in' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344267' name='pitch fine' label='' min='0.0' max='0.06' bdresolution='0.005' automationEnabled='false' value='0.005'>
      <line name='' version='2' max='0.06' min='0.0' bdresolution='0.005' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.005'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344265' name='SF playback offset' label='' min='0.0' max='48000.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='48000.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344263' name='pitch coarse' label='' min='0.0' max='3.0' bdresolution='0.001' automationEnabled='false' value='0.594'>
      <line name='' version='2' max='3.0' min='0.0' bdresolution='0.001' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.594'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344261' name='tuning' label='' min='0.01' max='4.0' bdresolution='0.01' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='4.0' min='0.01' bdresolution='0.01' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344259' name='scoreP4' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344257' name='pregain' label='' min='0.01' max='3.0' bdresolution='0.01' automationEnabled='false' value='0.33'>
      <line name='' version='2' max='3.0' min='0.01' bdresolution='0.01' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.33'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344255' name='show midi key' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344253' name='pitch slider' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-101344251' name='SF:show instruments' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
  </parameterList>
  <presetGroup name='Presets' currentPresetUniqueId='-1459253183' currentPresetModified='false'>
    <preset name='02' uniqueId='-693797457'>
      <setting name='SF:show presets'>true</setting>
      <setting name='SFbank'>id:1666121356</setting>
      <setting name='SFpreset'>id:1666121228</setting>
      <setting name='VibratoON'>true</setting>
      <setting name='adsr depth'>0.65</setting>
      <setting name='amplitude exponential switch'>true</setting>
      <setting name='envelope'>version=2@_@amplitude envelope:0.0:0.0:0.007594936708860759:1.0:0.7629213483146068:0.9933333333333333:0.8835443037974684:0.0:1.0:0.0:1.0:0.0@_@filter envelope:0.0:1.0:0.43820224719101125:0.9266666666666666:0.479746835443038:0.1333333333333333:0.6012658227848101:0.8066666666666666:0.6455696202531646:0.12:0.7734177215189874:0.8866666666666667:0.7734177215189874:0.040000000000000036:0.8741573033707866:0.29333333333333333:0.9696202531645569:0.7733333333333333:1.0:0.0@_@pitch bend envelope:0.0:1.0026666666666666:0.015730337078651686:0.9706666666666667:0.3235955056179775:1.0:0.7831460674157303:1.0:1.0:1.0</setting>
      <setting name='file'>/media/menno/datae/soundfonts/Gort&apos;s_MiniPiano_J1.SF2</setting>
      <setting name='filter attack'>ver2:0.68</setting>
      <setting name='filter bandpass gain'>0.0</setting>
      <setting name='filter decay'>ver2:0.84</setting>
      <setting name='filter depth'>ver2:2.3054</setting>
      <setting name='filter envelope depth'>0.45</setting>
      <setting name='filter envelopes'>id:597933803</setting>
      <setting name='filter exponential switch'>true</setting>
      <setting name='filter frequency cutoff'>ver2:3.9</setting>
      <setting name='filter highpass gain'>0.0</setting>
      <setting name='filter lowpass gain'>2.5</setting>
      <setting name='filter resonance'>ver2:16.67</setting>
      <setting name='filter sustain'>ver2:0.78</setting>
      <setting name='filterON'>true</setting>
      <setting name='follower'>id:597933801</setting>
      <setting name='gain left'>1.9</setting>
      <setting name='gain right'>1.9</setting>
      <setting name='pitch bend envelope'>false</setting>
      <setting name='pitch coarse'>0.962</setting>
      <setting name='pitch fine'>0.0</setting>
      <setting name='pitch slider'>false</setting>
      <setting name='pregain'>0.72</setting>
      <setting name='rate amplitude envelope'>1.0</setting>
      <setting name='rate filter envelope'>ver2:3.28</setting>
      <setting name='rate pitch envelope'>1.0</setting>
      <setting name='sample SF playback'>0.0</setting>
      <setting name='scoreP4'>id:597943980</setting>
      <setting name='tuning'>1.0</setting>
      <setting name='vibrato depth'>ver2:0.046</setting>
      <setting name='vibrato fade in'>true</setting>
      <setting name='vibrato speed'>ver2:5.4</setting>
      <setting name='vibrato wave'>1.0</setting>
    </preset>
    <preset name='schurend' uniqueId='-1459253183'>
      <setting name='SF playback offset'>0.0</setting>
      <setting name='SF:show instruments'>false</setting>
      <setting name='SFinstrument'>0</setting>
      <setting name='VibratoON'>false</setting>
      <setting name='amplitude exponential switch'>true</setting>
      <setting name='envelope'>version=2@_@amplitude envelope:0.0:0.0:0.007594936708860759:1.0:0.7629213483146068:0.9933333333333333:0.8835443037974684:0.0:1.0:0.0:1.0:0.0@_@filter envelope:0.0:0.0:0.10414201183431952:0.9866666666666667:0.4887573964497041:0.2733333333333333:0.6497041420118344:0.3533333333333334:0.7734177215189874:0.8866666666666667:0.9696202531645569:0.7733333333333333:1.0:0.0@_@pitch bend envelope:0.0:1.0026666666666666:0.015730337078651686:0.9706666666666667:0.3183431952662722:0.9333333333333333:0.7831460674157303:1.0:1.0:1.0</setting>
      <setting name='file'>/media/menno/datae/soundfonts/Harp_Strings.sf2</setting>
      <setting name='filter ads attack'>ver2:0</setting>
      <setting name='filter ads decay'>ver2:0.59</setting>
      <setting name='filter ads depth'>1.0</setting>
      <setting name='filter ads sustain'>ver2:0.12</setting>
      <setting name='filter bandpass gain'>0.5</setting>
      <setting name='filter envelope depth'>1.0</setting>
      <setting name='filter envelopes'>id:-540861395</setting>
      <setting name='filter exponential switch'>true</setting>
      <setting name='filter follower'>id:-540861397</setting>
      <setting name='filter frequency cutoff'>ver2:3.5</setting>
      <setting name='filter highpass gain'>0.0</setting>
      <setting name='filter lowpass gain'>0.0</setting>
      <setting name='filter resonance'>ver2:8.83</setting>
      <setting name='filter total depth'>ver2:1.3074</setting>
      <setting name='filterON'>true</setting>
      <setting name='output gain left'>0.4</setting>
      <setting name='output gain right'>0.4</setting>
      <setting name='pitch bend envelope'>true</setting>
      <setting name='pitch coarse'>0.693</setting>
      <setting name='pitch fine'>0.0</setting>
      <setting name='pitch slider'>false</setting>
      <setting name='pregain'>0.41000000000000003</setting>
      <setting name='pseudostereo'>true</setting>
      <setting name='rate amplitude envelope'>1.0</setting>
      <setting name='rate filter envelope'>ver2:1</setting>
      <setting name='rate pitch envelope'>1.0</setting>
      <setting name='scoreP4'>id:-540861402</setting>
      <setting name='show midi key'>false</setting>
      <setting name='tuning'>1.0</setting>
      <setting name='vibrato depth'>ver2:0.15</setting>
      <setting name='vibrato fade in'>false</setting>
      <setting name='vibrato speed'>ver2:4.7</setting>
      <setting name='vibrato wave'>0.0</setting>
    </preset>
  </presetGroup>
  <opcodeList>
    <udo>
      <opcodeName>adsr140_calc_coef</opcodeName>
      <outTypes>k</outTypes>
      <inTypes>kk</inTypes>
      <codeBody>  
  knum_samps, kratio xin
  xout exp( -log((1.0 + kratio) / kratio) / knum_samps)
    
</codeBody>
      <comments></comments>
    </udo>
    <udo>
      <opcodeName>adsr140</opcodeName>
      <outTypes>a</outTypes>
      <inTypes>aakkkk</inTypes>
      <codeBody>agate, aretrig, kattack, kdecay, ksustain, krelease xin
kstate init 0  ; 0 = attack, 1 = decay, 2 = sustain
klasttrig init -1
kval init 0.0
asig init 0
kindx = 0
kattack_base init 0
kdecay_base init 0
krelease_base init 0
kattack_samps init 0
kdecay_samps init 0
krelease_samps init 0
kattack_coef init 0
kdecay_coef init 0
ksustain_coef init 0
klast_attack init -1
klast_decay init -1
klast_release init -1
if (klast_attack != kattack) then
  klast_attack = kattack
  if(kattack &gt; 0) then
    kattack_samps = kattack * sr
    kattack_coef = adsr140_calc_coef(kattack_samps, 0.3)
    kattack_base = (1.0 + 0.3) * (1 - kattack_coef)
  else 
    kattack_samps = 0 
    kattack_coef = 0 
    kattack_base = 0 
  endif
endif
if (klast_decay != kdecay) then
  klast_decay = kdecay
  kdecay_samps = kdecay * sr
  kdecay_coef = adsr140_calc_coef(kdecay_samps, 0.0001)
  kdecay_base = (ksustain - 0.0001) * (1.0 - kdecay_coef)
endif
if (klast_release != krelease) then
  klast_release = krelease
  krelease_samps = krelease * sr
  krelease_coef = adsr140_calc_coef(krelease_samps, 0.0001)
  krelease_base =  -0.0001 * (1.0 - krelease_coef)
endif
while (kindx &lt; ksmps) do
  if (agate[kindx] &gt; 0) then
    kretrig = aretrig[kindx]
    if (kretrig &gt; 0 &amp;&amp; klasttrig &lt;= 0) then
      kstate = 0
    endif
    klasttrig = kretrig
    if (kstate == 0) then
      if(kattack &lt;= 0) then
        kval = 1.0
        kstate = 1
      else
        kval = kattack_base + (kval * kattack_coef)
        if(kval &gt;= 1.0) then
          kval = 1.0
          kstate = 1
        endif
        asig[kindx] = kval
      endif
    elseif (kstate == 1) then
      kval = kdecay_base + (kval * kdecay_coef)
      if(kval &lt;= ksustain) then
        kval = ksustain
        kstate = 2
      endif
      asig[kindx] = kval 
    else
      asig[kindx] = ksustain
    endif
  else ; in a release state
    kstate = 0
    if (kval == 0.0) then
      asig[kindx] = 0
    else 
    ; releasing
      kval = krelease_base + (kval * krelease_coef)
    if(kval &lt;= 0.0) then
      kval = 0.0
    endif
    asig[kindx] = kval  
    endif
  endif
  kindx += 1
od
xout asig
</codeBody>
      <comments></comments>
    </udo>
    <udo>
      <opcodeName>lfo3</opcodeName>
      <outTypes>k</outTypes>
      <inTypes>kk</inTypes>
      <codeBody>kcps, ktype xin

iSineTable	chnget	&quot;lfo2_sine&quot;

if (iSineTable == 0) then
	iSineTable	ftgen 	0, 0, 65536, 10, 1 ; sine wave
	chnset	iSineTable, &quot;lfo2_sine&quot;
endif

kout init 0

if (ktype == 0) then ;SINE
	kout 	oscil3 1, kcps, iSineTable

elseif (ktype == 1) then ;TRIANGLE
	aout	vco2 1, kcps, 12
	kout downsamp aout

elseif (ktype == 2) then ;SQUARE (BI-POLAR)
	aout	vco2 1, kcps, 10
	kout downsamp aout

elseif (ktype == 3) then ;SQUARE (UNI-POLAR)
	aout	vco2 1, kcps, 10
	kout downsamp aout
	kout = (kout + 1) / 2

elseif (ktype == 4) then ;SAW TOOTH (UP)
	aout	vco2 1, kcps, 0
	kout downsamp aout


elseif (ktype == 5) then ;SAW TOOTH (DOWN)
	aout	vco2 1, kcps, 0
	kout downsamp aout
	kout = kout * -1

endif

xout kout</codeBody>
      <comments></comments>
    </udo>
  </opcodeList>
</instrument>