random names of a buffer
Hi everyone, i am making a simple sampler for live in max and i am a bit new in m4l so i need some help. I almost made a usable version out of it but the only thing is when i load it to different tracks in live it always works with the same sample. To make myself clear it only plays one sample because i want to use it for drum samples and i want to process them separately afterwards. So i use one common buffer for the patch in which i load a sample with the dropfile object and i play it with groove at different speed. So i think he problem is with the name of the buffer cause it always stays the same no mater how much of them i open. I tried number don’t work, i also found somewhere that putting a #0_name will generate a name with a random number in front like 345_name but that doesnt work either.
Someone has an idea?
I tried something similar to a patch I am working on and I the same problems. I have some ideas that maybe can help:
By not adding the _name to 0# because it seems that those numbers aren’t generated when you write it like 0#name.
Maybe set the buffer name to the file name? By connect the dropfile with a set message to the buffer and groove object.
I tried something with connecting a loadmess and the combine object but it seems that those 0# generated numbers are random for what I wanted to do.
----------begin_max5_patcher---------- 528.3ocyVssabBCD8Y3qvxsOtMBafPRdKeGUUQFXXiq.aDXT21nzu85KrTRB IKg5tJu.xyX64bNdlw9gv.bt7.ziQ2f9JJH3gvf.qIigfwwA3F1ghZVucZ3F numsGv6b9DCMxAUMnrdIiVqjBkf0.1UbaGmUeb9tIq9YK3BJFi91nqVlp3dt X+ccPgx4M95nKh1gnooleo1AjqtHZZMl.0y+kcyHTs6ITwEGAEczHuzBGY92 +RbD1X6wvPymcqj5ExlFPnNREEbvBSLWvUZJhxGppfNKuWTchNo5rfDPoVtO 9i3z.Zz6TCHuTCHY9TCJ6jsH1PIWhp30dU.RrTNwweh+3e5V3+yR+m3eGzVy J.zmImmJCxUthgKsxxkY9pxfDuEUQ.+Pu3WHJtBheih9zxhB88KJU0RlN6Su 2Lw92VgFKUbENNcxK4MDOpPZ1TZRodUIx24MIQt5HW5S109RUR8nnn6wjyE. RGybnCc2o5qtgzHSFzZzIpqeCIirIgZgBrDe10oGTmsNNwQy63jD6s6h2hfX tt40umgtticiiw297VDe70GY1uwVdmPmw6S1vXNAsqBWqSue1qtrA1X+ortW NzUbD9t7mcn+F6RnWwELEWJlMG8yazmMSS5ddYIHleAbCurUxEpI1u3QvZgT 5JfzSg8+aDEuBDo6ieNgD4iHlVCjh+vAo+EDoG7X3ePzRxOR -----------end_max5_patcher-----------
all the best,
Well i forgot to write that but i tried that already, to get the path name from the drop file and give it that name to the buffer and the groove and rest, but probably is not doing that in the right order, maybe the sample is being loaded first in the buffer and it gets renamed afterwards so it deletes the buffer, and after it doesn’t work!
huh strange. but the example I posted with the replace and set message works okey or not? I tested it and it works fine with me. Or do you need something else in your patch?
"also found somewhere that putting a #0_name will generate a name with a random number in front like 345_name but that doesnt work either."
that should work (or setting it on startup with [loadmess set #0_] )
btw, what they do in the tutorials/exmampls is using —something these "—" have a unique value for every device
in the patch I wrote 0# instead of #0.. I should pay more attention when I am doing stuff..
@ timo What are the tutorials you’re talking about?
what about the — ?
e.g [buffer~ ---hey]
doesnt this work too?
i think the three -’s will be replaced with random numbers
iam not sure tho
well, if you open your sampler 999 times, 2 will def. have the same sample…
might be good to know if you are aaron or richard.
the trick is to set the random names from outside the buffer.
[loadbang] – [t #0_buffername] – [prepend set]
now you can connect this to both, a buffer AND (for example) a [play~] object,
and in each max4live instance, patcher instance, or pluggo plug-in there
are patcher specific unique names now.
you can also go one step further and use a simple abstraction which loadbangs
a #0 style number for maximum flexibilty.
okey that’s pretty easy! will this —name also work when you just use max as standalone when you run multiples of the same patch?
— simply doesn’t work outside of m4l.
anyway, does this cover you?
----------begin_max5_patcher---------- 504.3ocyV9rabCBDF+r8SAB0daajA+2za8VO0WfpnH7BdCU1vJaV0sMJ8Yuv f2jl1DhixZ6dAjmAy74e9aPbabDtVeTLfQeD8UTTzswQQPHWfnwmivcriaaY CvxvchgA1NAdiOmQbz.wUrNA5cjSw0GLsBi4G6E9MGiQWMlpQqLCxeBIHzKR FCqNzIU12AJCcL3dlY6MR0tq6EaM9cpH09JHZ5kto7R2Ho5hj62dIGzit9ae fbubb0zoPH0m5krV7Ck0qUntDWv6hicCadiDYPXrJ655CMMh9uXK9mE8h4mO TRN.npJXJIODgtbsAzR3XHkiVFhaJKMDPxWWfH3nj4GHkPuCIwyivsPEKAPT huaK1+xi88RkoA89V97zFQBbLSFfkBOpJn9lomFRkqHiLn5.VlZlZGdCBaw3 YlLkv4JoYg3xq16POebomo35NqIO44oyqlJzWzuPgtoJRHrjth1kVMi6MEgb LmWqRFLVjDhIzUjI9iV90yhjFKzLttnYfMTuUIqJDbHuk9HXCwsR0eeOOPSt 3OlXC5C8aO8oe5VTnGzEWLXjJlQpU+4hdzZtQx4BH8IpzI46019sQMft5I+8 MUIUNEEsrRJeBRxdaKD4+JHkunLJcBJpbQUDcBJpXQUTwDTT5hqHxK0rsrPh L2Tx9vcw+Ff7ys2I -----------end_max5_patcher-----------
I have some other problems with file handling just for the old fashioned max. I will post a new topic when I have cleared my question about with the patches I tried. Maybe you can take a look at it. It’s about loading audio files into buffers inside a poly object, storing information in a coll, saving and to load the same files into the buffers again.
—name is the way to go in M4L. However if you want to use this in a stand-alone you use 0#_name.
Load this patcher in multiple tracks in M4L and you will see that every instance is different from the other and no sampes are shared.
----------begin_max5_patcher---------- 637.3oc0W97aZCCEG+bxeEV4LfhSBPXZWZUufT2kccpZJjXBuIGaThCCVU6e 6y+H.ok.gxBqsWdFd1wwuO5ad5qez1xYFeMovA8EzOPVVOZaYoSoRXU8eKmr n0wznB8xbxHEEQoDmdl4Dj0Bc9bxRZT7t7PhNKe1u5iwaSNmyDrnLhdpaxgH J5VNMY6zrxLfQIB8KxaeRdoXaVbscp.9idmvtCbqRaVoXyRhojbbPOTM0xHQ 7Bfk9ybRrvLqm6X4SJGTwfQpHVFQOndhmrsUgdmIVXjeKq0CnBvlyeF0ueeA oPLqb9bRdCDJ7R.DtQ.E9FAzbJOR3zC4PgB83tDmyOZAuC0H0PYL1evP4PX2 BXonaS6.dX2A32pBr.RYQzV.kuhPiCUwIFn0wXxPl1Ake2AJuKUINKhk1BuB TLZXfQdE7OArXdVFgINfXeEcaIPSPa3k4HfUHxKUqCsfjuqIGEXjXdISTudq QyftiltmllMPoI5FZizzITKp7lzwL56Mnf71+sVd5LyQwcfeOUHPEkAr5bbZ zflJhnP7UkPXWOSmIyv385nZEZLmxyOQYzg379lv4nOM3z28CEMuirBhInUj bADKw.Ex.QCDdxw+H8phKCsFWAsCw0BHIgvz6SGRkaJS.NRvQ2CqZxr13ORx M7IkaFCa9XcCNcDO48St8so2MEMOmmcLxN5yCYqzjZvF9+BrG0fWYprZdtod ic28J7tLWc8NK+cAg0ZLNz+Z3uKCR.f0zkud+b9BJeQshEeMUBbajJ5GWay5 U2QUucp7uDUERyZwae+au6IZuzMQ58EXQBfypsH+Wrl88c2VYR3tjKqlpyvq Ng1OY+W.SAEkUC -----------end_max5_patcher-----------
Hey guys, I was having no luck with the various approaches on here and different threads, then I came across: zl scramble, which made making random letters a breeze
----------begin_max5_patcher---------- 446.3ocuU00TqBCD8Y3WwN4YtN.sk15Sp+MtycbBPrM0PBlDpz53+cS1Ttp0 aupniuPl8C18bNra3g3HRopmYHv4vugnnGhihPWdGQGriHMz9JA0foQjr6Uk aHIgPVVuEcaUlcMkJAbgg0R0TqROjipyJXV6tVVnODB7mCgjcMboKHV5rCNa o1p0b4pq0rJa3UxJleVZBjmiGYYSviEmk92JciRZM78XKxRcgCt40H5bH9WK RIuHWIsAykbolSEvUJQM4YPEfb.UdmOFG6ej70znVMWZIij5yV5OlLFlOe4n Xd52Gy2K.Skl1TJXmdpH4jSF4uq7jszybnX1Hjm7hQIO4iPdZXFCcE6M5ycv 8.CzfE1Ac.GTPKHfagMvZXEbCTCFfB6gdnB1BkfDZ9raW+OMbdNJayVDVxPo Lq3yIhS+xaWX2HBt73KjPH68+Zk0n5zUCrd.CvyftlYrbI0xUxWlTwqRZMut lgwGHUM2Pcyo0mdE3ihG+MNuKd7Km+P34Hp+uwyQf9iimvmOZa6Vl1bnlHTb q.ab+MvYVjflbYvDu0inYa4C4i8fP0tITqa7rSGlh5KlRh884w3m.3pYORH -----------end_max5_patcher-----------