diff TopButtonViewController.mm @ 46:1e266647840d

beta 2. interpolation movement , smoothing (crap) and timbre only.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Wed, 24 Apr 2013 17:58:08 +0100
parents a1e75b94c505
children
line wrap: on
line diff
--- a/TopButtonViewController.mm	Tue Apr 23 18:29:55 2013 +0100
+++ b/TopButtonViewController.mm	Wed Apr 24 17:58:08 2013 +0100
@@ -72,6 +72,7 @@
     ((testApp *)self.theOFAppRef)->seqStartStop(true);
     self.playButton.enabled = false;
     self.pauseButton.enabled = true;
+    self.seqNumText.text = [NSString stringWithFormat:@"%d", ((testApp *)self.theOFAppRef)->currentSequence];
 }
 
 - (IBAction)pausePressed:(id)sender {
@@ -131,6 +132,8 @@
 
 - (IBAction)randomise:(id)sender {
     ((testApp *)self.theOFAppRef)->randomise();
+    int seqNum = ((testApp *)self.theOFAppRef)->nextSequence();
+    self.seqNumText.text = [NSString stringWithFormat:@"%d", seqNum];
 }
 
 - (IBAction)helpPressed:(id)sender {
@@ -143,7 +146,8 @@
 }
 
 - (IBAction)nextSequence:(id)sender {
-    ((testApp *)self.theOFAppRef)->nextSequence();
+    int seqNum = ((testApp *)self.theOFAppRef)->nextSequence();
+    self.seqNumText.text = [NSString stringWithFormat:@"%d", seqNum];
 }
 
 - (IBAction)smoothSwitchChanged:(id)sender {
@@ -179,6 +183,7 @@
     [_savePresetButton release];
     [_lockXButton release];
     [_lockYButton release];
+    [_seqNumText release];
     [super dealloc];
 }
 - (void)viewDidUnload {
@@ -192,6 +197,7 @@
     [self setSavePresetButton:nil];
     [self setLockXButton:nil];
     [self setLockYButton:nil];
+    [self setSeqNumText:nil];
     [super viewDidUnload];
 }
 @end