This commit is contained in:
Bubobubobubobubo
2023-08-28 15:44:02 +00:00
parent dd9c0f3bd0
commit 3bd0e0389b
2 changed files with 12 additions and 2 deletions

View File

@ -312,7 +312,17 @@ mod(.25) && euclid($(4), 7, 9, 1) && snd('hh').out()
`,!1)}
- <icode>rhythm(divisor: number, pulses: number, length: number, rotate: number): boolean</icode>: generates <icode>true</icode> or <icode>false</icode> values from an euclidian rhythm sequence. This is another version of <icode>euclid</icode> that does not take an iterator.
${t("rhythm is a beginner friendly rhythmic function!",`
let speed = [0.5, 0.25].div(8);
rhythm(speed, 5, 12) :: snd('east').n(2).out()
rhythm(speed, 2, 12) :: snd('east').out()
rhythm(speed, 3, 12) :: snd('east').n(4).out()
rhythm(speed, 7, 12) :: snd('east').n(9).out()
`,!0)}
- <icode>bin(iterator: number, n: number): boolean</icode>: a binary rhythm generator. It transforms the given number into its binary representation (_e.g_ <icode>34</icode> becomes <icode>100010</icode>). It then returns a boolean value based on the iterator in order to generate a rhythm.
${t("Change the integers for a surprise rhythm!",`

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Topos</title>
<script type="module" crossorigin src="/assets/index-26d72bf9.js"></script>
<script type="module" crossorigin src="/assets/index-01b6919a.js"></script>
<link rel="stylesheet" href="/assets/index-da12e15e.css">
</head>
<style>