D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
tmcw
Full window
Github gist
audio generated by an l-system
<!DOCTYPE html> <html> <head> <title>l-system</title> <style> body, button { color:#222; font:13px/20px 'Georgia'; width:400px; margin:10px auto; } textarea { width:400px; height:100px; font:18px/20px 'Courier', monospace; } </style> </head> <body> <p>Simple <a href='https://en.wikipedia.org/wiki/L-system'>L-system</a> composition system. Rules are represented as <strong>source</strong> - <strong>output</strong>. [via html5piano] Samples taken from <a href="https://www.freesound.org/packsViewSingle.php?id=3957">freesound.org</a> courtesy of <a href="https://timtapesstuff.wordpress.com/">Tim Tapes</a> and are licensed under: <a rel="license" href="https://creativecommons.org/licenses/sampling+/1.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/sampling+/1.0/80x15.png" /></a>. </p> <h3>start</h3> <textarea id='start'>A</textarea> <h3>production rules</h3> <textarea id='production'>A (0.5) - ABA A (0.5) - BBB</textarea> <h3>output</h3> <textarea id='output'></textarea> <br /> <input type='text' id='iter' value=3 /> <button id='produce_and_play'>produce and play</button> <script src='audio.js'></script> </body> </html>