-
TabSel
ok, say i've a patch running for a while, that stores data in lists. when I quit PD and load the patch again, I want the lists restored.
how can I achieve this?
-
TabSel
oh my god, this puredata is so difficult. I need help please:
What I want to to is receiving MIDI ctlin (outlets value, controller#, channel#)
When a controller# c2 is received with value v2 on channel# c2, and the __previous__ ctlin was a specific controller# c1 on channel# c1 with value v1, then a message should be send "CC14 c1 v1*128+v2
So, basically, how do I buffer incoming MIDI messages for later comparison and calculating values.
I need a possibility to "buffer" 4 "lists" and send out a single list whose values are calculated with the values of these 4 lists, if specific values of these 4 lists have specific values...
I really don't get this message, list, data type, message ordering stuff..
-
TabSel
Is it possible to create a table that does not hold floats, but symbols, or even lists?
-
TabSel
mpf... can you - briefly - explain, how?
Or, better maybe, I explain, what I want to do.
I want to "parse" incoming MIDI messages.
for example: a midi controller message (ctlin) of #99 (NRPN# MSB) on channel#15, followed by a cc#98 (NRPN# LSB) on channel#15, followed by a cc#06 (value MSB) on channel#15, followed by cc#38 (value LSB) should send a message "NRPN#(msb*128+lsb) value (valueMSB*128+LSB).
Thus, I need to store up to 4 ctlin messages and compare their cc# for the right order (99, 98, 6, 38) and wether they are send on the same channel.
I did this using [ctlin]-[pack f f f]->[list-prepend]->[list-split]->feedback to list-prepend, so an incoming ctlin-messages is stored in the first place of a "buffer" of 4 ctlin-messages, whereas the previous ctlin-messages are shifted right out of the buffer.
problem is: the ctlin-messages could be send with different channels, so that a "NRPN-message" (cc#99,cc#98,cc#6,cc#38) could be interrupted by another cc# on another channel.
So, I need to have a buffer for ctlin-messages of each MIDI channel, and not only one buffer for all incoming ctlin-messages.
Now, if I could store lists per channel in a table of lists...
-
TabSel
thank you!
Is it possible that a patch saves itself when pd is quit?
-
TabSel
thanks.
I managed buffering MIDI messages using list-append, list-split...