pt2_note_to_period | R Documentation |
Back in the days, ProTracker was hardware driven on a Commodore Amiga. It made
advantage of a custom chipset where each chip had specific tasks. One of the chips
(named Paula) could play 8 bit audio samples stored in memory directly to one of
the four audio channels. On that chip you could set the integer 'period' value which is
inversely related to the sample rate at which the sample is played. Hence, it
defines the pitch of the sample. ProTracker used the period value to play different
notes. With this function you can convert a character
string representing a
note to its corresponding period value used by Paula.
pt2_note_to_period(note, empty_char = "-", finetune = 0, ...)
note |
A |
empty_char |
A |
finetune |
ProTracker used |
... |
Ignored. |
Returns a vector
of integer
period values.
pt2_note_to_period(c("A#2", "C-1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.