Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fineTune

Fine tune a PTSample


Description

Extract or replace the fine tune value of a PTSample.

Usage

## S4 method for signature 'PTSample'
fineTune(sample)

## S4 replacement method for signature 'PTSample,numeric'
fineTune(sample) <- value

Arguments

sample

A PTSample for which the fine tune value needs to be extracted or replace.

value

A numeric value ranging from -8 up to 7, representing the fine tune.

Details

PTSamples can be tuned with their fine tune values. The values range from -8 up to 7 and affect the playback sample rate of specific notes (see period_table). This method can be used to extract this value, or to safely replace it.

Value

For fineTune the fine tune value, represented by an integer value ranging from -8 up to 7, is returned.

For fineTune<- A PTSample sample, updated with the fine tune value, is returned.

Author(s)

Pepijn de Vries

See Also

Examples

data("mod.intro")

## get the finetune of the first sample of mod.intro:

fineTune(PTSample(mod.intro, 1))

## Let's tweak the finetune of the first sample of
## mod.intro to -1:

fineTune(PTSample(mod.intro, 1)) <- -1

ProTrackR

Manipulate and Play 'ProTracker' Modules

v0.3.7
GPL-3
Authors
Pepijn de Vries [aut, cre, dtc]
Initial release
2020-02-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.