Dear list,
is there a way to store a symbol and send it on a bang as the [value] or [float] objects do it with floats?
Popesz
Am 5. Dezember 2019 19:45:51 MEZ schrieb "Csaba Láng" langcsaba@gmail.com:
Dear list,
is there a way to store a symbol and send it on a bang as the [value] or [float] objects do it with floats?
[symbol]?
you can build your own [symbolvalue] abstraction, with [receive], [send] and [symbol]. the only thing that is hard to build as a patch is creating instances after you changed the content (because the simplest solution will duplicate the values, rather than use a single source of truth)
mfg.hft.fsl IOhannes
PS: please excuse the terseness, this was typed on a mobile phone...
the [symbol] object stores symbols, you can connect it to a [send] object.
[value] and [float] also have a built in send function, maybe we could include one too for [symbol], but it would break things as giving it a message "send x" these days just turns "send" to "symbol send".
Em qui., 5 de dez. de 2019 às 15:48, Csaba Láng langcsaba@gmail.com escreveu:
Dear list,
is there a way to store a symbol and send it on a bang as the [value] or [float] objects do it with floats?
Popesz _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Gosh, lost half day on such a simple task. Gents, thanks for the perfect solution!
On Thu, Dec 5, 2019 at 9:18 PM Alexandre Torres Porres porres@gmail.com wrote:
the [symbol] object stores symbols, you can connect it to a [send] object.
[value] and [float] also have a built in send function, maybe we could include one too for [symbol], but it would break things as giving it a message "send x" these days just turns "send" to "symbol send".
Em qui., 5 de dez. de 2019 às 15:48, Csaba Láng langcsaba@gmail.com escreveu:
Dear list,
is there a way to store a symbol and send it on a bang as the [value] or [float] objects do it with floats?
Popesz _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
One idea for [symbol] to have send method is to give it some flag, maybe? something like [symbol -s] so it understand "send something"?
Just a noob idea, don't know if it makes sense
Em Sex, 6 de dez de 2019 07:54, Christof Ressi christof.ressi@gmx.at escreveu:
[value] and [float] also have a built in send function,
[value] doesn't have a [send( method - yet! https://github.com/pure-data/pure-data/pull/606
Christof *Gesendet:* Donnerstag, 05. Dezember 2019 um 21:18 Uhr *Von:* "Alexandre Torres Porres" porres@gmail.com *An:* "Csaba Láng" langcsaba@gmail.com *Cc:* Pd-List pd-list@lists.iem.at *Betreff:* Re: [PD] store a symbol and send on bang the [symbol] object stores symbols, you can connect it to a [send] object.
[value] and [float] also have a built in send function, maybe we could include one too for [symbol], but it would break things as giving it a message "send x" these days just turns "send" to "symbol send".
Em qui., 5 de dez. de 2019 às 15:48, Csaba Láng langcsaba@gmail.com escreveu:
Dear list,
is there a way to store a symbol and send it on a bang as the [value] or [float] objects do it with floats?
Popesz _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Am 6. Dezember 2019 15:27:02 MEZ schrieb Christof Ressi christof.ressi@gmx.at:
This would just complicate the interface. Just use [symbol] + [send] and you're done.
+1
also, [symbol -s] would make it quite complicated to create a symbol "-s"...
mfg.hft.fsl IOhannes
Em sex., 6 de dez. de 2019 às 07:56, Christof Ressi christof.ressi@gmx.at escreveu:
[value] and [float] also have a built in send function,
[value] doesn't have a [send( method - yet! https://github.com/pure-data/pure-data/pull/606
Oh yeah, I'm jumping ahead of time here :) I thought this had been merged already, sorry ;)