summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/MidiNoteNode.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-20 20:54:31 +0000
committerDavid Robillard <d@drobilla.net>2007-09-20 20:54:31 +0000
commit615ceaaf519d0c42a9215c4835e1f7348f2e5dca (patch)
tree79093453605d8a1b2ff97dc07cff14324bc14f06 /src/libs/engine/MidiNoteNode.hpp
parenta4625db3f26716fb7a34614c76582ab92b5212e8 (diff)
downloadingen-615ceaaf519d0c42a9215c4835e1f7348f2e5dca.tar.gz
ingen-615ceaaf519d0c42a9215c4835e1f7348f2e5dca.tar.bz2
ingen-615ceaaf519d0c42a9215c4835e1f7348f2e5dca.zip
Remove useless InternalNode class.
Percolate boolean polyphony down through Node class heirarchy (instead of integer). git-svn-id: http://svn.drobilla.net/lad/ingen@742 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/MidiNoteNode.hpp')
-rw-r--r--src/libs/engine/MidiNoteNode.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libs/engine/MidiNoteNode.hpp b/src/libs/engine/MidiNoteNode.hpp
index c7110f91..34a926ff 100644
--- a/src/libs/engine/MidiNoteNode.hpp
+++ b/src/libs/engine/MidiNoteNode.hpp
@@ -19,11 +19,10 @@
#define MIDINOTENODE_H
#include <string>
-#include "InternalNode.hpp"
#include "types.hpp"
+#include "NodeBase.hpp"
#include "MidiBuffer.hpp"
-using std::string;
namespace Ingen {
@@ -37,10 +36,10 @@ class OutputPort;
*
* \ingroup engine
*/
-class MidiNoteNode : public InternalNode
+class MidiNoteNode : public NodeBase
{
public:
- MidiNoteNode(const string& path, uint32_t poly, Patch* parent, SampleRate srate, size_t buffer_size);
+ MidiNoteNode(const std::string& path, bool polyphonic, Patch* parent, SampleRate srate, size_t buffer_size);
~MidiNoteNode();
bool prepare_poly(uint32_t poly);
@@ -75,7 +74,6 @@ private:
Raul::Array<Voice>* _voices;
Raul::Array<Voice>* _prepared_voices;
- uint32_t _prepared_poly;
Key _keys[128];
bool _sustain; ///< Whether or not hold pedal is depressed