Sine Wave
use_synth :beep
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A simple pure sine wave. The sine wave is the simplest, purest sound there is and is the fundamental building block of all noise. The mathematician Fourier demonstrated that any sound could be built out of a number of sine waves (the more complex the sound, the more sine waves needed). Have a play combining a number of sine waves to design your own sounds!
|
Note to play. Either a MIDI number or a symbol representing a note. For example: 30, 52, :C, :C2, :Eb4, or :Ds3 Default: 52 must be zero or greater May be changed whilst playing |
|
Amount of time (in seconds) for the note to change. A long slide value means that the note takes a long time to slide from the previous note to the new note. A slide of 0 means that the note instantly changes to the new note. Default: 0 must be zero or greater May be changed whilst playing |
|
The amplitude of the sound. Typically a value between 0 and 1. Higher amplitudes may be used, but won't make the sound louder, it will just reduce the quality of all the sounds currently being played (due to compression.) Default: 1 must be zero or greater May be changed whilst playing |
|
Amount of time (in seconds) for the amplitude (amp) to change. A long slide value means that the amp takes a long time to slide from the previous amplitude to the new amplitude. A slide of 0 means that the amplitude instantly changes to the new amplitude. Default: 0 must be zero or greater May be changed whilst playing |
|
Position of sound in stereo. With headphones on, this means how much of the sound is in the left ear, and how much is in the right ear. With a value of -1, the soundis completely in the left ear, a value of 0 puts the sound equally in both ears and a value of 1 puts the sound in the right ear. Values in between -1 and 1 move the sound accordingly. Default: 0 must be a value between -1 and 1 inclusively May be changed whilst playing |
|
Amount of time (in seconds) for the pan to change. A long slide value means that the pan takes a long time to slide from the previous pan position to the new pan position. A slide of 0 means that the pan instantly changes to the new pan position. Default: 0 must be zero or greater May be changed whilst playing |
|
Amount of time (in seconds) for sound to reach full amplitude (attack_level). A short attack (i.e. 0.01) makes the initial part of the sound very percussive like a sharp tap. A longer attack (i.e 1) fades the sound in gently. Full length of sound is attack + sustain + release. Default: 0 must be zero or greater Can not be changed once set |
|
Amount of time (in seconds) for the sound to move from full amplitude (attack_level) to the sustain amplitude (sustain_level). Default: 0 must be zero or greater Can not be changed once set |
|
Amount of time (in seconds) for sound to remain at full amplitude. Longer sustain values result in longer sounds. Full length of sound is attack + sustain + release. Default: 0 must be zero or greater Can not be changed once set |
|
Amount of time (in seconds) for sound to move from full amplitude to silent. A short release (i.e. 0.01) makes the final part of the sound very percussive (potentially resulting in a click). A longer release (i.e 1) fades the sound out gently. Full length of sound is attack + sustain + release. Default: 1 must be zero or greater Can not be changed once set |
|
Amplitude level reached after attack phase and immediately before decay phase Default: 1 must be zero or greater Can not be changed once set |
|
Amplitude level reached after decay phase and immediately before release phase. Default: 1 must be zero or greater Can not be changed once set |
|
Select the shape of the curve between levels in the envelope. 1=linear, 2=exponential, 3=sine, 4=welch, 6=squared, 7=cubed Default: 2 must be one of the following values: [1, 2, 3, 4, 6, 7] Can not be changed once set |