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.
Arguments
- note
A
character
string representing notes (see alsopt2_note()
).- empty_char
A
character
that is used to represent empty values.- finetune
ProTracker used
integer
finetune
values to tweak the playback rate. it should be in the range of-8
, up to+7
.- ...
Ignored.
Examples
pt2_note_to_period(c("A#2", "C-1"))
#> [1] 240 856