pt2_note_to_period {ProTrackR2} | R Documentation |
Get a corresponding period value from a note string
Description
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.
Usage
pt2_note_to_period(note, empty_char = "-", finetune = 0, ...)
Arguments
note |
A |
empty_char |
A |
finetune |
ProTracker used |
... |
Ignored. |
Value
Returns a vector
of integer
period values.
Examples
pt2_note_to_period(c("A#2", "C-1"))