-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathADDAC_CVlooper.h
executable file
·56 lines (44 loc) · 1005 Bytes
/
ADDAC_CVlooper.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* ADDAC_CVlooper
* Version 0.1 November, 2009
* AndrŽ Gonalves + Pedro Moura
*
* in Experimental work
* Still a lot to do!
*
* add sampling related to time!
* metronome correction!
* implement Smooth, with control!!!
*
*/
#ifndef ADDAC_CVlooper_h
#define ADDAC_CVlooper_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include <WProgram.h>
#endif
#include <ADDAC_CVbuffer.h>
#define addacMaxResolution 65535
// VC RECORDER
class ADDAC_CVlooper{
public:
ADDAC_CVlooper();
void update(int _MODE, int _interval, float _wet, int _val);
void loopSize(int _val);
void record(int _val);
void clearRecord(int _val);
void overdub(int _val);
void play();
// CV recorder
int buffsNum, buffSize;
ADDAC_CVbuffer CVbuffer[3];
//buffer CVbufferTimes[3];
int b_index,n_index,index, playIndex;
int currentVal;
int interval;
unsigned long time;
float wet;
unsigned int CVstream;
};
#endif