Question about getting data from coll to be scrolling in a textedit object
Hi,
I have a patch that is collecting and using data in a coll object.
I want to be able to see the data collected into the coll in real time in my patch, and i want it to scroll.
I have been looking at the text and textedit object.
The textedit object looks really great, but I can't see how to get the text into the object without typing it.
Is there a way to just send the textedit object text? Like the same text that is going into the coll?
And from the textedit help file, I am thinking that if I want the text to autoscroll I need to use the attrui object to get all my attrubutes how I want them.
i am also open to other objects or display formats that might be easier, but I am looking for something that doesn't use too much cpu.
Thank you in advance for any help.
Nick
A simple way might be jit.cellblock reffering to the coll. It won't autoscroll to the bottom. But it has a sync input to scroll it.
jit.cellblock as 11OLSEN suggested, but depending on how much you want to see
you could use less heavy objects, like comment for example.
dump last nn lines or scroll through coll indexes.
scrolling depends on how you feed coll,
insert message or store
This is another suggestion using the [chooser] object:

Hi,
Thank you all for the great info.
I like the jit.cellblock option
I am having a hard time syncing the latest input into coll with the scrolling of jit.cellblock.
I found this older post, which has a patch in it that i modified and is very helpful in getting jit.cellblock to scroll.
But it still only scrolls the the 2nd most recent input of coll, and not the most recent one.
I will keep tweeking this and hopefully figure out why that is.
Thank you all for your help.
Nick
Post a patcher showing the problem in case you need further help.
scrolling message depends on number of visible and total number of rows in your case.
What you need to do depends on inserting or storing new values into coll.
If you insert, no need for scrolling at all.
OK here is a patch that shows my current issue.
Hopefully you can see that the data from the coll is being nicely displayed in the jit.cellblock, but once jit.cellblock is populated it is one data entry behind.
I included a message box that shows the latest entry into coll and you can see it is not reflected in the jit.cellblock.
Any ideas how I can remedy this would be greatly appreciated.
Thank you. Nick
It requires some fiddling because the number of lines you can scroll depends on the heigth of the cellblock and the rowheight (like SOURCE AUDIO mentioned). I did it with a js in the past which looks cleaner at the end but like you see, it can also be done with objects.
btw: you could save it to be used in a bpatcher. replace [r sync] with an inlet that you send a bang to update and use [refer #1]. #1 is replaced with the first argument (coll name) when you create the bpatcher.
wow 110LSEN. You fixed it. Ok thank you for all these tips.
Thank you to you and SOURCE AUDIO for all this info. This is great stuff to know about for real time feedback. I've been using Max for almost two decades, and never really looked into this. Now I can see how to do this.
thank you again.