ct-zen
v3.4.5
Published
A Javascript library and performance tool for expressing multidimensional, musical patterns using single line expressions, with a particular emphasis on pattern interference.
Downloads
13
Readme
Zen.js
A non-verbose / terse language for algorithmic composition. Users define geometric forms by evaluating expressions for x/y coordinates, events and mutations. Zen expressions result in complex geometry which results in complex musical patterns, with the potential for causal relationships, or interference between patterns.
Full documentation can be found at https://zen-docs.cephasteom.co.uk/.
Write Zen at https://zen.cephasteom.co.uk/.
This package can also be used in your own projects. Better documentation to follow, but...
Docs
Quick start
In your template, you can use the in-built visualiser by rendering this on the page:
<body>
<div>
<svg class="canvas" viewBox="0 0 768 768"></svg>
</div>
</body>
Or you can offload the visuals to an iframe - with significant performance improvements:
<body>
<div>
<iframe src="https://zen-visuals.cephasteom.co.uk">
</div>
</body>
import { zen } from 'ct-zen'
zen.execute('...your code here...')
Not yet ready for public consumption!