playProgression: Play Progression

View source: R/play.R

playProgressionR Documentation

Play Progression

Description

Play Progression

Usage

playProgression(
  progression,
  oscillator = c("sine", "square", "saw", "triangle"),
  duration = 1,
  BPM = 120,
  sample.rate = 44100,
  attack.time = 50,
  inner.release.time = 50,
  A4 = 440,
  plot = FALSE,
  ...
)

Arguments

progression

List of string vectors: Each element of the list is a chord. e.g. output of buildProgression

oscillator

String: "sine", "square", "saw". Default = "sine"

duration

Float: Note duration in beats. Default = 1

BPM

Integer: Beats per minute. Default = 120

sample.rate

Integer: Sample rate. Default = 44100

attack.time

Integer: Attack time. Default = 50 (Helps prevent popping)

inner.release.time

Integer: Release time, that ends on note OFF (instead of beginning at note OFF). Default = 50 (Also helps prevent popping)

A4

Float: Frequency for A4 in Hz. Default = 440

plot

Logical. If TRUE, plot each chord in the progression using cplot.piano

...

Additional arguments to pass to note2freq

Author(s)

E.D. Gennatas

Examples

## Not run: 
playProgression(buildProgression("G4", "minor"))

## End(Not run)

music documentation built on July 11, 2022, 1:06 a.m.