Granular patch from GO in Max 9 M4L device (bad_object error)

ianjojo's icon

Hi all,

I've been experimenting with the granular patches (poly_granulation3) from the brilliant GO book and I've run into some issues now that Live 12.2 has been upgraded to use Max 9. The patch was working fine for me previously in a M4L device, but now, when I open the .amxd file in Max 9, it gives me a bad object error and then the gen error of patchcord outlet out of range: deleting patchcord.

I narrowed it down to being something to do with the grain3.gendsp file within the patches. When I open it up, all the connections to each of the 30 instances of grain3 are deleted. and this happens every time. I have an example patch but I'm hesitant if I should post it here as I know the patches are only available to owners of the book. The issue can be replicated by just creating a new Max Audio Effect in Live, then copying and pasting the contents of the poly_granulation3.maxpat into the M4L device. Freeze and save, and when you re-open the patch in Max, you'll see this bad object error and all the connections disconnected in gen.

Would love to learn what has changed and how to potentially fix this.

Graham Wakefield's icon

I'm not up to speed on M4L development, but could it be simply needing to add grain3.gendsp to the M4L project?

ianjojo's icon

Thanks for the reply, Graham, and for your marvelous sharing of knowledge in the GO book. I think you're on to something. While grain3.gendsp and the rest of the files were added to the Max 9 Packages folder, it seemed like it was "finding it" but getting confused somehow. When I clicked through to show the grain3.gendsp abstraction, it was shown, but for some reason all the patching cables were being disconnected in the parent patch (poly_granulation3.maxpat).

Earlier today I opted to just rebuild the patch and the abstraction object by object and since then, no more issues. So yeah, it must've been some file issue/confusion. Let's call this case closed! And thanks for taking the time to reply.

Graham Wakefield's icon

Great to hear it worked out in the end! (& thanks for the kind words ;-))