8 #ifndef HAS_LIVES_OMC_LEARN_H
9 #define HAS_LIVES_OMC_LEARN_H
12 #define N_OMC_MACROS 32
18 #if HAVE_LINUX_JOYSTICK_H
26 char *js_mangle(
void);
27 boolean js_open(
void);
29 const char *get_js_filename(
void);
40 #define OMC_PARAM_INT 1
41 #define OMC_PARAM_DOUBLE 2
42 #define OMC_PARAM_SPECIAL 128
138 #define OMC_JS_AXIS 2
139 #define OMC_JS_BUTTON 3
143 #define OMC_MIDI_NOTE 129
144 #define OMC_MIDI_NOTE_OFF 130
145 #define OMC_MIDI_CONTROLLER 131
146 #define OMC_MIDI_PITCH_BEND 132
147 #define OMC_MIDI_PGM_CHANGE 133
158 #define OMC_FILE_VSTRING "LiVES OMC map version 1.0"
167 #define OSC_BUF_SIZE 1024
168 #define OSC_MAX_TYPETAGS 64
174 #endif // HAS_LIVES_OMC_LEARN_H
Definition: omc-learn.h:119
int * offs1
offs to add to params after scale
Definition: omc-learn.h:77
Definition: omc-learn.h:44
OSCbuf * omc_learner_decode(int type, int index, const char *string)
decode learnt behaviours
LiVESWidget * table
Definition: omc-learn.h:112
int * max
max values of params
Definition: omc-learn.h:80
char * srch
string to match
Definition: omc-learn.h:71
int * map
reverse mapping to params of OSC message
Definition: omc-learn.h:86
int * matchi
match value
Definition: omc-learn.h:83
Definition: omc-learn.h:133
Definition: omc-learn.h:132
double * maxd
Definition: omc-learn.h:61
double * scale
scale for params
Definition: omc-learn.h:76
int tbl_rows
Definition: omc-learn.h:110
Definition: omc-learn.h:131
LiVESWidget * treev2
Definition: omc-learn.h:94
int * fvali
mapping to fixed ints
Definition: omc-learn.h:87
int * min
min values of params
Definition: omc-learn.h:79
int * ptypes
Definition: omc-learn.h:54
LiVESWidget * del_all_button
Definition: omc-learn.h:108
char * stype_tags
setter type tags
Definition: omc-learn.h:48
const char * get_midi_filename(void)
Definition: omc-learn.h:121
double * mind
Definition: omc-learn.h:60
LiVESWidget * treev1
Definition: omc-learn.h:93
void on_midi_learn_activate(LiVESMenuItem *, livespointer)
start learning MIDI inputs
void on_midi_save_activate(LiVESMenuItem *, livespointer)
LiVESWidget * dialog
Definition: omc-learn.h:106
int nvars
number of params
Definition: omc-learn.h:74
int * vali
Definition: omc-learn.h:58
boolean * matchp
do we need to match this pval ?
Definition: omc-learn.h:82
Definition: omc-learn.h:122
int * maxi
Definition: omc-learn.h:57
char * info_text
descriptive text
Definition: omc-learn.h:47
Definition: omc-learn.h:125
LiVESWidget * top_vbox
Definition: omc-learn.h:113
int nparams
Definition: omc-learn.h:50
LiVESTreeStore * gtkstore
Definition: omc-learn.h:96
void on_midi_load_activate(LiVESMenuItem *, livespointer)
Definition: omc-learn.h:123
LiVESTreeStore * gtkstore2
Definition: omc-learn.h:97
int * tmpvals
Definition: omc-learn.h:99
Definition: omc-learn.h:126
LiVESWidget * clear_button
Definition: omc-learn.h:107
char * macro_text
macro text
Definition: omc-learn.h:46
Definition: omc-learn.h:70
Definition: omc-learn.h:124
char ** pname
Definition: omc-learn.h:52
char * msg
OSC message.
Definition: omc-learn.h:45
int tbl_currow
Definition: omc-learn.h:111
int * mini
Definition: omc-learn.h:56
double * vald
Definition: omc-learn.h:62
Definition: omc-learn.h:120
Definition: omc-learn.h:105
int * offs0
offs to add to params before scale
Definition: omc-learn.h:75
double * fvald
mapping to fixed doubles
Definition: omc-learn.h:88
int macro
macro number this is linked to (or -1)
Definition: omc-learn.h:72
boolean omc_process_string(int supertype, const char *string, boolean learn, omclearn_w *omclw)