CSE 471 Project 1

Return to components

Additive synthesizer

The additive synthesizer generates tones using sine waves from user-defined harmonic amplitudes.

The additive synthesizer component was implemented by Tim Bodholt.


Scoring

Scoring for the additive synthesizer uses one additional component.

Definition of harmonics is required and should be placed as the first node within the instrument, outside any measures.


<harmonics>

The harmonics tag takes a space-separated list of decimals from 0-1 that define, in order, the amplitudes of each harmonic to play, starting at the fundamental.


Sample


Download the sample score file


Additive synthesizer waveforms
<score bpm="80" beatspermeasure="4">
    <instrument instrument="AdditiveInstrument">
        <harmonics>1 0 0.3 0 0.15 0 0.1 0 0.05 0 0.09</harmonics>
        <measure>
            <note beat="1" duration="1" note="F3"/>
            <note beat="2" duration="1" note="G3"/>
            <note beat="3" duration="1" note="A3"/>
            <note beat="4" duration="1" note="B3"/>
        </measure>
        <measure>
            <note beat="1" duration="2" note="C3"/>
            <note beat="1" duration="2" note="F3"/>
            <note beat="1" duration="2" note="A3"/>
            <note beat="3" duration="2" note="B3"/>
            <note beat="3" duration="2" note="D3"/>
            <note beat="3" duration="2" note="G3"/>
        </measure>
        <measure>
            <note beat="1" duration="2" note="Eb3"/>
            <note beat="1" duration="2" note="G#3"/>
            <note beat="1" duration="2" note="C4"/>
            <note beat="3" duration="2" note="D4"/>
            <note beat="3" duration="2" note="Bb3"/>
            <note beat="3" duration="2" note="F3"/>
        </measure>
        <measure>
            <note beat="1" duration="4" note="E4"/>
            <note beat="1" duration="4" note="C4"/>
            <note beat="1" duration="4" note="G3"/>
        </measure>
    </instrument>
</score>

Additive synthesizer grading requirements: