00001 /* 00002 * C S O U N D V S T 00003 * 00004 * A VST plugin version of Csound, with Python scripting. 00005 * 00006 * L I C E N S E 00007 * 00008 * This software is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2.1 of the License, or (at your option) any later version. 00012 * 00013 * This software is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this software; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 */ 00022 #ifndef MUSICMODEL_H 00023 #define MUSICMODEL_H 00024 00025 #include "Platform.hpp" 00026 #ifdef SWIG 00027 %module CsoundAC 00028 %{ 00029 #include "Composition.hpp" 00030 #include "Node.hpp" 00031 #include "Score.hpp" 00032 %} 00033 #else 00034 #include "Composition.hpp" 00035 #include "Node.hpp" 00036 #include "Score.hpp" 00037 using namespace boost::numeric; 00038 #endif 00039 00040 namespace csound 00041 { 00055 class MusicModel : 00056 public Composition, 00057 public Node 00058 { 00059 std::string filename; 00060 public: 00061 MusicModel(); 00062 virtual ~MusicModel(); 00063 virtual void initialize(); 00064 virtual void generate(); 00065 virtual void clear(); 00066 virtual std::string getFilename() const; 00067 virtual void setFilename(std::string filename); 00068 static std::string generateFilename(); 00069 virtual std::string getMidiFilename(); 00070 virtual std::string getOutputSoundfileName(); 00071 virtual long getThis(); 00072 virtual Node *getThisNode(); 00073 }; 00074 } 00075 #endif