Learn R Programming

rtemis (version 0.79)

mplot3.adsr: mplot3: ADSR Plot

Description

Plot Attack Decay Sustain Release Envelope Generator using mplot3

Usage

mplot3.adsr(Attack = 300, Decay = 160, Sustain = 40, Release = 500,
  Velocity = 80, I = 200, O = 1800, lty = 1, lwd = 4,
  main = "ADSR Envelope Generator", main.line = 1.6,
  main.col = "white", Attack.col = pennCol$lighterYellow,
  Decay.col = pennCol$orange, Sustain.col = pennCol$lighterRed,
  Release.col = pennCol$lighterBlue, Decay.nl = FALSE,
  draw.poly = FALSE, poly.alpha = 0.15, draw.verticals = TRUE,
  v.lty = 1, v.lwd = 0.8, arrow.code = 2, arrow.length = 0.09,
  grid = FALSE, grid.lty = 1, grid.lwd = 0.4, grid.col = NULL,
  zero.col = "gray50", theme = "dark", labs.col = "gray70",
  tick.col = "gray70", on.lty = 2, on.lwd = 7, on.alpha = 0.4,
  on.col = "gray70", off.col = "gray70", pty = "m", mar = c(3, 3,
  3.2, 0.5), xaxs = "i", yaxs = "i", par.reset = TRUE, ...)

Arguments

Attack

Float: Attack time (in milliseconds)

Decay

Float: Decay time (in milliseconds)

Sustain

Float: Sustain Level (percent)

Release

Float: Release time (in milliseconds)

Velocity

Float: Velocity (percent)

I

Float: Note on time (in milliseconds)

O

Float: Note off time (in milliseconds)

theme

String: "light" or "dark" (Default)

...

Additional arguments to pass to mplot3.xy

Details

Learn more: (https://en.wikipedia.org/wiki/Synthesizer#Attack_Decay_Sustain_Release_.28ADSR.29_envelope "ADSR Wikipedia")