comparison SliderViewController.mm @ 45:c2fffc8ea84d

10 timbre params.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Tue, 23 Apr 2013 18:29:55 +0100
parents a1e75b94c505
children 1e266647840d
comparison
equal deleted inserted replaced
44:a1e75b94c505 45:c2fffc8ea84d
13 13
14 @end 14 @end
15 15
16 @implementation SliderViewController 16 @implementation SliderViewController
17 17
18
19 // init with either sequencer or all timbre
18 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 20 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
19 { 21 {
20 self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 22 self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
21 if (self) { 23 if (self) {
22 // Custom initialization 24 // Custom initialization
101 - (void)setSlider:(int)which to:(float)value{ 103 - (void)setSlider:(int)which to:(float)value{
102 [[self.sliderArray objectAtIndex:which] setParamValue:value]; 104 [[self.sliderArray objectAtIndex:which] setParamValue:value];
103 } 105 }
104 - (void)populateParamNames{ 106 - (void)populateParamNames{
105 107
106 108 /*
107 self.paramNames = [NSArray arrayWithObjects: 109 self.paramNames = [NSArray arrayWithObjects:
108 @"Transpose",@"1/4 note",@"1/6 note",@"1/7 note",@"1/8 note", 110 @"Transpose",@"1/4 note",@"1/6 note",@"1/7 note",@"1/8 note",
109 @"Waveform",@"Filter Type",@"Filter Cutoff",@"Envelope",@"FM amount", 111 @"Waveform",@"Filter Type",@"Filter Cutoff",@"Envelope",@"FM freq",
110 nil]; 112 nil];
111 113 */
114 self.paramNames = [NSArray arrayWithObjects:
115 @"Amp Env",@"Waveform",@"FM amount",@"FM frequency",@"Reverb",
116 @"Filter Type",@"Filter Cut off",@"Filter Resonance",@"Filter Env Shape",@"Filt Env Amount",
117 nil];
112 } 118 }
113 @end 119 @end