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

blackhole does not drive UGen arrays past index 0 #244

Open
nshaheed opened this issue Jan 25, 2023 · 0 comments
Open

blackhole does not drive UGen arrays past index 0 #244

nshaheed opened this issue Jan 25, 2023 · 0 comments
Labels

Comments

@nshaheed
Copy link
Contributor

When feeding an array of ugens into blackhole, only the first ugen is actually driven. This is because hole is just a single-input ugen, so any mulitchannel input is just ignored. The workaround is to connect all ugens in the array to blackhole individually.

I'm not really sure how this could be fixed in a way that isn't super hacky or involves completely reworking how mulitchannel works.

Here's an example:

SinOsc s[2] => blackhole;

while(10::ms => now) {
    <<< "s[0]:", s[0].last() >>>;
    <<< "s[1]:", s[1].last() >>>;
}

And the output:

s[0]: 0.941764 
s[1]: 0.000000 
s[0]: 0.610836 
s[1]: 0.000000 
s[0]: -0.564247 
s[1]: 0.000000 
s[0]: -0.959560 
s[1]: 0.000000 
s[0]: -0.028794 
s[1]: 0.000000 
s[0]: 0.941764 
s[1]: 0.000000 
s[0]: 0.610836 
s[1]: 0.000000 
s[0]: -0.564247 
s[1]: 0.000000 
s[0]: -0.959560 
s[1]: 0.000000 

@nshaheed nshaheed added the bug label Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant