CSE 471 Project 1

Return to components

Ring Modulator

The ring modulator effect produces a sinusoid ring modulation sound via a user-defined sine wave. It uses the common effect attributes as well as two additional:


amplitude determines the amplitude of the modulating signal, from 0 to 1.

frequency determines the frequency of the modulating signal.


To use this in scoring, use ringmod as the XML tag name.

Attribute Purpose Default
amplitude Amplitude of modulating signal (0-1) 1
frequency Frequency of modulating signal 440

Example of the effect:

<score bpm="80" beatspermeasure="4">
    <instrument instrument="ToneInstrument">
        <measure>
            <note beat="1" duration="2" note="A4"/>
            <ringmod enable="true" id="1" beat="2" wet="1" amplitude="1" frequency="55"/>
            <note beat="3" duration="2" note="B4"/>
            <ringmod enable="false" id="1" beat="4" />
        </measure>
    </instrument>
</score>

Download the sample score file


ringmod