summaryrefslogtreecommitdiffstats
path: root/libtdemid/tests/notesoff.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-06 21:23:48 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-06 21:34:48 +0900
commit84498d97e27f79e7e919b42bbe54208a02856aaf (patch)
tree8a66f6e1a88bc2304b453796663ae75f20425490 /libtdemid/tests/notesoff.cpp
parent8bc0bc7fc67437fbf757283604104e998ad2fda7 (diff)
downloadtdelibs-84498d97e27f79e7e919b42bbe54208a02856aaf.tar.gz
tdelibs-84498d97e27f79e7e919b42bbe54208a02856aaf.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 4f99f868f09bbffa2e15733b8b7c78eba07a199e)
Diffstat (limited to 'libtdemid/tests/notesoff.cpp')
-rw-r--r--libtdemid/tests/notesoff.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/libtdemid/tests/notesoff.cpp b/libtdemid/tests/notesoff.cpp
new file mode 100644
index 000000000..15e00bd6c
--- /dev/null
+++ b/libtdemid/tests/notesoff.cpp
@@ -0,0 +1,24 @@
+#include <libtdemid/libtdemid.h>
+#include <libtdemid/deviceman.h>
+#include <unistd.h>
+#include <stdio.h>
+
+int main (int , char **)
+{
+ printf("Libtdemid Notes Off . (C) 2000 Antonio Larrosa Jimenez . Malaga (Spain)\n");
+ printf("Using libtdemid from a simple C++ application\n");
+
+ KMidSimpleAPI::kMidInit();
+
+ kMid.midi->checkInit();
+ kMid.midi->openDev();
+ kMid.midi->initDev();
+
+ kMid.midi->allNotesOff();
+ kMid.midi->closeDev();
+
+ KMidSimpleAPI::kMidDestruct();
+
+ return 0;
+};
+