powered by
Play Progression
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, ... )
List of string vectors: Each element of the list is a chord. e.g. output of buildProgression
String: "sine", "square", "saw". Default = "sine"
Float: Note duration in beats. Default = 1
Integer: Beats per minute. Default = 120
Integer: Sample rate. Default = 44100
Integer: Attack time. Default = 50 (Helps prevent popping)
Integer: Release time, that ends on note OFF (instead of beginning at note OFF). Default = 50 (Also helps prevent popping)
Float: Frequency for A4 in Hz. Default = 440
Logical. If TRUE, plot each chord in the progression using cplot.piano
Additional arguments to pass to note2freq
E.D. Gennatas
if (FALSE) { playProgression(buildProgression("G4", "minor")) }
Run the code above in your browser using DataLab