-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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
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
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 :D yeah noticed that they were still missing :D thanks for merging! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
P
Function like this: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