From 09951732c3aebc9ea5af28fb3ab924b1692d8a55 Mon Sep 17 00:00:00 2001 From: Miika Alonen Date: Fri, 1 Sep 2023 00:28:25 +0300 Subject: [PATCH] Documentation updates --- src/documentation/time.ts | 13 +++++++++++++ src/documentation/ziffers.ts | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/documentation/time.ts b/src/documentation/time.ts index 57e8fdf..a0c5ae4 100644 --- a/src/documentation/time.ts +++ b/src/documentation/time.ts @@ -152,6 +152,19 @@ mod(.25) && euclid($(4), 7, 9, 1) && snd('hh').out() false )} +Alternatively, you can oneuclid or rhythm without the _iterators_: + +- oneuclid(pulses: number, length: number, rotate: number): boolean: generates true or false values from an euclidian rhythm sequence. This is another version of euclid that does not take an iterator. +${makeExample( + "Using oneuclid to create a rhythm without iterators", + ` + // Change speed using bpm + // bpm(250) + oneuclid(5, 9) :: snd('kick').out() + oneuclid(7,16) :: snd('east').end(0.5).n(irand(3,5)).out() +`, + false +)} - rhythm(divisor: number, pulses: number, length: number, rotate: number): boolean: generates true or false values from an euclidian rhythm sequence. This is another version of euclid that does not take an iterator. ${makeExample( diff --git a/src/documentation/ziffers.ts b/src/documentation/ziffers.ts index e4d492e..7210b28 100644 --- a/src/documentation/ziffers.ts +++ b/src/documentation/ziffers.ts @@ -199,8 +199,8 @@ Numbered methods are synced automatically to **z0** method if it exsists. Syncin ${makeExample( "Automatic sync to z0", ` -z0('w 0 8').sound('peri').gain(3.0).out() -z1('e 0 4 5 9').sound('bell').gain(6.0).out() +z0('w 0 8').sound('peri').out() +z1('e 0 4 5 9').sound('bell').out() `, true )}