0.1.1 • Published 7 years ago

adsr-envelope-graph v0.1.1

Weekly downloads
15
License
-
Repository
github
Last release
7 years ago

#React ADSR envelope graph This React component renders a graph of an ADSR (Attack, Decay, Sustain and Release) envelope.

Mainly useful for synths using the Web Audio API.

screenshot

##Example usage

import EnvelopeGraph from 'adsr-envelope-graph';

...

<EnvelopeGraph a={0.1} d={0.1} s={1} r={0.8} />

Props

Required

  • a: Attack (s)
  • d: Decay (s)
  • s: Sustain (0-1)
  • r: Release (s)

Optional

  • style: Style of the root element
  • lineStyle: Style of the envelope line
  • timeLineStyle: Style of the time markers
  • phaseLineStyle: Style of the phase separator lines
0.1.1

7 years ago

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago