capture~ output formatting
I have been using capture~ to store signals but have found that the resulting format of the text file is quite annoying.
I intend to use the captured signals in Excel/Matlab or similar to plot the data.
I am capturing quite large number of samples (15seconds at 48k).
Also I am using Windows v 4.5 Max/MSP and couldn't find any objects to this end.
Can anyone suggest a way to format the text file into one large column for example or any better way to acheive "usable" text formats?
thanks
J
AppleScript, awk, Perl, etc...
Given that there are no formatting commands documented for capture~ and that the control-option-click popup shows no undocumented formatting commands, you need to look outside the (Max) box.
I usually use TextWrangler's grep for this sort of thing.
You could also consider recording into a buffer instead, and then dump
the content of the buffer using peek~ into text.
Best,
Trond
Jam wrote:
> I have been using capture~ to store signals but have found that the resulting format of the text file is quite annoying.
>
> I intend to use the captured signals in Excel/Matlab or similar to plot the data.
>
> I am capturing quite large number of samples (15seconds at 48k).
>
> Also I am using Windows v 4.5 Max/MSP and couldn't find any objects to this end.
>
> Can anyone suggest a way to format the text file into one large column for example or any better way to acheive "usable" text formats?
Jam schrieb:
> I have been using capture~ to store signals but have found that the
> resulting format of the text file is quite annoying.
Me too, and as its size is limited, I switched to other methods.
> I intend to use the captured signals in Excel/Matlab or similar to
> plot the data.
I needed it for analysis of data inside a pfft~. I made an abhaXion for
that purpose which is recording into a buffer~. Now I can plot the data
inside Max, even no need to do analysis with external tools. Its
realtime and I literally can watch whats going on...
> Also I am using Windows v 4.5 Max/MSP and couldn't find any objects
> to this end.
My object is called binalyze~ and is part of the St.ools, its aimed at
analysis of fft data, but maybe it will be inspiration enough for you to
adapt it to your needs...
> Can anyone suggest a way to format the text file into one large
> column for example or any better way to acheive "usable" text
> formats?
for serious analysis its better to ignore capture~ it was never more
than a quick hack. Its existence confused me as well for a while... ;-)
Stefan
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com
Quote: Trond Lossius wrote on Tue, 01 January 2008 07:25
----------------------------------------------------
> You could also consider recording into a buffer instead, and then dump
> the content of the buffer using peek~ into text.
>
> Best,
> Trond
>
----------------------------------------------------
Thanks for the replies guys.
Trond, I'd be very interested in hearing how this works if you happen to have a patch already built with this function?
I had a look at the peek~ documentation but couldn't see how to save the buffer to text with it.
thanks
J