tidalcycles / strudel

Web-based environment for live coding algorithmic patterns, incorporating a faithful port of TidalCycles to JavaScript
https://strudel.cc/
GNU Affero General Public License v3.0
641 stars 111 forks source link

Hydra in Strudel integration ideas #761

Open jarmitage opened 11 months ago

jarmitage commented 11 months ago

🎉 Strudel now has a fantastic Hydra integration via https://github.com/tidalcycles/strudel/pull/759

Examples:

Integration Ideas

felixroos commented 11 months ago

this would be a first step to allow patterns directly in hydra: https://github.com/hydra-synth/hydra-synth/issues/152

felixroos commented 11 months ago

It currently doesn't seem possible to use H() inside Hydra arrow functions e.g. .rotate(({time})=>(time*H(p))))

that's because H(x) will return a pattern and multiplying patterns with regular values won't work

emptyflash commented 10 months ago

that's because H(x) will return a pattern and multiplying patterns with regular values won't work

I think .rotate(({time})=>(time*H(p)())) should work right?

felixroos commented 10 months ago

that's because H(x) will return a pattern and multiplying patterns with regular values won't work

I think .rotate(({time})=>(time*H(p)())) should work right?

you're right. my last comment was just wrong, because H(x) actually does return a function that returns a value

emptyflash commented 10 months ago

What should the Hydra behaviour be when Strudel is stopped? Black screen? Freeze frame? Never stop?

Personally in favor of Ctrl+. calling Hydra's hush(). Because Strudel doesn't have block based evaluation, the only way to stop the music and visuals is to call hush() and add silence to the end.

felixroos commented 6 months ago

What should the Hydra behaviour be when Strudel is stopped? Black screen? Freeze frame? Never stop?

Personally in favor of Ctrl+. calling Hydra's hush(). Because Strudel doesn't have block based evaluation, the only way to stop the music and visuals is to call hush() and add silence to the end.

now doing this with https://github.com/tidalcycles/strudel/pull/983