aboutsummaryrefslogtreecommitdiff
path: root/MIDIvice/src/MIDIvice.c
diff options
context:
space:
mode:
Diffstat (limited to 'MIDIvice/src/MIDIvice.c')
-rw-r--r--MIDIvice/src/MIDIvice.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/MIDIvice/src/MIDIvice.c b/MIDIvice/src/MIDIvice.c
new file mode 100644
index 0000000..0acdb1d
--- /dev/null
+++ b/MIDIvice/src/MIDIvice.c
@@ -0,0 +1,46 @@
+/* (c) copyleft 2002-2008 IOhannes m zmölnig
+ * forum::für::umläute
+ * Institute of Electronic Music and Acoustics (IEM)
+ * University of Music and Dramatic Arts Graz (KUG)
+ */
+
+/*
+ * MIDIvice - accessing complex MIDI devices
+ */
+
+#include "MIDIvice.h"
+void motormix_setup();
+
+typedef struct MIDIvice
+{
+ t_object t_ob;
+} t_MIDIvice;
+
+t_class *MIDIvice_class;
+
+static void MIDIvice_help(void)
+{
+ post("\nMIDIvice "VERSION);
+ post("supported devices:");
+ post("\tmotormix\t\tMotorMix(tm) by cm-labs(r)"
+ "\n");
+}
+
+void *MIDIvice_new(void)
+{
+ t_MIDIvice *x = (t_MIDIvice *)pd_new(MIDIvice_class);
+ return (void *)x;
+}
+
+
+void MIDIvice_setup(void)
+{
+ motormix_setup();
+
+ /* ************************************** */
+ post("\n\tMIDIvice "VERSION);
+ post("\tcopyleft forum::für::umläute @ IEM/KUG 2002-2008");
+
+ MIDIvice_class = class_new(gensym("MIDIvice"), MIDIvice_new, 0, sizeof(t_MIDIvice), 0, 0);
+ class_addmethod(MIDIvice_class, MIDIvice_help, gensym("help"), 0);
+}