To change parameters of an LFO, use the set function which takes the same argument as the constructor of the class: myLfo. To retrieve the current value of an LFO, just use the value parameter: const v = myLfo.value Set waveform to one of these strings instead of a function to use it: There are a few basic waveform functions that are included in the library. Note: Every parameter is optional Waveform functions Then well look at some examples using SouthPoles LFOs (low frequency oscillators) to create various types of time-varying filtering. This code will create a new LFO with a frequency of 1.3Hz, an amplitude of 2 and which will produce a square signal. This function takes a number between 0 and 2PI as an argument and must return a number between 0 and 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |