hi list
short.
is it possible to display text that has more than one line with
text2d or 3d objects in gem??
i hope i don`t have to use one text object for every line?
thx.
maciek
Hello,
Maciej Wojnicki a écrit :
hi list
short.
is it possible to display text that has more than one line with
text2d or 3d objects in gem?? i hope i don`t have to use one text object for every line?thx.
maciek
Yes it's possible as in attached patch with the ascii code '10' and using 'string' message
Patrice Colet a écrit :
Hello,
Maciej Wojnicki a écrit :
hi list
short.
is it possible to display text that has more than one line with
text2d or 3d objects in gem?? i hope i don`t have to use one text object for every line?thx.
maciek
Yes it's possible as in attached patch with the ascii code '10' and using 'string' message
In relation with that topic, anyone has ever made a kind of 'text to ascii decimal number' converter?
Patrice Colet wrote:
Patrice Colet a écrit :
Hello,
Maciej Wojnicki a écrit :
hi list
short.
is it possible to display text that has more than one line with
text2d or 3d objects in gem?? i hope i don`t have to use one text object for every line?thx.
maciek
Yes it's possible as in attached patch with the ascii code '10' and using 'string' message
In relation with that topic, anyone has ever made a kind of 'text to ascii decimal number' converter?
yes there are several available. just search the list archives.
apart from that: afaik, the [text*] objects are also able to handle several lines with ordinary lists. e.g. if you send it a symbol "line1\nline2" (with '\n' of course being the newline character 0x0a), this should display as: line1 line2
mfase IOhannes
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
IOhannes m zmoelnig a écrit :
apart from that: afaik, the [text*] objects are also able to handle several lines with ordinary lists. e.g. if you send it a symbol "line1\nline2" (with '\n' of course being the newline character 0x0a), this should display as: line1 line2
I do not really get it, how '0x0a' gives '\n', how the 'text' message to [textX] class object handles this newline character? I tried with [makefilename %c] but with no satisfaying results.
Patrice Colet wrote:
I do not really get it, how '0x0a' gives '\n', how the 'text' message to [textX] class object handles this newline character? I tried with [makefilename %c] but with no satisfaying results.
for me this works
[10( | [makefilename line1%cline2] | [text3d]
with 0x0a i mean ascii#10
mfgsdr. IOhannes
IOhannes m zmoelnig a écrit :
Patrice Colet wrote:
I do not really get it, how '0x0a' gives '\n', how the 'text' message to [textX] class object handles this newline character? I tried with [makefilename %c] but with no satisfaying results.
for me this works
[10( | [makefilename line1%cline2] | [text3d]
with 0x0a i mean ascii#10
mfgsdr. IOhannes
oops, for me too...thanks again...
On Sat, 6 Oct 2007, Patrice Colet wrote:
In relation with that topic, anyone has ever made a kind of 'text to ascii decimal number' converter?
There is plenty of that already in the pd-list archives.
The trick is that you divide the number by 10, write the remainder (le reste de la division) plus 48, then if the main result of the division is nonzero, write it to the left of the digit that you just wrote.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
Mathieu Bouchard a écrit :
On Sat, 6 Oct 2007, Patrice Colet wrote:
In relation with that topic, anyone has ever made a kind of 'text to ascii decimal number' converter?
There is plenty of that already in the pd-list archives.
The trick is that you divide the number by 10, write the remainder (le reste de la division) plus 48, then if the main result of the division is nonzero, write it to the left of the digit that you just wrote.
That works greatly for numbers from 0 to 9 obviously, but not for other glyphs than numbers, I might have not been clear enough in the question. The [any2string] external is doing exactly the job I want, it even work with special characters.
On Sun, 7 Oct 2007, Patrice Colet wrote:
That works greatly for numbers from 0 to 9 obviously, but not for other glyphs than numbers, I might have not been clear enough in the question.
Right. I don't think I understood the question at all. I thought you wanted something else.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
Hallo, Patrice Colet hat gesagt: // Patrice Colet wrote:
Maciej Wojnicki a écrit :
hi list
short.
is it possible to display text that has more than one line with
text2d or 3d objects in gem?? i hope i don`t have to use one text object for every line?Yes it's possible as in attached patch with the ascii code '10' and using 'string' message
Attached is a differentapproach using the ever popular double gemhead idiom.
Frank Barknecht _ ______footils.org__
Thx Frank for this useful patch !
Jack
Le 6 oct. 07 à 11:26, Frank Barknecht a écrit :
Hallo, Patrice Colet hat gesagt: // Patrice Colet wrote:
Maciej Wojnicki a écrit :
hi list
short.
is it possible to display text that has more than one line with text2d or 3d objects in gem?? i hope i don`t have to use one text object for every line?
Yes it's possible as in attached patch with the ascii code '10' and using 'string' message
Attached is a differentapproach using the ever popular double gemhead idiom.
Ciao
Frank Barknecht _
______footils.org__ <render-textfile.pd> _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list