i was trying to make a midinote-to-text abstraction...
but i don't know how to display a string coming from a [msg( object. the only way i know is to connect the [object( to a [print] object, but this print the string on the console.
thanks!
On Sun, 2 Jan 2005, Federico wrote:
but i don't know how to display a string coming from a [msg( object. the only way i know is to connect the [object( to a [print] object, but this print the string on the console.
The [display] object does like [print] but inside of a patch. However this was coded this morning, so you'd have to use the CVS of GridFlow (see http://gridflow.ca/) and compile it yourself (on Linux and OSX).
Ironically, I have just posted a screenshot showing what [display] can do. Actually I only gave examples for float/symbol/grid, but you can really make it print any message. It will insert a colon between the selector and the $1, such that:
[1 2 3( -> [display] shows up as [list: 1 2 3] [note 66 10( -> [display] shows up as [note: 66 10]
The screenshot showing the other examples is (I repeat myself):
http://gridflow.ca/gallery/display.png
Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju
On Sun, 2 Jan 2005 10:13:32 -0500 (EST) Mathieu Bouchard matju@sympatico.ca wrote:
but i don't know how to display a string coming from a [msg( object. the only way i know is to connect the [object( to a [print] object, but this print the string on the console.
The [display] object does like [print] but inside of a patch. However this was coded this morning, so you'd have to use the CVS of GridFlow (see http://gridflow.ca/) and compile it yourself (on Linux and OSX).
Ironically, I have just posted a screenshot showing what [display] can do. Actually I only gave examples for float/symbol/grid, but you can really make it print any message. It will insert a colon between the selector and the $1, such that:
i just saw your message, as soon as i posted mine :)
in that while i discovered now the [set xxx( method for the message object, that can change (dinamically) the value of a message object, and the problem of display a string is now solved.
however, looking at your object, i tought it can be very useful if it allows you to *enter* data. think to an editable 2d grid, or better, think to a tracker (do you remember that old sequencers that were used for composing C64 & Amiga tunes?).
the paradigm to read/write data to this object should be like the table/tabread/tabwrite objects: you supply X,Y,VALUE to write, and X,Y to read (the triggers should be respectively in VALUE for writing, and Y for reading)
tell me if you think something good of my idea :) best regards,
Hallo, Federico hat gesagt: // Federico wrote:
however, looking at your object, i tought it can be very useful if it allows you to *enter* data. think to an editable 2d grid, or better, think to a tracker (do you remember that old sequencers that were used for composing C64 & Amiga tunes?).
I did something like this for my rradical collection, but it's not in the CVS yet. Basically it's very similar to rrad.nseq.pd on the CVS, which already is very tracker like, but only for numbers. In rrad.symseq.pd I replaced the number boxes with symbol atoms (Ctl-4). Then I can input and sequence symbols easily. A special trick then allows to store something like "more than one symbol" inside such a symbol: seperators!
Currently I use "x" as a seperator there, but in theory it can be any character. If you have a symbol "30x40x50x60" then you can make a list out of it with [s2l x]. You can feed it as well by somthing like [l2s x]. Both s2l and l2s are in Zexy, or maybe use fromsymbol/tosymbol in Cyclone.
This is very trackerish already and IMO quite flexible. Now symbol atoms only need some better line editing interface... (readline anyone?)
Frank Barknecht _ ______footils.org__
i was trying to make a midinote-to-text abstraction...
but i don't know how to display a string coming from a [msg( object. the only way i know is to connect the [object( to a [print] object, but this print the string on the console.
The [symbol] gui object (Ctrl + 4) should do the trick. Alternatively, [set $1( or [pp set] (which also works with lists) to a message box.
thanks!
you're welcome.
Hallo, Peter Todd hat gesagt: // Peter Todd wrote:
i was trying to make a midinote-to-text abstraction...
The [symbol] gui object (Ctrl + 4) should do the trick. Alternatively, [set $1( or [pp set] (which also works with lists) to a message box.
Third alternative would be a [cnv] object, which I use a lot for this, if I want "read only" displays. The only ugly thing is that space are quoted. Then you also can do some [tot] magic or probably some other solutions.
Frank Barknecht _ ______footils.org__