All times are UTC

 
 



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Regexp help
PostPosted: Sun Feb 12, 2012 11:52 pm 

Joined: Sat Oct 15, 2005 4:24 pm
Posts: 209
Location: London
Pulling my hair out trying to do simple stuff here with regexp. Can anyone tell me why this patch ain't working? I just want the regexp to pull the last number from a scene and set that as the 'scene loop length'. It's for a device that launches scenes relative to a master scene - I'm now trying to add a bit to allow my drummer to 'step through' a loop of scenes with one drum pad.

Code:
<pre><code>
----------begin_max5_patcher----------
4281.3oc6c01iaaiD9yaA5+AAiBzqMaVHRJRQUfCGx0KHW.RROjFbeIWvBYa
sdUqrjgj1MIs3te6GEGIaIuR1Tz5EmrJncssjsznGN7YdgjC+yu8atX17nO4
kLy3mLduwEW7mhibg7XYG4hhCbwr0teZQfah7KNK7t0y8hmcY94tIJLMzcsm
7bOK12MX6o7WJOXz7e6o1VaOp326GF3kJuZnxWlD++PdYPnqnNTD2tzOI5tz
heCt3vabSWbqe3pqi8VjBODXL+JyKMnbK4KlY+EK9qwGJ9QvEJ8ya7fewL+v
zYWZLata3pYFeP9s9ue62j8p3kKUGV79n3Ac6SYp2mjhzrDim9zm9J2jzecg
WnWagMRafMr3osVDy7PHlM.Ub6rW3NODwVDEDECeYyqvDGLhco3cLKBhXm8N
aSGto0kFnreUmCfO4.XlweOJXYs.mY8.GtVfyrIfCo.vYQxdgfuhJP.9QU05
ADJNSE60BULuXcTxXN0iUlsSI6fXESpWY4HgLjI5HZYNXGKDNS2hvLs4VYui
yD+yNWKqQH9Tv20dIItq7dH.6GtnsXpUaz+NLe2g.VjiraKFQUVI7TPHAPrz
aQsOvzivTo9yDEzNroEJIGkB+lfH2SqmkN1zX1CiMMTNdL3lzVDsdsW1kZ+9
C+5O+727bi27rW+7eRGxY5NfaSrWh3V3l5GEV9QV9Th.pUt74upVsB.toNVC
sgaIED.vKhp24xRr79z8vqoVfJa6QmupDYJ.dk+S8OKk.AGycvNwY3.eDBtm
TKIolEcTP+W8K+x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vKcX0kN7vKcVp
KcngW5PpKcCudGlqrzM7MrX05TXOJ8XwLkQtgW3HsfNYvENj5H2vS0gTuCg0
v2rpNxwFdgScjiO7BmixBm8vKbpa.yY344TG4nCuwURURhFDN733SGopUyFD
NzYrO7jSyGdGKmq3PAvs6biOa6q73v5dSeCEDcLm.UIenbDjOfmL9gKcrsSr
Od+HqwweAjJgaRFE2E12+tFjswoaDVIp6wIlRrRZbsF2xJmehdFT3EF1Y6m5
FoF2KRMxDwGew1houbCqUQGx1OMfJIsWt2pkzOhMRIBqwI8XH0zfGGBq8l2F
JMg5FLYSIl91aYua5nnhrMRhlRNygFGufIDkbs.OJ9VPTp2.YbPNlRCAvnfa
JkGhwIubJwgLNdYqVBRFMQCoB61vqqwUi.YbndcTQ1Xii0T0rJz5DTmGYLFI
coiiPa+T2H1Jk5Zx3PtnVDUliT7dDkyv.5bUabjb7TotwX53IbJEP7H3GfRo
+f09bwYJidDyfJeu41OzMRs8oI0ndERUpiBydTDNpZs2iTRLOMfqYcQo1mUw
bOs3CCnpHZbLnXqjoX6QZFynDsn83LD2L0Ety1l0QpSrZyRqwIydpMq7nmt+
9YGP7x+Gh+Pq4
-----------end_max5_patcher-----------
</code></pre>


NB. Initial thread here: http://cycling74.com/forums/topic.php?id=38050

_________________
--
http://www.psykers.com


Top
 Profile  
 
 Post subject: Re: Regexp help
PostPosted: Mon Feb 13, 2012 12:13 am 

Joined: Sat Oct 15, 2005 4:24 pm
Posts: 209
Location: London
Darn, I just realised I have a more tricky regexp to write... basically it needs to do this:

IF scene has 'mstr' in the label, THEN Get scene 'loop length' from last numbers in scene label.

Is something like this possible?

Patch so far:

Code:
<pre><code>
----------begin_max5_patcher----------
4411.3oc6c8+iahbE+myI0+GPVUJsMaVw7UfSpJJ8tsoqTRtpbQ8WxEsBay5
k6vfEvtI4N092dg4gsA6YLiArwqWhtasMfwO97l4y79xLu4O9Se2yFMN5qdI
iL9diOY7rm8GYG4Yhikejms7.Oazb2uNIvMQbgiB89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ci48BhZSzQ1H8CEisNxFqW5Cqk6S39wAEcDsdxrKsb.n2D
MjNn1wusFQqAyH8SqMhdDH3dA4v5MdQ+fbXsBOT+LNqdNC2SBmVcG5G6NQZo
T2XVBbzDNjNcU6mnpg0xnX5dajjCilaKGCJPQN70epaDa7gQrQlHV+K2nlJ1
EaTpbrypOcDakfZXiDNgVVpy+T2H0ZExj9wcOrVL8j9gvhnEgEoeLJCocDF5
IfC28ieisIvdYFTt2JlY0cFqjVVqQ26NJVXQ+ZJU7hC15R6hMGFZW0EWHT0B
339oajP3H0Jb8jUvZEY178vaC1wueDUagy43Kb5ibVGegyVagy93KbbsEN9w
2Jc8QN5wW3zG4HGe0po1BWODJB8QtdfDVOjqehLGV+ND3i+XqH8ay0Ci7q+3
WnieWBJVeoqGzr6AaxwmqSuYHU+3SISuI9F+DV3n8STvnVZkwq16FQ9Axd4+
C0fwMRC
-----------end_max5_patcher-----------
</code></pre>

_________________
--
http://www.psykers.com


Top
 Profile  
 
 Post subject: Re: Regexp help
PostPosted: Mon Feb 13, 2012 12:21 am 

Joined: Thu Jun 24, 2004 2:15 pm
Posts: 11651
Location: Denmark
you can do stuff like this with "route" and "unpack", really.

The trick is that if you can't describe the process with a single object, do it in a couple.

Now, we probably don't all need to run your entire patch to help you parse this - could you replace the inputs from Live with just message boxes with the messages in them? Strip it way down so that it's more easily readable?

_________________
mbp 2.66, osx 10.6.8, 8GB ram.


Top
 Profile  
 
 Post subject: Re: Regexp help
PostPosted: Mon Feb 13, 2012 12:36 am 

Joined: Sat Oct 15, 2005 4:24 pm
Posts: 209
Location: London
Ok sure here's just my current problem bit, with the type of title I have for a 'master' scene and a normal scene, both with numbers at the end.

Plus the regexp bit I don't know how to write! :|

Code:
<pre><code>
----------begin_max5_patcher----------
1235.3oc2Ys0aaaCF8YWf9efvujsAGCQRIao9RP2PV2.RSGv1aYAAxVL1bSh
TPhNMcE6+93MKIaSYEG6T6r.Dcgj5iGd9tR5u912zq+D9ijx9f2AtAzq2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Rqk7xVE.Qpzsp0kFVU1EUp3U+hGy4L
hYeVsLkT1CzRp0ryqUJQ7EqgoygDyXbqyYkt1s9co4havjsckOUhDUgj1cN3
4dQuz5GsEQzvUyshXNuProYae6PsQJqe3EX6IpBHcFyD+bqwVF+BO1GK2gUD
pd6I6996bu8D3vfn.X33uI6Qo8yFxco1ggclJwKrQ0fQgGjpAwFwL1TTXf2+
eNbtNLd+S4ekW7cpae9G9dmZD79TpDTWIYj1.NB9ZbW1OyigGGze+sGMEXdL
OEdyLpOHv0+4KzvV0wZrWIeQwzkRb4A0.f0XOgTJnrJGjap+cK.MVgyoIID1
JNEYzjbNkIrHYaJ0mL3VeZcCN0A0cxBN0OnwQ.bnmDwgOcwV3wAavSXdCdBy
aZJA2E3PniG3PcBtiSLNzSyUcmCifgAli9PmsBMxu5sCCrguLvFE3+RBas6Q
mo6T0GbDLEVeZawCe+S2oZPd6+vLo4kL
-----------end_max5_patcher-----------
</code></pre>

_________________
--
http://www.psykers.com


Top
 Profile  
 
 Post subject: Re: Regexp help
PostPosted: Mon Feb 13, 2012 1:13 am 

Joined: Thu May 05, 2005 5:42 pm
Posts: 408
Shelluser wrote pretty exhaustive tutorials about regexp, you should check those out


Top
 Profile  
 
 Post subject: Re: Regexp help
PostPosted: Mon Feb 13, 2012 1:20 am 

Joined: Thu Jun 24, 2004 2:15 pm
Posts: 11651
Location: Denmark
also, this needs very little regexp in the first place ;) And the main reason you'd even need regexp for this (the last part with the "L12" is because of a naming convention that I suspect OP introduced him-/herself?

Anyway, this is one variety of it.

<pre><code>
----------begin_max5_patcher----------
1297.3oc0Y00bhaCE8Y3WgFdIuP7X8k+XepocR21Yxlsyz9TSyjw.Jf2ZKyX
IRS2c1+60RxFLfswlPbgYR.aYgtGctWcuGI+sgCFMI4UlXD3CfG.CF7sgCFn
aR0vf76GLJN30oQABc2FEyDhf4rQiMOSxdUpaGhJZhuJNjGwj59ixabYfb5h
P97mRYSkF6gvXKOWB1eLffrsrGCn5OgdV1fG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h1KOgSRmwRKwEa8vnD97lb86PcqhyonhI6ZWRA125GD
mE1oY5Bcfa8zPdnTUQIuJqckCQl3p+VAvxwVa0gB+VUyNwhjT49SuQldpW0T
70I8j9Ukh57droTKroDMzHyyE2n1Fbeep9PKpOE54VhtzcTK.dm2bjdBpZea
NTjrJcZgYyORI.bs4lwDxP95kTOr48W.1vAKBmMiwKKVaVnPslVyMUmOrsvY
GSUCdHaA5+2wi5TE5I9oMtK0wP2SvYGSUMdTuNgdBOj13sNqbVt8VnLtEbSO
tvB0R3zS4cfmUvA2hHGBt+XmVPN8GZfmUnocQNNG.OwgyVlDxkhMu0Q55SXB
SQquaig54khcbFTFyu6y.8RAzgTMzeUo03AeH7f5uBQsIFk5bdgGxwJavnIN
X4R0wRkOlZnjsChuXNTQmw5aC4la0iX1dGdIrn+3gpQ66C+O.nMrp3C
-----------end_max5_patcher-----------
</code></pre>

_________________
mbp 2.66, osx 10.6.8, 8GB ram.


Top
 Profile  
 
 Post subject: Re: Regexp help
PostPosted: Mon Feb 13, 2012 5:15 pm 

Joined: Sat Oct 15, 2005 4:24 pm
Posts: 209
Location: London
Thanks so much for that - it works great in the edit window but for some reason doesn't seem to work properly in the project!

