Playlist Generator  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
Playlist2/AnalyseViewController.h
Go to the documentation of this file.
00001 
00009 #import <UIKit/UIKit.h>
00010 #import "MBProgressHUD.h"
00011 #import "AnalysisConnection.h"
00012 #import "SongProfileConnection.h"
00013 #import "EchonestAnalyseConnection.h"
00014 
00015 @interface AnalyseViewController : UIViewController <MBProgressHUDDelegate, NSURLConnectionDelegate>
00016 {
00020     NSURL *recordingURL;
00021     
00025     MBProgressHUD *HUD;
00026     
00030     AnalysisConnection *analysisConnection;
00031     EchonestAnalyseConnection *echonestUpload;
00032     SongProfileConnection *songProfileConnection;
00033     NSMutableData *receivedData;
00034     
00035     //Identified Music
00036     NSString *jsonData;
00037     NSString *trackID;
00038     NSString *trackTitle;
00039     NSString *trackArtist;
00040     
00041     //Analysed Music
00042     NSString *tempo;
00043     NSString *danceability;
00044     NSString *key;
00045     NSString *mode;
00046     NSString *energy;
00047     NSString *timeSignature;
00048     
00049     //UI Elements
00050     //Identified Music
00051     IBOutlet UITextField *artistField;
00052     IBOutlet UITextField *trackField;
00053     IBOutlet UIButton *goButton;
00054     IBOutlet UIView *identifyView;
00055     
00056     //Analysed Music
00057     IBOutlet UISlider *tempoSlider;
00058     IBOutlet UISlider *danceSlider;
00059     IBOutlet UISlider *energySlider;
00060     IBOutlet UIButton *keyButton;
00061     IBOutlet UIButton *timeButton;
00062     IBOutlet UIView *analyseView;
00063     
00064 }
00065 -(void)showHUD;
00066 -(NSString *)getEchoprintCode;
00067 -(void)getTrackData;
00068 -(void)getAnalysisDataOf:(NSString *)data;
00069 -(IBAction)goButtonPressed:(id)sender;
00070 -(NSString *)convertNumberToKey:(NSString *)inputKey;
00071 -(NSString *)convertnumberToMode:(NSString *)inputMode;
00072 
00073 @property (nonatomic, retain) NSURL *recordingURL;
00074 @property (nonatomic, retain) UITextField *artistField;
00075 @property (nonatomic, retain) UITextField *trackField;
00076 
00077 @end