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

Merged
merged 8 commits into from
Jan 1, 2025

Conversation

reckter
Copy link
Contributor

@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
@reckter reckter mentioned this pull request Dec 27, 2024
munshkr added a commit that referenced this pull request Jan 1, 2025
This also wires through the instance of the `StrudelWrapper`, just like
#309 .

- Patches strudels webaudio module through to be accessible from
anywhere.
- Adds `fft(index: number, buckets: number = 8, options?: { min?:
number; max?: number, scale?: number }): number`.
Currently this hooks into the webaudio module from strudel and takes
fft-data from there. In the future, we could add different fft sources,
and make the source be switchable (or make it use all per default).
- Automatically adds an `.analyze('flok-master')` to all strudel
patterns, if fft is used an a hydra pane
@munshkr munshkr merged commit 65eca7b into munshkr:main Jan 1, 2025
2 checks passed
@munshkr
Copy link
Owner

munshkr commented Jan 1, 2025

@reckter thank you! I was going to ask if we could add the documentation to the README like we did in #310 but you already did 😄

@reckter
Copy link
Contributor Author

reckter commented Jan 1, 2025

@munshkr :D yeah noticed that they were still missing :D thanks for merging!

@reckter reckter deleted the add-strudel-patterns-to-hydra branch January 1, 2025 18:33
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.

2 participants