summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
authordeva <deva>2008-07-25 11:28:27 +0000
committerdeva <deva>2008-07-25 11:28:27 +0000
commitef523065eb5e9535d0bd4b3ede820a231e547930 (patch)
tree0ca39caf972f9c5a2e721e9ea9a42709c3f94291 /src/drumgizmo.cc
parent8c0e853723666df7696e4e52cac4522336141125 (diff)
First primitive beatdetection in place.
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r--src/drumgizmo.cc75
1 files changed, 58 insertions, 17 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index 649b364..b3b7473 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -28,6 +28,63 @@
#include "drumkitparser.h"
+int main(int argc, char *argv[])
+{
+ DrumKitParser parser("/tmp/aasimonster/aasimonster.xml");
+ if(parser.parse()) return 1;
+
+ JackClient client(parser.getDrumkit());
+
+ client.activate();
+
+ // sendMidi();
+
+ while(1) sleep(1);
+
+ return 0;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#if 0
#include <jack/jack.h>
#include <jack/midiport.h>
@@ -78,20 +135,4 @@ void sendMidi()
jack_connect(jack_client, "DrumGizmo:output_1", "system:playback_1");
jack_connect(jack_client, "DrumGizmo:output_2", "system:playback_2");
}
-
-int main(int argc, char *argv[])
-{
- DrumKitParser parser("/tmp/aasimonster/aasimonster.xml");
- if(parser.parse()) return 1;
-
- JackClient client(parser.getDrumkit());
-
- client.activate();
-
- // sendMidi();
-
- while(1) sleep(1);
-
- return 0;
-}
-
+#endif/*0*/