~vibhavp/ubuntu/saucy/csound/merge-from-debian

« back to all changes in this revision

Viewing changes to .pc/0003-csoundac.patch/frontends/CsoundAC/Cell.hpp

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2012-04-19 09:26:46 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120419092646-j2x9xuiaxx57bmg0
Tags: 1:5.17.6~dfsg-1
* New upstream release
 - Do not build the wiimote opcodes (we need wiiuse).
* Add new API function to symbols file
* Disable lua opcodes, they were broken. Requires OpenMP to be enabled.
* Backport fixes from upstream:
  - Link dssi4cs with dl. Backport
  - Fix building of CsoundAC

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * C S O U N D
 
3
 *
 
4
 * L I C E N S E
 
5
 *
 
6
 * This software is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2.1 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This software is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this software; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
19
 */
 
20
#ifndef CELL_H
 
21
#define CELL_H
 
22
 
 
23
#include "Platform.hpp"
 
24
#ifdef SWIG
 
25
%module CsoundAC
 
26
%{
 
27
#include "ScoreNode.hpp"
 
28
  %}
 
29
#else
 
30
#include "ScoreNode.hpp"
 
31
using namespace boost::numeric;
 
32
#endif
 
33
 
 
34
namespace csound
 
35
{
 
36
  /**
 
37
   * Score node that simplifies building up repetitive
 
38
   * and overlapping motivic cells, such as used in Minimalism.
 
39
   */
 
40
  class Cell :
 
41
    public ScoreNode
 
42
  {
 
43
  public:
 
44
    int repeatCount;
 
45
    bool relativeDuration;
 
46
    double durationSeconds;
 
47
    Cell();
 
48
    virtual ~Cell();
 
49
    virtual void produceOrTransform(Score &score, size_t beginAt, size_t endAt, const ublas::matrix<double> &coordinates);
 
50
  };
 
51
}
 
52
#endif
 
53