Has anyone ever worked with drawing a signal onto a plot in PD?
I'm look for something like tabwrite~ but that draws to a plot rather than a table.
Graphical Data Structure: Plotting Signal
Has anyone ever worked with drawing a signal onto a plot in PD?
I'm look for something like tabwrite~ but that draws to a plot rather than a table.
what is a plot?
any technology distinguishable from magic
is insufficiently advanced.
Go to http://www.pd-tutorial.com/english/ch05s02.html and scroll all the way down to patches/5-2-3-1-data-structures9.pd, it's the 3rd image below that.
i still had no time to try it out, but maybe it would be possible if you use the [set] object and select the next pointer every audio block, so that you plot as many items as audio blocks you want to display..... just an idea.
edit: don't know, if i got you right, do you wan't to build something like a scope?
I'm pretty sure I can figure it out. Just wanted to gauge other people's experience out there. There seems to be very little work with graphical data structures going on, which is a shame really.
I'm trying to make a drum loop program that takes a loop and separates it into it's hits (using bonk~) and then allows the reshaping of these hits graphically. I've got the backend finished, just need to start working on the interface.
uhhh........... will you upload this? sounds cool!!!
and yes, it seems, that not much peaople work with data structures.... good luck, if i find out something useful, i'll post it here!
sure!
don't expect it soon
hey saturno.
did you get further with this issue?
i'd like to learn a bit about data structures, so it would be cool to keep me up to date in this thread. if i find out something useful, i'll post it here too.
it seems, that it should be possible to draw a curve by plotting an array (help file of the [plot] object), but i can't get my head around, how this works with arrays. do you know a good tutorial for data structures on the net? the one on pd-tutorial.com is nice but it only scratches the surface of data structures.
http://www.pd-tutorial.com/english/ch05s02.html
The original is in german. You german right?
Anyway, I got it to plot an array just as you said. Take the array size and divide that by the plot size (which should be smaller), that gives the increment to use on the tabread.
Here's a nice tutorial that helped me a lot:
http://puredata.info/Members/ggkarman/Tutoriales/datastruct_en_02/view
Unfortunately, nested structures like array or curves you are interested in are not covered. However, reading this gave me new insights about these on the patch in the documentation.
@saturno said:
http://www.pd-tutorial.com/english/ch05s02.html
The original is in german. You german right?
Anyway, I got it to plot an array just as you said. Take the array size and divide that by the plot size (which should be smaller), that gives the increment to use on the tabread.
yeah, i am and as i already mentioned, i read this one yet... but couldn't find useful information on how to plot arrays. well, i guess, i have to experiment a bit...
have you got an example patch to upload here?
@ kyro: thank you for the link, i'll check this out!
You're welcome! You should also have a look to the Data Structures Workshop patches by Frank Barknecht on pd's tutorials and howtos page:
http://puredata.info/docs/tutorials
Very progressive. I didn't open every patches but 20-tut.pd seems to deal with array dynamic ploting.
hey, i seem to found a way to visualize soundfiles with data structures.
i played around with one of the pd help files....
open the attached patch and load e.g. a snare sample and see what happens.... looks like a starting point!
hmm, when I open it all I get is 3 float object and one pointer object with the message:
error: message stack overflow
what? strange - i downloaded it again to be sure, the file is not corrupted - no problem here, works like before, no error messages here.
try again with this one, there seems to be something strange with the filesize...
It worked! I'll give a look at lunch (2 hours)
This is what I have so far.
Start with the big red button.
that's quite cool - the only thing i'd suggest is:
you divide the size of the sample by 250, so only every 250th sample will be displayed. another way would be to resize the x axis of your data subpatch to the size of the sample (via a coords message), but keep the gop size to say 100.
this way, the graph on paren size does not change but the resolution inside the data subpatch changes. sorry for my bumpy explanation, have a look to the attachment - this might make things clearer.
>you divide the size of the sample by 250, so only every 250th sample will be displayed.
Unless I'm mistaken plotview.pd does just that. It takes the table size divides it by 250 and then increments by that (rounding of course).
It could be done the other way you describe but it is only for viewing purposes so I don't actually need a large plot with the memory and processing requirements that come with that.
The next step will be coming up with some graphical structure (probably octagon shape) that would represent each hit of the drum sample (using boink~). By manipulating the shape you could adjust its envelope, speed and position. Hopefully i'll have time to work on it this weekend.
Oops! Looks like something went wrong!