If I click on a scene labelled e.g. "newsong mstr 65bpm L22"

I see the loop length coming out as "newsong mstr 65bpm 22"

- but if I send this through in a locked Max window I get "22" as expected!

Try pasting that label into a scene, then click on the scene to test it ... for some reason it sometimes needs a click on the buttons to get going ... :)

The 'L' at the end was just to remind me it's 'LOOP LENGTH' there 8)

Code:
<pre><code>
----------begin_max5_patcher----------
4720.3oc6c01iahjs9yYj1+CHqqz7goSq58pXjFoat6z2YiTR1UYh1OrIQQt
so6lcvfkAmIyt5d+suPcv1f6BSY.CtcynLssAL9vScpmya0K+6+z28hI2F8M
u3IN+nyGcdwK92oG4E5ikcjWr4.uXxhoeaVvzX8ENYVzhEdgIStJ+jIdeKQe
hed05zyrxwOb45cm1et9jQ29OeISt8n2EElDNcgm9buZk+z.m+mnf4aO+xo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o6oBkx3Y37xg1JXKes3ZHmUNvuX47
zlie6aoeCJ93DCV1EkpBQsr+UFLsWgYciMt1KbkiAsJgiOLBG2FjS3NHBmx0
FgCerxlRQyXS4B8zGRvUa+TmH0tnSiTSHmRo1J8.4vnGHk1zCRLLcu2+msBg
qbTrmWBmBMLMqJqz4jmw5bRwfzrJshXTpFDgSYuv0TZ6zWjB40TIi5lejdj5
tAh9Nt6SknamWFtjAoyjc3paKsIVztdOpI61RGP5bwV2HSpUrGFResvQq0hz
.4voU5oJ7v3nA1FgiqFDgiams7AxQC6n0YChvwbsF4F.+GkVEKyv34scNdez
tORzKAGD1lLat4CcS+DlUB8vnJJ3sCQwCupnfOLBGqcBW05h5gzBQnGDKBz1
OzIRM157qbTLOBXz0vf0WWArVQp+T2I005oKYXxmF1ptP3gw8FhULlD1fXpA
akQZp7btY8ncuIuqBAqCAPgwa+T23rsU4MaXb01FQiOLIvvpdICimr1HZCjy
CV4F6fIZXaPs9WWiZEkLcXz1nTa.N5vjZahcTxCCxQrJT8gwTlcgzMPBmUcG
FFumvV0nhGljCs2vm0pAYdu0YvpfiFlbHPrp2.cXZToV0nRGFCWXqikXf.NR
2ywQfT0uYosLeVjHTcT73DqhGOaagzg2+XJyZgys+EN6QNY+KbJqENU+KbBq
ENQ+aUydji0+Bm8HGs+aVQVKbCfq61ibCfGA1gbCSjrD66PP5+JYgsWma.py
l81uv8eWBFwdoa.ZYOB1j9mqyJ0N5vDPK0xDGeNO1EUsG5xNP5K+GTkBEeC
-----------end_max5_patcher-----------
</code></pre>

_________________
--
http://www.psykers.com


Top
 Profile  
 
 Post subject: Re: Regexp help
PostPosted: Tue Feb 14, 2012 10:46 am 

Joined: Mon Jul 26, 2004 8:37 am
Posts: 1094
Your patch doesn't work as expected because in M4L the scene name is actually a symbol (not a list).
So before applying 'zl ecils 1' you'd need conversion to a list using 'fromsymbol'.


Top
 Profile  
 
 Post subject: Re: Regexp help
PostPosted: Tue Feb 14, 2012 3:07 pm 

Joined: Sat Oct 15, 2005 4:24 pm
Posts: 209
Location: London
broc wrote:
Your patch doesn't work as expected because in M4L the scene name is actually a symbol (not a list).
So before applying 'zl ecils 1' you'd need conversion to a list using 'fromsymbol'.


Thanks Broc I'll check that out. :D

_________________
--
http://www.psykers.com


Top
 Profile  
 
 Post subject: Re: Regexp help
PostPosted: Tue Feb 14, 2012 5:47 pm 

Joined: Sat Oct 15, 2005 4:24 pm
Posts: 209
Location: London
In the end I went for a system that would just look for 'mstr' in the next scene and then loop on the next 'scene advance' command... it's not quite as dependable if I use my MIDI controller but its seamless for my drummer to loop through scenes, so it'll do for now.

What it could really do with is something that looks ahead x scenes, spots the next master scene, and then sets a loop length based on that. But no way I know how to write that one! This'll do for now - working code! :D

Here's the current version in case it's useful to anyone:

<pre><code>
----------begin_max5_patcher----------
4893.3oc6c01iiaas9yaA5+AAiKP581ICDemL.EE4ltsXAxlOjDbueXSvBO1
ZlUM1RCj0rYSKZ+sWQRIaKORVGNCkoxDs.Id7q5nGR9bdk77O+8+tWs3l7Ok
raQzWD8tnW8p+Y0q7JyqoekW07BuZw1keZ0lk6LevEqx2tMIqbwU0uYYxmJM
uwatMJq5ui1sJIK4Osc4txjhqh1kjs1952rL6tnx7nOqHYWR4ms+GXSZVxp7
GxL+J3lW8l6VkuIuvJanqiuJJ9ZEVQQX8eQhYRo4uDJLhIh9wluW1CaSy1jT
ZDVTyqlt1Hh4272+bJe+U917rxco+iDyGMt5Zb32H+gxlej8u78KKW8gzr6d
eQxpxZAio+ZQTLU+.hK0OfUWGePfzWjrkaMWjEeYQ5xMQ+u4aVuv71+qe+uS
+X0CW87G.9FMJ+cZz+KVzILFagQLu5eBC3w3RN4JM95BBRZcsOcbp0+6vO68
5g8rxkko4YGif1OoFytJRZgQ4o3WWCR2Vb2MCeUcXnjvDlwRjQHjhGKJGeKz
Bb79XbVxOWgzOdHdcxlHbb7hNGqvcMVwbb1N5LPD0LHwYFXpigJ6OS4ubeh8
yuPujewHtTnOXZWzm+4etglY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QL
gZT+r35m4mfJCxGHdfBGOFT33UgS3FNQFwgQgBnIiJmcBRILUlH2t+IO9Y9A
SiGIwFgFSwV.hWREFaK.QnKBzZnXnblOigaAU32gaoZbj5Vqs7tTK.MQfGlI
BvVAIBilcF7r0D.jCjvwCShWYfBaiLLBmDTzGjAxiPLnHrFlnXJgE9WmSyEh
fnVesZNsgE6ep+D7gUFFFWujfTFJ3tWKRTSoGRpONrnT79m5GJHPA8QFH9QP
wwSfl5BW.hNKrg0v3ZHFTLPYgg7FECxqZVXBaFAVTyBSnsgQBp3S3pEEEGlD
eBqjPQwApRagkcw3.EYwXXEWIJLJwPvhY7i3cFV73DS48hsa3TT79m4GVZPb
M3vP0fAsZNfUrJLfK.YFEVLic1YcAyjvEjcuPq6zrMOyOhs34I1nQESYOucI
wnJbXPHGIL1PCaXkDlD0SGmkw0qTv1FPSkJ88OyerOH+ukcv1NxW8gcf9Yr5
m4Ik3vpYNmmmRPljuQDL6wxfZ+y7yxKzHob2iNyLbVWwtuUiL3Hs9nu3nm4G
CNIijEcXiISDkM97GdxETpogIP3TPJoXOe8.5Wn5g+Cvm68cV
-----------end_max5_patcher-----------
</code></pre>

_________________
--
http://www.psykers.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC

 
 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group