/usr/include/csound/ScoreModel.hpp is in libcsoundac-dev 1:6.03.2~dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | /*
* C S O U N D
*
* L I C E N S E
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef SCOREMODEL_H
#define SCOREMODEL_H
#include "Platform.hpp"
#ifdef SWIG
%module CsoundAC
%{
#include "Composition.hpp"
#include "Node.hpp"
#include "Score.hpp"
%}
#else
#include "Composition.hpp"
#include "Node.hpp"
#include "Score.hpp"
#endif
namespace csound {
/**
* Base class for compositions
* that use the principle of a music graph to generate a score.
* A music graph is a directed acyclic graph of nodes
* including empty nodes, nodes that contain only child nodes,
* score nodes, event generator nodes, event transformer nodes,
* and others. Each node is associated with a local transformation
* of coordinate system in music space using a 12 x 12 homogeneous matrix.
* To generate the score, the music graph is traversed depth first, and
* each node postconcatenates its local transformation of coordinate system
* with the coordinate system of its parent to derive a new local coordinate system,
* which is applied to all child events.
*/
class SILENCE_PUBLIC ScoreModel :
public Composition,
public Node {
public:
ScoreModel();
virtual ~ScoreModel();
virtual void initialize();
/**
* Generates a score based on a music graph defined
* by the child nodes of this.
*/
virtual int generate();
/**
* Clears the score.
*/
virtual void clear();
/**
* Returns the address of this as a long integer.
*/
virtual long getThis();
/**
* Returns the address of this as a Node pointer.
*/
virtual Node *getThisNode();
};
}
#endif
|