-
Notifications
You must be signed in to change notification settings - Fork 237
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 functions to draw multichannel connections #2059
base: master
Are you sure you want to change the base?
Conversation
Don't forget to redraw all canvases after a DSP graph update, probably at the end of |
7e021a1
to
c23a330
Compare
c23a330
to
cc33ee4
Compare
is it possible to just redraw the lines? redrawing the entire canvas seems like overkill |
seems like it would be better if object authors could just set the number of channels for an outlet, then whenever the number of channels changes for that outlet just the connections for that outlet can be redrawn (without having to do redrawing everything when the graph gets updated which seems like a lot of extra computer work) |
Sure. That would be even better! I don't immediately see a function for this, but we could add
Hmmm. Objects call
You should ;-) |
It seems like object authors could call a function to set the channel count (whether dsp is running or not). That would set the number of channels in t_outlet, redraw the cables if necessary, re-make the dsp graph if dsp is running etc. |
That's not how it works. Most objects derive the output channel count from the input(s), in which case the "dsp" method is the only place to set the channel count (via |
hmm well maybe it should just be based on if it's 'multi-aware' then.. but I'll refrain from further suggestions until I actually look at it, haven't found the time yet |
I don't think that would be particularly useful. Actually, I have already proposed several solutions for updating the cables based on the actual channel count. Maybe let's just give it a try? |
I guess I was trying to find ways to avoid a redraw of every canvas (or even every connection) when the dsp gets turned on. (also, would cables not look multichannel until dsp is turned on? that would be a bit odd imo) |
I think I have proposed a solution in #2059 (comment)
Signal outlets only get their channel count in the "dsp" method, so naturally they can't appear as multichannel before DSP is turned on. |
Hi, why is this still a draft? Can we try and make it a final proposal for the upcoming 0.55 release? |
As recommended by @Spacechild1 in #1997 and #2057...
There is a need to redraw the connections after the DSP is turned
on
.mc-connects.mp4