">if</span> ( psd.wave == WAVE_SAW)      pwave = <span class="keyword">new</span> SawtoothWaveformGenerator();</div>
<div class="line">  <span class="keywordflow">if</span> ( psd.wave == WAVE_NOISE)    pwave = <span class="keyword">new</span> NoiseWaveformGenerator();</div>
<div class="line"> </div>
<div class="line">  <span class="keywordtype">int</span> sustainVolume = psd.sustain * psd.volume / 127;</div>
<div class="line"> </div>
<div class="line">  soundGenerator.attach( pwave);</div>
<div class="line"