pure-data / pure-data

Pure Data - a free real-time computer music system
Other
1.59k stars 248 forks source link

missing/useful [snake~] methods #1996

Open porres opened 1 year ago

porres commented 1 year ago

an issue to discuss and propose more [snake~] methods

umlaeute commented 1 year ago

what's the advantage of [snake~ ltos] over the enhanced version of [sig~] as suggested by @Spacechild1 ?

porres commented 1 year ago

what's the advantage of [snake~ ltos] over the enhanced version of [sig~] as suggested by @Spacechild1 ?

being able to create multichannel signals with a different number of channels according to the list input length

Spacechild1 commented 1 year ago

I think these are all useful, but I would prefer different names:

[snake~ nchs] -> [snake~ count] or [snake channels]

[snake~ mix] -> [snake~ sum]

[snake~ ltos] -> [snake~ fromlist]

Two more methods:

abreubacelar commented 1 year ago

since split feels like the verb from list split, merge could be [snake~ append] and [snake~ prepend] ?

Spacechild1 commented 1 year ago

merge could be [snake~ append] and [snake~ prepend] ?

Prepend/append only makes sense for control objects where you have hot and cold inlets. For signal objects you only need a single method.

abreubacelar commented 1 year ago

oh, understand, i thought about avoiding crossed connections, but it is silly xD

and what about an object to take specific channels from a signal?

not sure about the verb... get/take/reorder... ?

[snake~ get 1 3 2 4] could take an arbitrary signal with n channels and swap 3 and 2 channels and return just a 4 channel signal from the n channel input, would this be possible with the current objects?

maybe this could even be used for a specific duplication of signals

[snake~ get 1 2 1 3] could take a 3 channel, and output a 4 channel with the third signal being a copy from the first signal from the input

if the number of channels is lesser than the number expected, so just insert an empty signal there

and we could also drop some channels

like [snake~ get 4 2 6 3] ignoring 1 and 5 and reordering everything

what do you think?

Spacechild1 commented 1 year ago

and what about an object to take specific channels from a signal?

+1

like [snake~ get 4 2 6 3] ignoring 1 and 5 and reordering everything

I really like the get method because it is very flexible.

whale-av commented 8 months ago

I miss "Magic Glass" more than anything else from Pd Extended. An enhanced version capable of showing multichannel values (and control values) would be useful. If that is not possible, then maybe an enhanced [print~]...? Also (sorry) in the Pd Help List of Objects.... patch, separating the audio objects that are multichannel capable from those that are not would be helpful. David.

umlaeute commented 8 months ago

@whale-av while all of your suggestions are related to multichannel, none of them is related to [snake~] itself...so they seem to be a bit ot for this issue. you probably want to create a separate ticket.

whale-av commented 8 months ago

I apologize... I clicked the wrong thread link after registering to post. Thank you all for all your great work.