Hi,
I'd like to do some very basic stuff with stream of values coming from a sensor. Lets say I'd like to take a value and subtract it from the value that follows it. I came up with a solution, which does the work (see attachment) but I'm sure there's a more friendly way to do that. Especially if I'm looking for a way to do some more complicated stuff with streams...
Hope to hear some suggestions.
Thanks a lot!
ymotion
-
Working with stream of values.
-
Anyone?
-
Hi, ymotion:
I think this may work for you. I tried to make it as simple as possible.
Happy coding and playing!Sumidero
Debian Stretch on Lenovo T450i, Lexicon Omega.
Pd-vanilla 0.49.0-3~bpo9+1 (installed from repo) -
Hi Sumidero,
Thanks a lot! Nice!
For some reason I thought there should be objects in Pd that deal specifically with streams of data. But I guess you just need to build something yourself... -
Hello again, ymotion:
I found a surprisingly easier way to do what you asked! I laughed a lot because of the simplicity. I didn't feel that the first version was the best, and there was a better way, but that simple?
Nevertheless, here it is.
All the best,Sumidero
Debian Stretch on Lenovo T450i, Lexicon Omega.
Pd-vanilla 0.49.0-3~bpo9+1 (installed from repo) -
Hi sumidero,
Wow, you're right...It seems like making something simple is somewhat a complicated process!
Thanks for taking the time and effort here.
ymotion