Forums > MaxMSP

capture object

August 31, 2012 | 3:09 pm

i’m trying to save osc data as it comes in to a float box by using the capture object, however with the limitation being 512 values I’m getting around 4 seconds worth of data before it overwrites it, which is kinda rubbish.

is their any way to stack the capture objects or write a new file every 512 values? any help at all would be amazing.


August 31, 2012 | 3:23 pm

You could use the [mtr] object instead. Although it has multi-track recording and playback capabilities, you could use only one track [mtr 1].


August 31, 2012 | 3:47 pm

I don’t follow, i need the osc data to be stored externally for excel. its not signal data i need stored its numerical.

i was using the capture object with the write message for this.

never used the mtr object before/


August 31, 2012 | 4:01 pm

mtr doesn’t deal with signals, otherwise I guess it would be called mtr~, it records any kind of message, such as ints or floats.
You can then write the resulting data to a text file easily imported in Excel.


August 31, 2012 | 4:18 pm

im getting no data from a continuous float going into the left input with a record message also going into the left input and when i send the write message the file is blank. i cant work out how this object works?


August 31, 2012 | 4:25 pm

now the text file has this nonsense in it  ptrack Q Zqfloat $là@ †q$>ÖÝ@ ‚q$†Šá@ †q$ΐÝ@ †q$V.à@ ˆq$< †Þ@ „q$Þ­â@ Žq$U5å@ ‚q$?Óà@ rq$üHâ@ zq$"ß@ ¤q$æöÞ@ pq$m_æ@ šq$¢Wã@ †q$„å@ ˆq$–ä@ tq$`eã@ ˆq$&ƒè@ †q$0å@ „q$€/ß@ ˆq$Ɲß@ †q$Ïíã@ „q$ ›à@ Šq$fSå@ €q$ª‰á@ ˆq$l*á@ rq$™ká@ ˆq$ö„Ý@ †q$}Þ@ ˆq$(äâ@ „q$f"ß@ †q$rã@ ˆq$Ûwß@ ‚q$˜ä@ –q$ÅîÞ@ xq$Jšä@ †q$†Øâ@ †q$0â@ †q$+äâ@ ˆq$Çœæ@ ‚q$„ æ@ ˆq$vqç@ „q$º‚æ@ Šq$¬]ç@ ‚q$.uç@ ˆq$iæ@ †q$¢ââ@ „q$áDì@ „q$Ö9é@ ˆq$^éå@ †q$Pë@ ˆq$%eï@ ²q$høã@ Xq$ý˜â@ †q$ÁMë@ †q$}ïô@ vq$zà@ †q$ Žå@ †q$âßæ@ †q$Óá@ †q$ö¦ì@ †q$ÂÕè@ †q$¿»à@ „q$­Íä@ †q$Huå@ †q$û„Ù@ †q$ÙMé@ †q$|"ã@ †q$áîÝ@ ˆq$ÂNà@ †q$ëì@ ˆq$è¼â@ ‚q$§œã@

i simply want to store incoming float values and store more than 512 of them, is this beyond Max??



August 31, 2012 | 4:36 pm

thanks tobiasros but that didnt help me. very frustrating problem.


August 31, 2012 | 4:58 pm

Start by using the Help File. Use the drop-down menu at the left.
Choose Record
Move the first slider to the left randomly.
Choose Stop
Choose Play.
The slider choose repeat the slider movement.
Now Choose Write
In the Save As dialog choose "Text File".

Does it work?


August 31, 2012 | 5:20 pm

thanks for all your help, i’m going to use the text object, it writes a float every 0.13 seconds which is ample for my needs.

i appreciate all your help.


August 31, 2012 | 5:25 pm

one way with using capture, but jit.matrix + maybe jit.fprint would be more comfortable…

– Pasted Max Patch, click to expand. –

August 31, 2012 | 11:06 pm

The capacity of the capture object is set with its first argument. (See object help and reference pages.)

The data to be recorded in mtr must go in the inlets to the right of the first inlet, not the first inlet. (See object help and reference pages.)

One can store floats in a jit.matrix with a ‘setcell’ (or in this case, ‘setcell1d’) message.

– Pasted Max Patch, click to expand. –

September 1, 2012 | 11:17 am

thanks for this, i understand first argument sets the size of capture but no matter what i put in there it was always 512.


September 1, 2012 | 11:20 am

needs to be a power 2 number. i’m a total thicko.

many, hundreds of thanks to everyone.


September 1, 2012 | 12:56 pm

"$là@ †q$>ÖÝ@ ‚q$†Šá@ †q$ΐÝ@ †q$V.à@ ˆq$< †Þ@ „q$Þ â@ Žq$U5å@ ‚q$?"

i think it looks bootiful.

-110


September 3, 2012 | 3:24 am

when i send the write message the file is blank. i cant work out how this object works?

____________________________________
Love life, stay healthy and enjoy every day
http://www.mmolive.com/

http://www.mmohome.com/


Viewing 16 posts - 1 through 16 (of 16 total)