Nsound  0.9.4
MixerNode.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 //
3 // $Id: MixerNode.h 874 2014-09-08 02:21:29Z weegreenblobbie $
4 //
5 // Nsound is a C++ library and Python module for audio synthesis featuring
6 // dynamic digital filters. Nsound lets you easily shape waveforms and write
7 // to disk or plot them. Nsound aims to be as powerful as Csound but easy to
8 // use.
9 //
10 // Copyright (c) 2005-2006 Nick Hilton
11 //
12 // weegreenblobbie_yahoo_com (replace '_' with '@' and '.')
13 //
14 //-----------------------------------------------------------------------------
15 
16 //-----------------------------------------------------------------------------
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 // This program is distributed in the hope that it will be useful,
24 // but WITHOUT ANY WARRANTY; without even the implied warranty of
25 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 // GNU Library General Public License for more details.
27 //
28 // You should have received a copy of the GNU General Public License
29 // along with this program; if not, write to the Free Software
30 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 //
32 //-----------------------------------------------------------------------------
33 
34 #ifndef _NSOUND_MIXER_NODE_H_
35 #define _NSOUND_MIXER_NODE_H_
36 
37 #include <Nsound/Nsound.h>
38 
39 #include <iostream>
40 #include <string>
41 
42 namespace Nsound
43 {
44 
45 class AudioStream;
46 
48 //
50 //
52 //
54 
55 class MixerNode
56 {
57  public:
58 
60  //
62  //
64  //
66  MixerNode(float64 first_beat_time,
67  float64 bpm,
68  const AudioStream & as);
69 
70  boolean operator==(const MixerNode &) const;
71  boolean operator<(const MixerNode &) const;
72 
74  // print()
75  //
77  //
79  //
81  std::string printNode();
82 
85 
88 
91 
93 
94  static uint32 id_count_;
95 
96 }; // MixerNode
97 
98 }; // Nsound
99 
100 #endif
unsigned int uint32
Definition: Nsound.h:153
const AudioStream * audio_stream_
The pointer to the AudioStream.
Definition: MixerNode.h:84
std::string printNode()
This method returns a string that represents the node.
Definition: MixerNode.cc:88
boolean operator==(const MixerNode &) const
Definition: MixerNode.cc:55
double float64
Definition: Nsound.h:146
static uint32 id_count_
Definition: MixerNode.h:94
boolean operator<(const MixerNode &) const
Definition: MixerNode.cc:69
This class holds the nodes for use with the Mixer class.
Definition: MixerNode.h:55
float64 first_beat_time_
The time the AudioStream first occurs in the list.
Definition: MixerNode.h:90
float64 bpm_
The number of beats per minute.
Definition: MixerNode.h:87
MixerNode(float64 first_beat_time, float64 bpm, const AudioStream &as)
Constructor.
Definition: MixerNode.cc:46