Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration from Strudel patterns and canvas into hydra #309

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

reckter
Copy link

@reckter reckter commented Dec 23, 2024

  • Allow using Strudel patterns in Hydra using a special P Function like this:
shape(P("3 4 [5 6]")
    .out()
  • Allows to initialze one of the streams in hydra with the strudel canvas with useStrudelCanvas(s0)

Strudel needs to be loaded first, in order to be able to use the mini parser.
We also just access strudel via the window parent object, which might cause problems in some sandboxes?
I would love to have a different solution for this, maybe if we render hydra and strudel in the same iframe? But I feel like I don't understand the reason behind the iframes enough, in order to judge that (cc: @munshkr).

A very short demonstration: (thanks pastagang for the tune to copy :P)
https://github.com/user-attachments/assets/76e93300-b991-4610-9592-ad954e0ad43b

Alternative to #300

…s for value control

Strudel needs to be loaded first, in order to be able to use the mini parser.
We also just access strudel via the window parent object, which might cause problems in some sandboxes?
@reckter reckter changed the title Add P function to hydra, that is able to resolve strudel like patters for value controll Add integration from Strudel patterns and canvas into hydra Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant