summaryrefslogtreecommitdiffstats
path: root/src/engine/internals/Note.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/internals/Note.cpp')
-rw-r--r--src/engine/internals/Note.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/engine/internals/Note.cpp b/src/engine/internals/Note.cpp
index 1a7d3f5e..4dc11891 100644
--- a/src/engine/internals/Note.cpp
+++ b/src/engine/internals/Note.cpp
@@ -48,7 +48,7 @@ NoteNode::NoteNode(const string& path, bool polyphonic, PatchImpl* parent, Sampl
{
_ports = new Raul::Array<PortImpl*>(5);
- _midi_in_port = new InputPort(this, "input", 0, 1, DataType::EVENT, Raul::Atom(), _buffer_size);
+ _midi_in_port = new InputPort(this, "input", 0, 1, DataType::EVENTS, Raul::Atom(), _buffer_size);
_ports->at(0) = _midi_in_port;
_freq_port = new OutputPort(this, "frequency", 1, _polyphony, DataType::AUDIO, 440.0f, _buffer_size);
@@ -126,8 +126,6 @@ NoteNode::process(ProcessContext& context)
uint16_t size = 0;
uint8_t* buf = NULL;
- //assert(midi_in->this_nframes() == context.nframes());
-
midi_in->rewind();
if (midi_in->event_count() > 0)