How to write your own main() function for an environment

    When you include the file synthImprov.h, batonImprov.h, or another similar environment setup, there is a main() function defined in that header file.

    If you want to write your own main() function, then you can do so by defining the following variable before including the improv environment:

         #define SUPPRESS_MAIN_FUNCTION
         #include "synthImprov.h"
         #undefine SUPPRESS_MAIN_FUNCTION
      

    Doing this allows you, for example, to define your own graphical environment while still using other functions in the environment setup.











craig@ccrma.stanford.edu