Calculate the sample rate for a note or period value
Calculate the sample rate for a note or a ProTracker period value.
noteToSampleRate(note = "C-3", finetune = 0, video = c("PAL", "NTSC")) periodToSampleRate(period, video = c("PAL", "NTSC"))
note |
A |
finetune |
An |
video |
The video mode used to calculate the sample rate. A |
period |
A ProTracker |
Returns the sample rate in samples per seconds.
Pepijn de Vries
Other character.operations:
as.character()
,
name
,
periodToChar()
,
rawToCharNull()
Other period.operations:
noteToPeriod()
,
note()
,
octave()
,
periodToChar()
,
period_table
Other sample.rate.operations:
playSample()
Other note.and.octave.operations:
noteToPeriod()
,
noteUp()
,
note()
,
octave()
,
periodToChar()
## calculate the sample rate for a ProTracker period value of 200 periodToSampleRate(200) ## calculate the sample rate for a sample at note 'A-3' noteToSampleRate("A-3") ## note that the NTSC video system gives a slightly different rate: noteToSampleRate("A-3", video = "NTSC") ## fine tuning a sample will also give a slightly different rate: noteToSampleRate("A-3", finetune = -1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.