-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathckv.h
32 lines (25 loc) · 783 Bytes
/
ckv.h
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
#ifndef CKV_H
#define CKV_H
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
/* luabaselite.c */
int open_luabaselite(lua_State *L); /* open ckv-specific lua libraries */
/* rtaudio_wrapper.cpp */
typedef void (*AudioCallback)(double *outputBuffer, double *inputBuffer,
unsigned int nFrames,
double streamTime,
void *userData);
int start_audio(AudioCallback callback, int sample_rate, void *data);
void stop_audio(void);
/* rtmidi_wrapper.cpp */
typedef struct {
int control; /* control message? boolean */
int pitch_bend; /* pitch bend? boolean */
int channel;
int note;
float velocity;
} MidiMsg;
int start_midi(int port);
int get_midi_message(MidiMsg *message);
#endif