New rest syntax and updated docs
This commit is contained in:
@ -39,7 +39,7 @@
|
|||||||
"tone": "^14.8.49",
|
"tone": "^14.8.49",
|
||||||
"unique-names-generator": "^4.7.1",
|
"unique-names-generator": "^4.7.1",
|
||||||
"vite-plugin-markdown": "^2.1.0",
|
"vite-plugin-markdown": "^2.1.0",
|
||||||
"zifferjs": "^0.0.31",
|
"zifferjs": "^0.0.32",
|
||||||
"zzfx": "^1.2.0"
|
"zzfx": "^1.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -376,7 +376,8 @@ ${makeExample(
|
|||||||
${makeExample(
|
${makeExample(
|
||||||
"Fraction durations",
|
"Fraction durations",
|
||||||
`
|
`
|
||||||
z1('1/4 0 0 4 4 5 5 2/4 4 1/4 3 3 2 2 1 1 2/4 0').sound('sine').out()
|
z1('1/4 0 0 4 4 5 5 2/4 4 1/4 3 3 2 2 1 1 2/4 0')
|
||||||
|
.sound('sine').out()
|
||||||
`,
|
`,
|
||||||
true
|
true
|
||||||
)}
|
)}
|
||||||
@ -384,7 +385,8 @@ ${makeExample(
|
|||||||
${makeExample(
|
${makeExample(
|
||||||
"Decimal durations",
|
"Decimal durations",
|
||||||
`
|
`
|
||||||
z1('0.25 5 1 2 6 0.125 3 8 0.5 4 1.0 0').sound('sine').scale("ionian").out()
|
z1('0.25 5 1 2 6 0.125 3 8 0.5 4 1.0 0')
|
||||||
|
.sound('sine').scale("galian").out()
|
||||||
`,
|
`,
|
||||||
true
|
true
|
||||||
)}
|
)}
|
||||||
@ -392,11 +394,21 @@ z1('0.25 5 1 2 6 0.125 3 8 0.5 4 1.0 0').sound('sine').scale("ionian").out()
|
|||||||
${makeExample(
|
${makeExample(
|
||||||
"Rest and octaves",
|
"Rest and octaves",
|
||||||
`
|
`
|
||||||
z1('q 0 ^ e0 r _ 0 _ r 4 ^4 4').sound('sine').scale("ionian").out()
|
z1('q 0 ^ e0 r _ 0 _ r 4 ^4 4')
|
||||||
|
.sound('sine').scale("godian").out()
|
||||||
`,
|
`,
|
||||||
true
|
true
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
${makeExample(
|
||||||
|
"Rests with durations",
|
||||||
|
`
|
||||||
|
z1('q 0 4 e^r 3 e3 0.5^r h4 1/4^r e 5 r 0.125^r 0')
|
||||||
|
.sound('sine').scale("aeryptian").out()
|
||||||
|
`,
|
||||||
|
true
|
||||||
|
)}
|
||||||
|
|
||||||
- Scales
|
- Scales
|
||||||
|
|
||||||
${makeExample(
|
${makeExample(
|
||||||
|
|||||||
@ -1451,10 +1451,10 @@ yaml@^2.1.1:
|
|||||||
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b"
|
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b"
|
||||||
integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==
|
integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==
|
||||||
|
|
||||||
zifferjs@^0.0.31:
|
zifferjs@^0.0.32:
|
||||||
version "0.0.31"
|
version "0.0.32"
|
||||||
resolved "https://registry.yarnpkg.com/zifferjs/-/zifferjs-0.0.31.tgz#723d780eb4992f5eb59fd5a43b9a38e7b1e0ed2a"
|
resolved "https://registry.yarnpkg.com/zifferjs/-/zifferjs-0.0.32.tgz#825ab27f890f6fc9315e350e9d6b7ea40bcdaa3e"
|
||||||
integrity sha512-PJV+tEzM9iYeFK3ta7LGSu0j2iodnNIROdzdguVG/YwDz0LLr3vVh8s8XXR3N6CV+/HKbS890han5wdd9kb9Jw==
|
integrity sha512-jY7Jx1lFIa7+I606G0+SSYID5hUe8nYlzebtlLKmbuE1Fb1utReb6064auLcpUcRz+zoSBm2GDr6/JlZ4HpKJg==
|
||||||
|
|
||||||
zzfx@^1.2.0:
|
zzfx@^1.2.0:
|
||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user