Change clock starting point and add oncount method as alternative to onbeat

This commit is contained in:
2023-08-31 19:42:45 +03:00
parent dd014e9df3
commit 323c6821d3
5 changed files with 59 additions and 18 deletions

View File

@ -256,7 +256,7 @@ ${makeExample(
`
mod(2) :: speak("Topos!","fr",irand(0,5))
`,
false
true
)}
@ -265,7 +265,7 @@ You can also use speech by chaining methods to a string:
${makeExample(
"Chaining string",
`
onbeat(1,3) :: "Foobaba".voice(irand(0,10)).speak()
onbeat(4) :: "Foobaba".voice(irand(0,10)).speak()
`,
true
)}
@ -284,18 +284,19 @@ ${makeExample(
)}
${makeExample(
"String chaining with array chaining",
"Live coded poetry with array and string chaining",
`
const croissant = ["Croissant!", "Volant", "Arc-en-ciel", "Chocolat", "Dansant", "Nuage", "Tournant", "Galaxie", "Chatoyant", "Flamboyant", "Cosmique"];
bpm(70)
onbeat(1) :: croissant.bar()
.lang("fr")
.volume(rand(0.2,2.0))
.rate(rand(.4,.6))
.speak();
const croissant = ["Volant", "Arc-en-ciel", "Chocolat", "Dansant", "Nuage", "Tournant", "Galaxie", "Chatoyant", "Flamboyant", "Cosmique","Croissant!"];
onbeat(4) :: croissant.bar()
.lang("fr")
.volume(rand(0.2,2.0))
.rate(rand(.4,.6))
.speak();
`,
false
true
)}
`;
};