View source: R/01supporting_functions.r
noteToPeriod | R Documentation |
Extracts the ProTracker period value for a specific note.
noteToPeriod(note = "C-3", finetune = 0)
note |
|
finetune |
|
ProTracker uses a period_table to link period values to certain octaves and notes. This function serves to look up corresponding period values for specific notes and octaves.
Returns the numeric
ProTracker period value for a corresponding
note, octave and fineTune()
. Returns 0 if a note could not be found in the
table.
Pepijn de Vries
Other period.operations:
note()
,
octave()
,
periodToChar()
,
period_table
,
sampleRate
Other note.and.octave.operations:
noteUp()
,
note()
,
octave()
,
periodToChar()
,
sampleRate
## Determine the period value corresponding with note 'A-3':
noteToPeriod("A-3")
## get the period values for notes 'A-3' and 'A#3' with finetune at -1:
noteToPeriod(c("A-3", "A#3"), -1)
## get the period values for note 'A-3' with finetune at 0 and 1:
noteToPeriod("A-3", 0:1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.