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

Introduce bridge to patterns #5

Open
capital-G opened this issue Nov 23, 2021 · 1 comment
Open

Introduce bridge to patterns #5

capital-G opened this issue Nov 23, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@capital-G
Copy link
Member

It would be probably a good Idea to embed the analyzed values in a pattern somehow.

There are some problems though: That can yield events, but a pattern can only generate values upon request.
This gets especially tricky as we do not know the duration of a note while its playing so either we have to mock stuff or introduce a delay.
Another solution would be to not use this in real time but allow for recording of streams which later can be scheduled/looped?

@capital-G capital-G added the enhancement New feature or request label Nov 23, 2021
@telephon
Copy link
Contributor

telephon commented Nov 24, 2021

In a sense, we don't need anything new really?

Pdef(\x, { Pseq(~data ? [Event.silent]) });
That.amp(\x, { SoundIn.ar }, { |event| 
    var envir = Pdef(\x).envir;
    envir[\data] = envir[\data].add(event).keep(-8) // keep the last 8 events 
})

(Pbind() <> Pdef(\x)).play;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants