how to create a "/source/GenericNumber/aed" message?


#1

Hi,

I would like to be able to easily control the source number in my /source/i/aed messages (for example).

I was thinking about using the spat5.osc.prepend but if I use a “spat5.osc.prend /source/” and that I send it for example the source ID “1”, I output “/source 1”
Worse, if I add a “spat5.osc.append /aed” at the end, I output “/source/aed 1” instead of “/source/1/aed”.
Is there a way to go around this? the normal prepend and append don’t work either, as they would add spaces…

Thanks!

Laurent


#2

Hi Laurent,

Maybe the attached patcher can be useful ?

Best,
T.

  
----------begin_max5_patcher----------  
524.3ocyVFtaaBCDG+yvSgkk12XDLPHM6UYppxDtj4NvFYa5xTUe2m8YRa2Z  
xJMgVUITP93r+e+rOeWtONhVq1CFJ4ajuShhtONJBM4MDMNNh1w2uokaP2nc  
fwv2Azjv2rvdKZegQMn2.KJWvgFxxpTRVZ9ZBK8fmxgNgrEr3xjOZrma27Cg  
b2MZXiMDFWkklkPxywWEr7zktQrzLx0OsPpA6gUhMZMXx96dHrLT5iSPzfQn  
p91uxJodaODG6+IYhLKge4l7KPtUwa7aGD1QYjcZFWgTsDQrZIx6rQX94P31  
VkST5iQrl2AVPeCH40sndYieaqR2wQLpdiPWTgTGNeCr+enN+jTmPn0b4tiS  
O6SK8Ye.zm8Yk97x2e5WOiWs64+zU+x+bhBXEuJqLFhIqX8rd+d0bRoF5AYy  
4U8hsB4qbdwq5rvanqFzSIC9sg36Z5ZwLdPZ50BocKw.VxgFweow2I9LOaOj  
6VMu8ldNxnCzVg7e++GXT4s+26CArFW9PpRB4o3pALVgjaEJ4y7w0u2gA45i  
tUOUgVMAgFClKRGWq6WWnh4PH1DDxSc9kJT1DE5ROhVOQct3ctOnTghoja+B  
cBWo3882AZynynDthH2pz9gWkfCExvPrtHUC2IN3eIZgqcEFrtpBCZLrn6qJ  
ogopZ.sbPf29i8v4jDKPIcUcM87.GXcr3Gh+CHUAZuF  
-----------end_max5_patcher-----------  

#3

Hi T.

Thanks a lot, that’s prefect!

Best,

Laurent