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
672 stars 115 forks source link

Hydra in Strudel integration ideas #761

Open jarmitage opened 1 year ago

jarmitage commented 1 year ago

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

Examples:

Integration Ideas

felixroos commented 1 year ago

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

felixroos commented 1 year 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 12 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 12 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 12 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 8 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