make_fade: Make fade

Description Usage Arguments Examples

View source: R/fade.R

Description

A function to compute nice-ish fade in as a vector of number between 0 and 1

Usage

1
make_fade(duration, sample = 44100)

Arguments

duration

A float,double or int giving the duration of the fade in second

sample

An int representing the sample rate in Hz. Standard sample rates are 11 025, 22 050, 44 100, 48 000 and 96 000

Examples

1
2
## Not run: fade <- make_fade(1)
## Not run: fade_48k <- make_fade(0.75,48000)

galyfray/RSyntWave documentation built on Jan. 31, 2021, 2:02 a.m.