loadbang msg for function object?
I want to loadbang a specific starting value for a couple of function objects so that they look a certain way when the patch opens. Here’s what I’d like them to look like… Can I loadbang this? Thanks!
----------begin_max5_patcher---------- 420.3oc4RtsabBCDF9Z3o.4qIVdFeNuJQQUrrjTZXsWQXkRUTd2yXrIKQcus 8lZIL1+dN7i4685J1g3aCuxZtu4glpp2qqpVkRBUk8UrScu0O085ZXrmtD5W FiAVa9vvkSigogk0Sgh34tk9eNFd9GyC8K4pCnkKZaPgO8BPH8xQaZdrjzg3 7wg493TbNmhHEx0IXWrTWiWV1ZqpnNdb0hwC+5N0l+NFO0MFR5FQpLY09ow9 W5NtF+lVtfK+97Pt8rmlhcKr1F11ygtvyru7v43XX4a1Uhf13au4p8teZLL7 8DWGs2b09DmICLr6xAU6Nj9bVsT42IhbA3jJp2H2fZplsMd5B2gZCsy8kHJj biwaQ010MoYTbDoBPZRtMGnTJ3nUiRGUoRfJEY0T16RVCVtRR+iI6a44b0Tq 8zP52hq4wju+ntNM09WF+PsLiet+I3GJ+S9SZg+m3OfXEP38tqbAcAnrVgwP UUykEpBHRUS1DPZsrfKfUvSzqylPsRjnjJfxqSLzF+gVOGDBOh6AUzPKQz4u 1bIQzfGcJ3l.Hs4i5OwFjWwX -----------end_max5_patcher-----------
Time to get familiar with preset storage in Max. The preset object is an easy drop-in solution, pattrstorage a little more advanced (but more awesome).
1. Andrew is right that preset and pattrstorage give you all kinds of possibilities on loadbang.
2. But who needs ‘em? You can loadbang all kinds of settings to function. (See patch below.)
3. But who needs that? function stores its previous settings anyway.
But if you want to ensure that function looks the same each time it’s opened, even if somebody makes changes to it and saves the changes, you can use option 1 or 2.
----------begin_max5_patcher---------- 386.3ocqSErbBCBD8L4qfgyTGHwXs8V+N53zACnRmDvIPlZqi+6E1fUiUmZa 8fqY2kk2ae6x1LDYtcixQvOheFiPayPHHTL.J4iHMhMU0BGbLhQ8lc9qDZeJ uZiGBWaEx4Byx8ILcMZSsxCEwSAWK7Uqzlkuzpp78flmOdDihKxi1IrnMOXw yRknkv0Gf7tx828BqwaDMJHySsZQ8QnZ67mBaeH+6qU8XR.h9EDwqyo+.RxC 7HFcWVVzPuRQoQ4bhkpuoJU0JQKE6TdosQnMXNiw.+1.ETXVfiACaDEWh4ih 8dz6dJ99x3GgrwJvryJq4+nrVNAD2G.0kO875ZwMSWuoZ5hNSkWaM+wMpooc I3ON6B6T7y2giuTGtHrm6IzPql9MbURHkqsZiO8hBvt2DlE.QRNIdAiZFLs6 c4fablenT7riTO.JRs1b5qVPIhwGJoNaWa0d1mdEgOHERkyqMBPmOblhAmYk VJUPZVJRidPaNffzeMiJtBFw+GLJ3rK6SD0IdrE -----------end_max5_patcher-----------
Thanks! Yeah I realize that function save its settings, which is great (and I don’t see why other objects don’t do that too…). I think I’m gonna try doing some presets. Thanks again.
Note that if you use [pattr] with function, in order for the interpolation to work correctly, you need the same number of points in each of the storage slots that you’re interpolating between. If you don’t, the results are….well, interesting. try it out. what else can we expect it to do if the list lengths are different? :)
The same is true when using pattr with any objects (?) that store lists of variable lengths, like multislider. If you have a list object (or even a "multi-track" list object like matrixctrl) whose dimensions don’t change, pattr is a great option because it gives you that ability to morph between settings, plus it can store object attributes that preset can’t. That said, preset can be stored with the patch (no need for an external file) and it’s a bit quicker to set up.