Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.21 KB

README.md

File metadata and controls

63 lines (43 loc) · 1.21 KB

GendyJS

Author: Andrew Bernstein

Contributors: Ben Taylor

Overview: GendyJS is a Web Audio API dynamic stochastic synthesis oscilator. Dynamic stochastic synthesis is a technique pioneered by the composer and theoretician Iannis Xenakis.

How to Use GendyJS

Download the gendy.js file and include it in a script tag at the top of your page.

<head>
	<script src="gendy.js"></script>
</head>

Create a GendyJS instance, specifying the Audio Context as a creation argument.

var gendy = new Gendy(audioContext);

Controls

Users have access to 6 parameters to control the oscilator.

Frequency

gendy.freq = 0.5;

X Axis Step Size

gendy.xStep = 10;

Y Axis Bounds

gendy.yMax = 0.5;
gendy.yMin = 0.1;

Y Step Size

gendy.yStep = 0.25;

The breakpoints property can be set followed by a call to the init() method to reinitialize the waveform with a new number of breakpoints.

gendy.breakpoints = 15;
gendy.init();

Demo

GendyJS Demo

License

GendyJS is licensed as open source software under the MIT license