aboutsummaryrefslogtreecommitdiff
path: root/MIDIvice/src/MIDIvice.c
blob: 67cf293f301af33b95c5ef9c29aa79814fe71bbe (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
25
26
27
28
29
30
31
32
33
34
35
36
#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);
}