Granularized - Max Example Patch
Hello
I am quite new to max msp and I am wanting to record live samples into the granularized example patch however I am really struggling to understand how I can do this?
I might be missing something completely obvious but I have tried expanding the patcher and changing the buffer name and then recording to that buffer but it isn't working.
If anyone could help that would be great! Thank you!
If you change the buffer name in the [buffer] object, you need to change the reference to that buffer everywhere else in the patch, especially in the [info~] object and in the [poly~], where all the audio processing happens.
The tricky thing here is that the buffer name is `#0-sample`. When the patcher is locked, the `#0` part gets replaced by a unique 4-digits number id in that patcher level, which means that any other `#0` in that patcher level will be replaced by the same 4-digits number. But if you use `#0` in subpatchers, that will correspond to other IDs.
That's why `#0` is passed as an argument to the [poly~] object. If you look into the [poly~] patcher (by double-clicking the object) and unlock it, you'll see that the sample is referenced as `#1-sample`. `#1` refers to the first argument of the pather (which is `#0`, representing the unique id of the parent patcher ). If we had used `#0` in the [poly~] subpatcher, it would have been replaced by a different id than the one of its parent patcher.
So if you want to replace the buffer name to use your own buffer you have to be very careful. The easiest way would maybe be to directly write into that #0-sample using a [record~ #0-sample] located at the same patcher level as [buffer #0-sample].
The right-most outlet of [granularized] gives you the buffer name (at load time).
set a record~ object to use this buffer name, then record.
Thank you guys! I have figured it out :)