<CsoundSynthesizer>
<CsInstruments>
sr        =         44100
kr        =         4410
ksmps     =         10
nchnls    =         1

;===========================================================================
;    TECHNO MOOG BASS SOUND    using Waveshaping Technique                    ;
;   coded by Olivier Karfis                                                            ;
;===========================================================================
;    p2        p3        p4        p5                                                        ;
;    strt dur       pitch     amp                                                       ;
;===========================================================================

          instr     1

inote     =         cpspch(p4)                              
iamp      =         p5*230                                  ;  MIDI AMPLITUDE ROUGH CONVERTER
               
     
k1        linen     1,.01,p3,.01                            ;  AMPLITUDE ENVELOPE
a1        oscili    k1,inote,1
a2        tablei    a1,2,1,.5                               ;  TRANSFER FUNCTION LOOKUP
kclick    linen     1,.01,p3,.01                            ;  DECLICKER

a3        =         a2*iamp*kclick                          ;  AMPLITUDE SCALING

          out       a3
          
          endin



</CsInstruments>
<CsScore>

f1 0 4096 10 1
f2 0 8193 13 1 1   0 5 -2 -3 0 8 -9 0 2 0 -3 0 2
;===========================================================================
;    TECHNO MOOG BASS SOUND    using Waveshaping Technique                    ;
;   coded by Olivier Karfis                                                             ;
;===========================================================================
;    p2        p3        p4        p5                                                        ;
;    strt dur       pitch     amp                                                       ;
;===========================================================================         

t    0         92
i1   0.000     8     6.07      52

e



</CsScore>
</CsoundSynthesizer><bsbPanel>
 <label>Widgets</label>
 <objectName/>
 <x>905</x>
 <y>61</y>
 <width>399</width>
 <height>502</height>
 <visible>true</visible>
 <uuid/>
 <bgcolor mode="nobackground">
  <r>231</r>
  <g>46</g>
  <b>255</b>
 </bgcolor>
 <bsbObject version="2" type="BSBVSlider">
  <objectName>slider1</objectName>
  <x>5</x>
  <y>5</y>
  <width>20</width>
  <height>100</height>
  <uuid>{75290d9d-fc31-4e2a-86b5-65470eb84d86}</uuid>
  <visible>true</visible>
  <midichan>0</midichan>
  <midicc>-3</midicc>
  <minimum>0.00000000</minimum>
  <maximum>1.00000000</maximum>
  <value>0.00000000</value>
  <mode>lin</mode>
  <mouseControl act="jump">continuous</mouseControl>
  <resolution>-1.00000000</resolution>
  <randomizable group="0">false</randomizable>
 </bsbObject>
</bsbPanel>
<bsbPresets>
</bsbPresets>
<MacOptions>
Version: 3
Render: Real
Ask: Yes
Functions: ioObject
Listing: Window
WindowBounds: 905 61 399 502
CurrentView: io
IOViewEdit: On
Options:
</MacOptions>

<MacGUI>
ioView nobackground {59367, 11822, 65535}
ioSlider {5, 5} {20, 100} 0.000000 1.000000 0.000000 slider1
</MacGUI>
