forked from n9yty/simplesynth
-
Notifications
You must be signed in to change notification settings - Fork 2
/
SynthController.h
58 lines (45 loc) · 1.65 KB
/
SynthController.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
57
58
#import <Cocoa/Cocoa.h>
@class PYMIDIVirtualDestination;
#import "GaugeView.h"
#import "AudioSystem.h"
/*!
@class SynthController
This is the main controller for the application.
*/
@interface SynthController : NSObject
{
IBOutlet NSWindow* mainWindow;
IBOutlet NSPopUpButton* midiInputPopup;
IBOutlet NSTextField* soundSetTextField;
IBOutlet NSTableView* channelsTable;
IBOutlet NSDrawer* instrumentsDrawer;
IBOutlet NSTableView* instrumentsTable;
IBOutlet NSTextField* programNumberField;
IBOutlet NSTextField* bankSelectMSBField;
IBOutlet NSTextField* bankSelectLSBField;
IBOutlet NSSlider* cutoffSlider;
IBOutlet GaugeView* cpuLoadGuage;
NSTimer* uiUpdateTimer;
AudioSystem* audioSystem;
PYMIDIVirtualDestination* virtualDestination;
}
- (void)awakeFromNib;
- (void)updateUI:(NSTimer*)timer;
- (void)buildMIDIInputPopUp;
- (IBAction)midiInputChanged:(id)sender;
- (void)midiSetupChanged:(NSNotification*)notification;
- (IBAction)openDocument:(id)sender;
- (IBAction)restoreAppleSounds:(id)sender;
- (BOOL)application:(NSApplication*)theApplication openFile:(NSString*)filename;
- (void)displayOpenFailedAlert:(NSString*)fileName;
- (void)audioSystemInstrumentChanged:(NSNotification*)notification;
- (void)channelsTableSelectionChanged:(NSNotification*)notification;
- (void)instrumentsTableSelectionChanged:(NSNotification*)notification;
- (void)updateInstrumentSelection;
- (void)updateMIDIDetails;
- (IBAction)cutoffSliderChanged:(id)sender;
- (void)updateCPULoadGuage;
- (IBAction)displayLicense:(id)sender;
- (IBAction)visitWebSite:(id)sender;
- (IBAction)sendFeedback:(id)sender;
@end