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.
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!