CSE 471 Project 1

Return to components

Noise Gate

The Noise Gate effect implements a noise gate. It takes an open threshold and a close threshold.


open determines the threshold at which the gate should open.

close determines the threshold at which the gate should close.

level describes the ratio to multiply the signal by, from 0 to 1.

ttg describes the time it takes for the gate to fully close, in seconds.

Attribute Purpose Default
open Opening threshold (0-1) 0.2
close Closing threshold (0-1) 0.15
level Level to multiply signal by (0-1) 0.1
ttg Time to gate, in seconds 0.1

The signal is transmitted if the gate is open. The gate opens when the amplitude rises above the open threshold and stays open until it falls below the close threshold. When the signal falls below the close threshold, it will fade to the specified level.


Example of the effect:

<score bpm="140" 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="C3"/>
            <note beat="2" duration="1" note="E3"/>
            <note beat="3" duration="1" note="F3"/>
            <note beat="4" duration="1" note="G3"/>
        </measure>
        <measure>
            <noisegate enable="true" id="1" beat="1" wet="1" open="0.3" close="0.25" level="0.25" ttg="0.05"/>
            <note beat="1" duration="1" note="C3"/>
            <note beat="2" duration="1" note="E3"/>
            <note beat="3" duration="1" note="F3"/>
            <note beat="4" duration="1" note="G3"/>
        </measure>
    </instrument>
</score>

Download the sample score file


gate