a sentence as one symbol


    Nov 17 2006 | 10:17 pm
    Hey all, I was wondering if it was possible to store a sentence as one symbol in a coll. In the below patch I want to separate the phrase "Player 1 PB Speed" from the two numbers right after it but I want to do it in such a way that it comes out as one symbol. How can I do this?

    • Nov 17 2006 | 10:46 pm
      If you put "quotes" around your sentence you should be fine. So you would be sending the message 0 "Player 1 PB Speed" 2 122. There are a few different ways to get it done, but this would seem to be the most straight-forward.
    • Nov 17 2006 | 11:01 pm
    • Nov 18 2006 | 6:20 am
      I actually figured out the quotation thing right after I sent the email (whoops!) But how do I remove the quotations after it gets send out coll as one symbol?
      On 11/17/06, John Dekron wrote: > > like that: > max v2; > #N vpatcher 54 44 704 663; > #P origin 0 54; > #P window setfont "Sans Serif" 9.; > #P window linecount 1; > #P newex 189 219 51 196617 zl join; > #P number 239 354 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P number 214 378 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P newex 189 407 62 196617 prepend set; > #P newex 189 331 60 196617 unpack s i i; > #P newex 230 181 38 196617 zl join; > #P newex 230 140 51 196617 tosymbol; > #P newex 189 82 51 196617 zl slice 1; > #P newex 230 110 51 196617 zl slice 4; > #P message 189 435 182 196617 "Player 1 PB Speed"; > #P message 250 253 14 196617 0; > #P message 189 52 132 196617 0 Player 1 PB Speed 2 122; > #N coll ; > #P newobj 189 277 53 196617 coll; > #P connect 1 0 5 0; > #P connect 5 0 12 0; > #P connect 12 0 0 0; > #P connect 2 0 0 0; > #P connect 0 0 8 0; > #P fasten 8 0 9 0 194 346; > #P connect 9 0 3 0; > #P connect 8 1 10 0; > #P connect 5 1 4 0; > #P connect 4 0 6 0; > #P connect 6 0 7 0; > #P connect 7 0 12 1; > #P connect 8 2 11 0; > #P fasten 4 1 7 1 276 167 263 167; > #P pop; > > John > > Nic Zwart schrieb: > > Hey all, I was wondering if it was possible to store a sentence as one > symbol in a coll. In the below patch I want to separate the phrase "Player > 1 PB Speed" from the two numbers right after it but I want to do it in such > a way that it comes out as one symbol. How can I do this? > > max v2; > #N vpatcher 37 59 507 367; > #P window setfont "Sans Serif" 9.; > #P message 74 201 16 196617; > #P window linecount 1; > #P newex 75 176 62 196617 prepend set; > #P flonum 295 186 35 9 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P flonum 241 186 35 9 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P newex 210 154 72 196617 unpack s 0. 0.; > #P message 269 108 14 196617 0; > #P message 210 54 132 196617 0 Player 1 PB Speed 2 122; > #N coll ; > #P newobj 210 132 53 196617 coll; > #P connect 6 0 7 0; > #P connect 3 0 6 0; > #P connect 1 0 0 0; > #P connect 2 0 0 0; > #P connect 0 0 3 0; > #P connect 3 1 4 0; > #P connect 3 2 5 0; > #P pop; > > ------------------------------ > > > > > > >
    • Nov 18 2006 | 8:04 am
      [tosymbol] and [fromsymbol] are your buddies...
      Quote: bankbot wrote on Fri, 17 November 2006 14:17 ---------------------------------------------------- > Hey all, I was wondering if it was possible to store a sentence as one > symbol in a coll. In the below patch I want to separate the phrase "Player > 1 PB Speed" from the two numbers right after it but I want to do it in such > a way that it comes out as one symbol. How can I do this? >
    • Nov 18 2006 | 5:15 pm
      yay~ thank you!
      On 11/18/06, karl-otto von oertzen wrote: > > > [tosymbol] and [fromsymbol] are your buddies... > > #P window setfont "Sans Serif" 9.; > #P window linecount 1; > #P message 224 309 22 196617 set; > #P message 163 211 33 196617 clear; > #P newex 103 240 69 196617 route symbol; > #P message 52 179 14 196617 3; > #P message 37 179 14 196617 2; > #P message 22 179 14 196617 1; > #P window linecount 0; > #P message 103 330 141 196617; > #P window linecount 1; > #P newex 103 302 62 196617 prepend set; > #P newex 103 271 64 196617 fromsymbol; > #P message 281 90 108 196617 maybe something else; > #P message 199 90 77 196617 or these things; > #P message 136 90 53 196617 that stuff; > #N coll ; > #P newobj 103 208 53 196617 coll; > #P newex 136 142 51 196617 tosymbol; > #P button 79 59 15 0; > #P newex 83 108 27 196617 + 1; > #P newex 79 82 27 196617 i; > #P newex 103 167 47 196617 pack 0 s; > #P window linecount 2; > #P comment 197 61 100 196617 1 pick a message to store; > #P window linecount 1; > #P comment 193 144 100 196617 put quotes around it; > #P comment 171 273 100 196617 take the quotes off; > #P comment 69 40 100 196617 2 then store it; > #P comment 12 164 100 196617 3 recall; > #P fasten 22 0 16 0 229 327 108 327; > #P fasten 21 0 10 0 168 235 214 235 214 198 108 198; > #P connect 20 0 14 0; > #P connect 10 0 20 0; > #P fasten 7 0 6 1 88 133 118 133 118 73 101 73; > #P connect 7 0 5 0; > #P connect 9 0 5 1; > #P connect 5 0 10 0; > #P connect 19 0 10 0; > #P connect 18 0 10 0; > #P connect 17 0 10 0; > #P connect 15 0 16 0; > #P fasten 14 0 15 0 108 301; > #P connect 13 0 9 0; > #P connect 12 0 9 0; > #P connect 11 0 9 0; > #P connect 8 0 6 0; > #P connect 6 0 7 0; > #P window clipboard copycount 23; > > > Quote: bankbot wrote on Fri, 17 November 2006 14:17 > ---------------------------------------------------- > > Hey all, I was wondering if it was possible to store a sentence as one > > symbol in a coll. In the below patch I want to separate the phrase > "Player > > 1 PB Speed" from the two numbers right after it but I want to do it in > such > > a way that it comes out as one symbol. How can I do this? > > > > -- > karrrlo > www.marswalkers.org > www.fleeingbirds.org >
    • Nov 18 2006 | 9:03 pm
      > yay~ thank you
      be careful, that could be 44100 yays per second!
    • Nov 18 2006 | 11:44 pm
      Quote: nesa wrote on Sat, 18 November 2006 13:03 ---------------------------------------------------- > > yay~ thank you > > be careful, that could be 44100 yays per second! >
      that could indeed change gratitude to harassment ;)