The Boss NF-1 Noise Gate pedal contains a simple circuit that cuts off all sound as soon as the signal level falls below a threshold level adjusted with the SENS knob. You can set how fast you want the sound to disappear with the DECAY pot.
Fig. 1: Boss NF-1 Noise Gate guitar pedal schematic diagram


ICs, transistors and diodes used in the Boss NF-1 Noise Gate pedal:
Adjustment procedure:
1) Set the Sens knob fully counterclockwise and the Decay knob fully clockwise.
2) Connect an oscilloscope to the effect's output through a millivoltmeter. Feed a 1kHz -45dBm sine signal to input.
3) Adjust VR3 and VR4 for the values shown in Fig.3.
More guitar pedal schematics: