| 1 |
// |
| 2 |
// MetronomeSettingsPanelController.h |
| 3 |
// Alchemusica |
| 4 |
// |
| 5 |
// Created by Toshi Nagata on 11/08/29. |
| 6 |
// Copyright 2011 Toshi Nagata. All rights reserved. |
| 7 |
// |
| 8 |
/* |
| 9 |
This program is free software; you can redistribute it and/or modify |
| 10 |
it under the terms of the GNU General Public License as published by |
| 11 |
the Free Software Foundation version 2 of the License. |
| 12 |
|
| 13 |
This program is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
*/ |
| 18 |
|
| 19 |
#import <Cocoa/Cocoa.h> |
| 20 |
|
| 21 |
extern NSString |
| 22 |
*MetronomeDeviceKey, // NSString; metronome MIDI device name |
| 23 |
*MetronomeChannelKey, // int; metronome MIDI channel |
| 24 |
*MetronomeNote1Key, // int; metronome click 1 sound note number |
| 25 |
*MetronomeNote2Key, // int; metronome click 2 sound note number |
| 26 |
*MetronomeVelocity1Key, // int; metronome click 1 sound velocity |
| 27 |
*MetronomeVelocity2Key, // int; metronome click 2 sound velocity |
| 28 |
*MetronomeEnableWhenPlayKey, |
| 29 |
*MetronomeEnableWhenRecordKey; |
| 30 |
|
| 31 |
@interface MetronomeSettingsPanelController : NSWindowController { |
| 32 |
IBOutlet NSPopUpButton *metronomeDevicePopUp; |
| 33 |
IBOutlet NSPopUpButton *metronomeChannelPopUp; |
| 34 |
IBOutlet NSTextField *metronomeClick1Text; |
| 35 |
IBOutlet NSStepper *metronomeClick1Stepper; |
| 36 |
IBOutlet NSTextField *metronomeClick2Text; |
| 37 |
IBOutlet NSStepper *metronomeClick2Stepper; |
| 38 |
IBOutlet NSTextField *metronomeVelocity1Text; |
| 39 |
IBOutlet NSStepper *metronomeVelocity1Stepper; |
| 40 |
IBOutlet NSTextField *metronomeVelocity2Text; |
| 41 |
IBOutlet NSStepper *metronomeVelocity2Stepper; |
| 42 |
IBOutlet NSButton *metronomeEnableWhenPlayCheck; |
| 43 |
IBOutlet NSButton *metronomeEnableWhenRecordCheck; |
| 44 |
} |
| 45 |
+ (void)initializeMetronomeSettings; |
| 46 |
+ (void)openMetronomeSettingsPanel; |
| 47 |
- (IBAction)popUpSelected:(id)sender; |
| 48 |
- (IBAction)metronomeClickTextChanged:(id)sender; |
| 49 |
- (IBAction)metronomeClickStepperMoved:(id)sender; |
| 50 |
- (IBAction)checkBoxPressed:(id)sender; |
| 51 |
|
| 52 |
@end |