summaryrefslogtreecommitdiffstats
path: root/libkmid/tests/notesoff.cc
blob: 15cbb7f7311866402df2c0fae051d2cb68837269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <libkmid/libkmid.h>
#include <libkmid/deviceman.h>
#include <unistd.h>
#include <stdio.h>

int main (int , char **)
{
  printf("Libkmid Notes Off . (C) 2000 Antonio Larrosa Jimenez . Malaga (Spain)\n");
  printf("Using libkmid 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;
};