mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-20 18:18:32 +00:00
add readme
This commit is contained in:
parent
f2e16f946c
commit
cfdd4ac36c
29
packages/claviature/README.md
Normal file
29
packages/claviature/README.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# @strudel/claviature
|
||||||
|
|
||||||
|
adds a `Patter.claviature` method that renders a [claviature](https://www.npmjs.com/package/claviature).
|
||||||
|
|
||||||
|
example usage:
|
||||||
|
|
||||||
|
```js
|
||||||
|
chord("<Em9 A7 D^7@2>").voicing().piano()
|
||||||
|
.claviature()
|
||||||
|
```
|
||||||
|
|
||||||
|
All [claviature options](https://www.npmjs.com/package/claviature#options) will work.
|
||||||
|
|
||||||
|
Here is an example that uses all available options:
|
||||||
|
|
||||||
|
```js
|
||||||
|
chord("<Em9 A7 D^7@2>").voicing().piano()
|
||||||
|
.claviature({
|
||||||
|
range: ['C1', 'C6'], // rendered note range
|
||||||
|
color: 'yellow', // highlighting color
|
||||||
|
palette: ['cyan', 'magenta'],
|
||||||
|
stroke: 'black',
|
||||||
|
scaleX: 1, scaleY: 1,
|
||||||
|
upperHeight: 80,
|
||||||
|
lowerHeight: 50
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
Note: The `Pattern.claviature` method uses the `colorization` option internally, so don't override that and use the `color` option for changing the highlighting color.
|
||||||
Loading…
x
Reference in New Issue
Block a user