CounterpointNode.hpp

Go to the documentation of this file.
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 COUNTERPOINTNODE_H
00023 #define COUNTERPOINTNODE_H
00024 #if defined(_MSC_VER) && !defined(__GNUC__)
00025 #pragma warning (disable:4786)
00026 #endif
00027 
00028 #include "Platform.hpp"
00029 #ifdef SWIG
00030 %module CsoundAC
00031 %{
00032 #include "Node.hpp"
00033 #include "Counterpoint.hpp"
00034 #include <cmath>
00035 %}
00036 %include "std_vector.i"
00037 %template(IntVector) std::vector<int>;
00038 #else
00039 #include "Node.hpp"
00040 #include "Counterpoint.hpp"
00041 #include <cmath>
00042 using namespace boost::numeric;
00043 #endif
00044 
00045 namespace csound
00046 {
00054   class CounterpointNode :
00055     public Node,
00056     public Counterpoint
00057   {
00058   public:
00059     enum
00060       {
00061         GenerateCounterpoint = 0,
00062         CorrectCounterpoint = 1
00063       };
00064     int generationMode;
00065     int musicMode;
00066     int species;
00067     size_t voices;
00068     double secondsPerPulse;
00069     std::vector<int> voiceBeginnings;
00070     CounterpointNode();
00071     virtual ~CounterpointNode();
00072     virtual void produceOrTransform(Score &score, size_t beginAt, size_t endAt, const ublas::matrix<double> &globalCoordinates);
00073   };
00074 }
00075 #endif

Generated on Tue Apr 14 11:00:49 2009 for Csound and CsoundAC by  doxygen 1.5.8