This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
getting_started_vividshaper [2023/07/06 23:03] – lars | getting_started_vividshaper [2023/11/12 19:46] (current) – lars | ||
---|---|---|---|
Line 56: | Line 56: | ||
Each generator has eight oscillators, | Each generator has eight oscillators, | ||
- | On the second row, we will call the built in function VSTriangle(frequency, | + | On the second row, we will call the built in function VSTriangle(frequency, |
+ | |||
+ | The term ' | ||
+ | |||
+ | |||
+ | |||
+ | * A frequency of 1 Hz means that the wave will be filled with exactly one complete cycle of the triangle wave. | ||
+ | * Increasing the frequency to 2 Hz results in two complete cycles within the sample 128-sample space. | ||
+ | * Higher frequencies will pack more cycles of the wave into the sample. | ||
+ | * A frequency of 1.5 does not mean it will create 1.5 higher frequency at playback, but rather that the waveform will not complete two cycles, ending at a point which may give interesting timbre. | ||
+ | |||
+ | The phase is given in degrees (0-360) and is here set to zero. The ' | ||
+ | |||
+ | It is important to grasp these concepts. VSSin, VSSaw, VSTriangle all works the same, with one argument for frequency and one for phase. VSSquare has an additional argument for the width. Here is some additional examples: | ||
+ | |||
+ | * wave[1] = VSTriangle(2, | ||
+ | * wave[1] = VSSaw(1,45) -- This create a saw wave form with one saw wave, phase shifted 45 degrees | ||
On the third row, we set the output volume using the Attack, Decay, Sustain, Release (ADSR) envelope (VSADSRE). This is then multiplied by the velocity of the note. The E stands for Exponential release. If you don't want exponential release but a linear release, you can use VSADSR instead. They take the same arguments. The arguments are as follows: | On the third row, we set the output volume using the Attack, Decay, Sustain, Release (ADSR) envelope (VSADSRE). This is then multiplied by the velocity of the note. The E stands for Exponential release. If you don't want exponential release but a linear release, you can use VSADSR instead. They take the same arguments. The arguments are as follows: |