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

allow to change the number of tables/channels in table DSP objects #2058

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Spacechild1
Copy link
Contributor

@Spacechild1 Spacechild1 commented Jul 11, 2023

This is a reboot of #2055. Thanks to @umlaeute for the crucial hint!


The "set" message may now resize the DSP array vector. However, it does not require a DSP graph update because we do not pass t_dsparray pointers directly to the perform routine; instead we pass the t_arrayvec member together with the channel index. The size of the vector is independent from the input/output channel count.

tabwrite~ and tabsend~ continue to take the number of channels from their signal inlet. The only difference is that the number of tables is not fixed at creation time anymore.

tabplay~, tabread~, tabread4~ and tabreceive~ now also have a "channels" method that allows to dynamically set the number of output channels (independently from the "set" method).

Tested successfully with all objects.

Closed #2025

the "set" message can now resize the DSP array vector.
However, it does not require a DSP graph update because we do not pass t_dsparray pointers directly to the perform routine;
instead we pass the t_arrayvec member together with the channel index.

tabwrite~ and tabsend~ just take the number of channels from their signal inlet, as they already did.
tabplay~, tabread~, tabread4~ and tabreceive~ now have a "channels" method that allows to dynamically set the number of output channels - independently from the "set" method.
@Spacechild1 Spacechild1 added feature suggestion for an enhancement subject:core things concerning the Pd-core labels Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature suggestion for an enhancement subject:core things concerning the Pd-core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

change number of channels in table DSP objects
1 participant