summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/MidiNoteNode.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-07-29 05:50:52 +0000
committerDavid Robillard <d@drobilla.net>2008-07-29 05:50:52 +0000
commitf0e920ab170569fc9eaf5858af2e9ae3e8d44993 (patch)
tree1e1fa0a7b2bfeb0e6ca4541c570f445fc4541ff0 /src/libs/engine/MidiNoteNode.hpp
parentde58b508b28a42b072fb26d2633aa0af37ee7c0e (diff)
downloadingen-f0e920ab170569fc9eaf5858af2e9ae3e8d44993.tar.gz
ingen-f0e920ab170569fc9eaf5858af2e9ae3e8d44993.tar.bz2
ingen-f0e920ab170569fc9eaf5858af2e9ae3e8d44993.zip
Fix stateful port value setting stuff (trigger output ports on note/trigger/etc modules now work correctly).
git-svn-id: http://svn.drobilla.net/lad/ingen@1302 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/MidiNoteNode.hpp')
-rw-r--r--src/libs/engine/MidiNoteNode.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libs/engine/MidiNoteNode.hpp b/src/libs/engine/MidiNoteNode.hpp
index e7e04acd..eebcbda6 100644
--- a/src/libs/engine/MidiNoteNode.hpp
+++ b/src/libs/engine/MidiNoteNode.hpp
@@ -45,12 +45,12 @@ public:
void process(ProcessContext& context);
- void note_on(uchar note_num, uchar velocity, FrameTime time, ProcessContext& context);
- void note_off(uchar note_num, FrameTime time, ProcessContext& context);
- void all_notes_off(FrameTime time, ProcessContext& context);
+ void note_on(ProcessContext& context, uchar note_num, uchar velocity, FrameTime time);
+ void note_off(ProcessContext& context, uchar note_num, FrameTime time);
+ void all_notes_off(ProcessContext& context, FrameTime time);
- void sustain_on(FrameTime time, ProcessContext& context);
- void sustain_off(FrameTime time, ProcessContext& context);
+ void sustain_on(ProcessContext& context, FrameTime time);
+ void sustain_off(ProcessContext& context, FrameTime time);
private:
/** Key, one for each key on the keyboard */
@@ -68,7 +68,7 @@ private:
};
float note_to_freq(int num);
- void free_voice(uint32_t voice, FrameTime time, ProcessContext& context);
+ void free_voice(ProcessContext& context, uint32_t voice, FrameTime time);
Raul::Array<Voice>* _voices;
Raul::Array<Voice>* _prepared_voices;