-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMenuOSC.h
More file actions
48 lines (41 loc) · 794 Bytes
/
MenuOSC.h
File metadata and controls
48 lines (41 loc) · 794 Bytes
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
#pragma once
/*
MINI VIRTUAL ANALOG SYNTHESIZER
Copyright 2014 Kenneth D. Miller III
Note Oscillator Menu
*/
#include "Menu.h"
namespace Menu
{
class OSC : public Menu
{
public:
enum Item
{
TITLE,
WAVETYPE,
WAVEPARAM_BASE,
FREQUENCY_BASE,
AMPLITUDE_BASE,
WAVEPARAM_LFO,
FREQUENCY_LFO,
AMPLITUDE_LFO,
KEY_FOLLOW,
SUB_OSC_MODE,
SUB_OSC_AMPLITUDE,
HARD_SYNC,
COUNT
};
int osc; // oscillator index
// constructor
OSC(int osc, COORD pos, const char *name, int count)
: Menu(pos, name, count)
, osc(osc)
{
}
protected:
virtual void Update(int index, int sign, DWORD modifiers);
virtual void Print(int index, HANDLE hOut, COORD pos, DWORD flags);
};
extern OSC menu_osc[];
}