capture object

Aug 31, 2012 at 3:09pm

capture object

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.

#64183
Aug 31, 2012 at 3:23pm

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

#231475
Aug 31, 2012 at 3:47pm

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/

#231476
Aug 31, 2012 at 4:01pm

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.

#231477
Aug 31, 2012 at 4:18pm

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?

#231478
Aug 31, 2012 at 4:25pm

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??

#231479
Aug 31, 2012 at 4:28pm
#231480
Aug 31, 2012 at 4:36pm

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

#231481
Aug 31, 2012 at 4:58pm

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?

#231482
Aug 31, 2012 at 5:20pm

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.

#231483
Aug 31, 2012 at 5:25pm

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

– Pasted Max Patch, click to expand. –
#231484
Aug 31, 2012 at 11:06pm

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. –
#231485
Sep 1, 2012 at 11:17am

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

#231486
Sep 1, 2012 at 11:20am

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

many, hundreds of thanks to everyone.

#231487
Sep 1, 2012 at 12:56pm

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

i think it looks bootiful.

-110

#231488
Sep 3, 2012 at 3:24am

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/

#231489

You must be logged in to reply to this topic.