[bug] Content.getAllComponents with wildcard misses last character
-
If I have a knob called
knbPan
and a knob calledknbPatch
and I callContent.getAllComponents("knbPan*");
This should return justknbPan
... but it doesn't. Instead I have to useContent.getAllComponents("knbPann*");
HiseSnippet 782.3ocsV0saSCCE1tqFsVfIlDO.Q6pVz1TJLFHg.5V+AUAaqhNl3tIuD2Uq5XG43LVEBIdm3Ei2.33jzlrspRWkvWT0yOeG+4iOmiSesxiEEozHbkSmDxP3GQFLQZF0ZDkKQ8ZivaPNhFYXZmTUGNIjFEw7QX7Zevp.WoLJY862eHUPkdrbUHzYJtG6S7.tIWa+lejKDco9rS4AE7dul87TxVJgJF3yZDWTH0aL8R1wTqakHH7C53yMJ8.C0vh.eNT4OYvH02jo9eFOhegfYEZfF.AJUMp0Htvu+zyZDBgK2O+juV5I+oji397Y5yy.OIwfSNhh4.boEQoF2CJgKPoxoTZSx.OMOzjawxmGR5IgKjgTHUWjJo9hJ8KLokB7PZ1MfNl0UCByPTaeW2scfep+lpUgzcjwYr7h9ToqyaclB6Rl4.gnkJHTIA4nZak5yy1BPUDTik.TJppCUZmZW6vkS2u5Uq.PiTB1tgZtzT6ZaH54Wqt08aZZqclyxF1J2ItMVTbGFK8LbkzQIOVYXmHqUu52gf7ipN21zvgy0l8zpUBASOWy1JZ8h.VSFGbASusyUTQLalivU9MqidvxUG4kl7K3nR1SxMmDxxj6pD915C6+uaUGJ61Cp+JkwPvUSR02FYUeCDbelFwgfTkjjjMdiPI7uXqNZIvudJd4bP+kdsoFpsOHiR.MCYZC2lMvsYWACRR6JpPZyhFaTgIbNqbCRfKCquNeOeWyI4BsahVpPM6.jGneN9VA5t8wvDDkerfZt4XE67yLCPMxM5ks8qxHtYRw4q2iYMtKbVyxRwMI84PVa9brzb3nsL5+.GylP+XRmgCYdlbBVlz8qq533+w1+YUrgKu7HpQygKaxwwACfGl7XvtKkLADbBtjsrOU10Jay.CXR+Dg+.qLiMrx3LiMlZDEP8zpy8R6aruArdhFfSxjm7p.u8BxNMl1uPHt65hBfmiN2yyd72AZpmOlmuBXdwJfYuU.yKWAL6uBXd0Jf40KDi8KANH1nBRaG.E86jL2Bi6HoPkURUH5uHFXAhI
-
@d-healey Why do you have the asterix, if you remove it it will give you the right result, at least when I tested your snippet
-
@ulrik Because in my real project I have 4 pan knobs (one per mic position)
knbPan0, knbPan1, knbPan2, knbPan3
If I only had one I wouldn't usegetAllComponents()
;) -
@d-healey but if you remove the asterix (*) you'll get all 4 knbs in an array
HiseSnippet 828.3ocsVstaSCCE1osFQKvDShGfn8qVzVU61XfDBna8BpB1VEcLA+ZxKws0pN1QINiUgPhmQdR3M.NNIsIkkN00xxOpz4x2we83yE2ySZQ88kdHihmMwkhLdLt+DgZTyQDl.0sExXC7wDeE0yLR0QSbI99TajgQ92qUXTr.J762u6HBmHrnIpPnykLK5GYNLUh1dM9.iy6PromwbR489M5ZIEMkbY.vm73ZHWh0XxP5IDsa4vHiGz1lojd8UDE0GYT3Ho8j9ijeSD4+4Le1kbpVnNpODnH0cjbaMi0ZQMGw318l9+1GAQoWRVHeTV3Y3iY1rY5SxFOMzfYBhz4CibySu7yQu5ooWsTzKCJYjhREhnzl39VdLWUhEMedDtq.tbFPfzdZpD4KJ2uLvMkfGBUUGxXZGOPXFhxGTq11lvOUdcoRPp2WYNVbYOhnl4aLmBaHUcHm2T53JEfre4sh7YK.TZL0WBLhmqQUZfzyr70lLwziqRoh.TeImV00iITkuVGht1kqncedSwPpxohgpQ2z9V6jwm9XKdiys9sctCBDVJlTXJEmHUzSEkqT56PP9QIy+0zfAYZSmM7jbN0KSy5heuaCXYQfykTusMuhvCnybDpHluLCu3xrzcAVQWNobTJ5JXpScohE0afhuQgRRbLq.WUgEjaDWP1myrodHFT2UBGlXUViPgbN8j.zRfuHN9hY8fu65Aeu0C99Y.+ycaQTDcicbBERxtTOESe+YzhdELkLpMuHtE0erR5Flwiaffq7kImecxY91FSRDZ0.sTgJI8mDoeNdchztKLRe8NFo8VXjruiQZ+EEIP.cy4tvDeoc.mnleMfd2WrAnoctYu54qBelZR5ci+21MrrTbSbOFTTjMGykAGgpy6CNFuQ8I31CFPsTIDr.tyWteVeh9jLPwDCOln7XvkM9j.m9viJrnvoKDTtdnoQNcacjbMsrNCzmJrCE9C7EartV1H1X8oFQNDKO4EVQyEz6reXnFfShvmqTDd2DHaNaVFFWqZMjC77gKrrz+82Al3lMlcWAL6sBX1eEv7hU.yAq.lWtBXd0shQ+xsCCTRmn1APQu1gikMLZKHPkUXUH5uvUsvN7
-
@ulrik Ah you're right, I don't even need the wildcard! Thanks.