When I execute any of the ~b1 = lines, I receive the following error at the end of the stack trace:
Process:interpretPrintCmdLine
arg this = <instance of Main>
^^ The preceding error dump is for ERROR: 'prepareForProxySynthDef' should have been implemented by Buffer.
RECEIVER: Buffer(32, nil, nil, nil, /Users/kevin/Documents/sound/Samples/FX & Foley/Gate/ZOOM0001_MN.WAV)
I haven’t been able to find much useful information, and many tutorials I’ve seen use this syntax. Is there something obvious I’m missing? I’m using 3.13.0.
Thank you. Is there any particular reason why these lines aren’t working for me but they’re working fine in the video I linked? Perhaps there’s a startup configuration script Eli is using that I’m unaware of?
Just for a bit more context in case anyone experiences the same issue, it turns out I had created a ProxySpace in an earlier session and completely forgot. Exiting the ProxySpace with p.pop allowed me to store buffers in global variables again.
As mentioned by julian, storing a buffer in a dictionary was the best solution for me. I happened upon the error in a later video by Eli which covers ProxySpace in more detail: https://www.youtube.com/watch?v=9db7v1nEBm8.