View source: R/01supporting_functions.r
proTrackerVibrato | R Documentation |
Gets the vibrato table as used by ProTracker in vibrato effects.
proTrackerVibrato(x)
x |
|
As the old Commodore Amiga computer didn't have built-in mathematical functions, many programs on that machine used their own data tables. As did ProTracker for vibrato effects for which a sine function was used. As there was no sine function that could be called, sine values were stored in a table.
This function returns the integer
sine values (ranging from 0 up
to 255) as a function of the table index (ranging from 0 up to 31).
Returns an integer
sine value ranging from 0 up to 255
when a valid table index (x
) is provided. It will otherwise return
a sine value ranging from -255 up to 255.
Pepijn de Vries
## this will return the table as used in ProTracker
proTrackerVibrato(0:31)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.