add Hydra audio example to documentation
This commit is contained in:
parent
ebc6723f55
commit
a58ac967a6
1 changed files with 17 additions and 1 deletions
|
|
@ -52,4 +52,20 @@ n(pattern).scale("A:minor").piano().room(1)
|
|||
`}
|
||||
/>
|
||||
|
||||
To use hydra audio capture, call `initHydra` with `{audio:true}` configuration param:
|
||||
|
||||
<MiniRepl
|
||||
client:only="react"
|
||||
tune={`await initHydra({audio:true})
|
||||
let pattern = "<3 4 5 [6 7]*2>"
|
||||
shape(H(pattern)).repeat()
|
||||
.scrollY(
|
||||
()=> a.fft[0]*.25
|
||||
)
|
||||
.add(src(o0).color(.71 ).scrollX(.005),.95)
|
||||
.out(o0)
|
||||
n(pattern).scale("A:minor").piano().room(1)
|
||||
`}
|
||||
/>
|
||||
|
||||
You might now be able to see this properly here: [open in REPL](/#YXdhaXQgaW5pdEh5ZHJhKCkKbGV0IHBhdHRlcm4gPSAiMyA0IDUgWzYgN10qMiIKc2hhcGUoSChwYXR0ZXJuKSkub3V0KG8wKQpuKHBhdHRlcm4pLnNjYWxlKCJBOm1pbm9yIikucGlhbm8oKS5yb29tKDEpIA%3D%3D)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue