Added ratio durations for ziffers

This commit is contained in:
2023-09-26 22:05:34 +03:00
parent 7da1ef9195
commit c195ac720f
3 changed files with 14 additions and 5 deletions

View File

@ -39,7 +39,7 @@
"tone": "^14.8.49",
"unique-names-generator": "^4.7.1",
"vite-plugin-markdown": "^2.1.0",
"zifferjs": "^0.0.30",
"zifferjs": "^0.0.31",
"zzfx": "^1.2.0"
}
}

View File

@ -338,6 +338,15 @@ z1('0 3 2 4',{key: 'D3', scale: 'minor pentatonic'}).sound('sine').out()
${makeExample(
"Duration chars",
`
z1('q 0 0 4 4 5 5 h4 q 3 3 2 2 1 1 h0').sound('sine').out()
`,
true
)}
${makeExample(
"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()
`,
true
)}

View File

@ -1451,10 +1451,10 @@ yaml@^2.1.1:
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b"
integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==
zifferjs@^0.0.30:
version "0.0.30"
resolved "https://registry.yarnpkg.com/zifferjs/-/zifferjs-0.0.30.tgz#92f5ee8e207e1316a8ffb0ca8ede0e88bca4cf47"
integrity sha512-CPRswWxl3hxvmBJDXdWyV1QNFWcWVSyVMMUZw1obZo2UaHQzw2cqINcRoZ5S4BMSYPgZUsJt0Efw1U8/dR9dOg==
zifferjs@^0.0.31:
version "0.0.31"
resolved "https://registry.yarnpkg.com/zifferjs/-/zifferjs-0.0.31.tgz#723d780eb4992f5eb59fd5a43b9a38e7b1e0ed2a"
integrity sha512-PJV+tEzM9iYeFK3ta7LGSu0j2iodnNIROdzdguVG/YwDz0LLr3vVh8s8XXR3N6CV+/HKbS890han5wdd9kb9Jw==
zzfx@^1.2.0:
version "1.2.0"