make_wave: Make Wave

Description Usage Arguments

View source: R/make_wave.R

Description

This function create waves, savable as a wave file with save.wave or playable with if possible depending on the audio package, from a vector of string representing notes and a numeric vector representing how long are each notes

Usage

1
make_wave(note_list, durations, harmonics = c(1))

Arguments

note_list

vector of string containing the list of notes that should get played, should have the same length as durations .

durations

numeric vector containing the list of the duration of each notes in second, should have the same length as note_list .

harmonics

numeric vector containing ratio between harmonics the rank is determine by the place of the number in the vector. Harmonics vectors can be build using build_harmonic or be found in the data frame harmonics which come with this package.


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