Cycling74 / min-devkit

Tools, documentation, and reference implementation of a Max Package built using the Min-API.
MIT License
158 stars 31 forks source link

Template for tilde objects? #138

Open nick-thompson opened 4 years ago

nick-thompson commented 4 years ago

I just spent a minute trying to make my first object, very excited about this package, but as soon as I started extending sample_operator<1, 1>, Max started crashing whenever I enable audio and my object is involved. My debugger stops on an invalid array index in the SFINAE "performer" for the <1,1> type, trying to grab out_chans[0] when apparently the out_chans** array is NULL. I barely changed anything from the default object template, so I'm quite confused on this.

I'm wondering, first, what's going on here? How do I fix it? But two, maybe during the "Create Object" flow in the package in Max, naming something with "~" at the end could spit out a working template for audio processing. Thanks

tap commented 4 years ago

Hi! Sorry for the delayed response...

It is hard to speculate what is going wrong without a concrete example. If you have a concrete example it would be helpful.

I've been pondering what a "template wizard" might look like for generating the correct scaffolding for different types of objects. Thanks for suggesting that this indeed a valuable idea to pursue.