TTBlue Class Wrappers

Mon Aug 04 03:56:00 +0000 2008 (Posted by Tim)

Development Activities
0 Comments

#include "TTClassWrapperMax.h" 

int main(void)
{
    return wrapTTClassAsMaxClass(TT("degrade"), "tt.degrade~", NULL);
}

The above is the entire source code for the tt.degrade~ MSP external. This is achieved using a new class wrapper that has just been added to TTBlue, which allows for any TTBlue class to be wrapped as a Max class using essentially 1 line of code.

The class wrapper still makes a lot of assumptions and needs to be made more flexible, but it works for most cases already. Also, this means we now have a model in the TTBlue project for creating similar class wrappers for other plug-in based environments.

Share your own thoughts or comments...

Please log in to leave a comment.

Back to Electoblog Table of Contents