aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/ActionFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/ActionFactory.cpp')
-rw-r--r--src/engine/ActionFactory.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/ActionFactory.cpp b/src/engine/ActionFactory.cpp
index 37e5fff..f031149 100644
--- a/src/engine/ActionFactory.cpp
+++ b/src/engine/ActionFactory.cpp
@@ -31,23 +31,23 @@ ActionFactory::copy(SPtr<Action> copy)
}
SPtr<Action>
-ActionFactory::note_on(unsigned char note)
+ActionFactory::note_on(uint8_t note, uint8_t velocity)
{
- unsigned char buf[3];
+ uint8_t buf[3];
buf[0] = 0x90;
buf[1] = note;
- buf[2] = 0x40;
+ buf[2] = velocity;
return SPtr<Action>(new MidiAction(3, buf));
}
SPtr<Action>
-ActionFactory::note_off(unsigned char note)
+ActionFactory::note_off(uint8_t note, uint8_t velocity)
{
- unsigned char buf[3];
+ uint8_t buf[3];
buf[0] = 0x80;
buf[1] = note;
- buf[2] = 0x40;
+ buf[2] = velocity;
return SPtr<Action>(new MidiAction(3, buf));
}