Using — AND argument for named objects
Let´s say I have 4 buffer objects inside my m4l patch, named —1buffer, —2buffer, —3buffer and —4buffer. When I play from one of those those buffers from inside a poly~ object, I would like to choose between the buffers, using an argument.
For example, all "wave~ —#1buffer" objects inside a "poly~ foo args 1" object should use the "—1buffer", "poly~ foo args 2" => "—2buffer" ect. Is there any way to do this?
is this what you want?
----------begin_max5_patcher---------- 630.3ocyW1rbZCCDG+r4oXGOSuE5f7GDSu0miNY5XrEf5XK4JI2.MSxydkVY WflXiI3B4h8vZoU+2eZ2Uhml34uTrkp7gu.eC77dZhmGZxZvq42d9koayJRU 3v7yDkkTt1+N22zzsZz9JgrLUCR5OqYRZNvSKofXErrd0Jprc3ELNMSTyw4D zXbkfqUreSs1HjOOqwbkjpLqTplI3eWRyzNYRhlaFR6qYMOfGZlEutjwKnZT sjVWkpy1v3q6zMjXzQgAG3IVNFXhk+XJIx+.sZCM7SeUxRK72uvhZc6JOyZ7 4ISrOt6BQqhpgRpRktlBUBlAVvio+hBZwdb6v7KiImIHRBBIWHmCQ.mDMDNG dK4rjVIjZfwU5TdFELqzRpDDbnPjlOlnM3dDFjfKCsyVfto40IPavsDsU0ZP ugo.LLLHF1Ipklr4hcu32OCGJMhisgeD4.VPVzAKHWCVzTx9lkySmNM93NiC I5C5IWHzUsRRbc0boD22Q7O6bi+Vt6Lo2UQcKquO7v6.MtJqQZi20.OD6uz+ 9dx4F1AcE1LaNN3uLku9cR.5iFE85biJow0qr4GeJ+7SPNY4AIFwzhj9vT7s N63sYioYZEkmCl5mwkIIHMlunOlD8wjI1ClvjvwDHyQdDOuOdDNZ7Xzqgr2M 5rNTI7T.IHBaqD0KQBFMhnXq4lIMlLwd163eXKgf2sy0SoyCaG6lt1WGwFbU w6k8O+SFT3V6GCLk4pGYsNso3F1q8bpRy33c1NXL1yLAxeGzFVdNE+dK5JY4 tKm6lTG6dCURICPRwGMl+2JZHPJ3ppn3AnnnqphHe310BGRp8EnHyOddxevM ZMcW -----------end_max5_patcher-----------
Thank you for your answer, but I need a solution, where the "—" at the beginning is replaced with a unique number for every instance of a device, how it is explained here (at the end):
The problem is, that there seems to be no way to query this unique number, so that I could construct a message for the wave~ object. Does anyone have an idea?
Nevermind, I forgot to reload the device in live. Your solution works for me Terry, thanks a lot!