docs + rename under -> duck, quak quak

This commit is contained in:
Felix Roos 2023-07-13 10:49:08 +02:00
parent 3d8724c90d
commit e05f74cef1
7 changed files with 340 additions and 247 deletions

View file

@ -10,20 +10,13 @@ import { JsDoc } from '../../docs/JsDoc';
These functions use [tonaljs](https://github.com/tonaljs/tonal) to provide helpers for musical operations.
### voicing()
<JsDoc client:idle name="voicing" h={0} />
### scale(name)
Turns numbers into notes in the scale (zero indexed). Also sets scale for other scale operations, like scaleTranspose.
<MiniRepl
client:idle
tune={`"0 2 4 6 4 2"
.scale("C2:major C2:minor").slow(2))
.note().s("piano")`}
/>
Note that the scale root is octaved here. You can also omit the octave, then index zero will default to octave 3.
All the available scale names can be found [here](https://github.com/tonaljs/tonal/blob/main/packages/scale-type/data.ts).
<JsDoc client:idle name="scale" h={0} />
### transpose(semitones)

View file

@ -86,7 +86,7 @@ stack(
"Eb^7 [Am7 D7] G^7 [C#m7 F#7]",
"B^7 [Fm7 Bb7] Eb^7 [C#m7 F#7]"
).dict('lefthand')
.anchor(melody).mode('under')
.anchor(melody).mode('duck')
.voicing().color('#7ED321'),
// bass
note(