#import <UIKit/UIKit.h>

@protocol TuneViewDelegate;

@class Tune;

#define kTuneScale 0.92f

@interface TuneView : UIView
{
	id<TuneViewDelegate> delegate;
  Tune *tune;
  float scale;
  CGAffineTransform tuneTransform;
  NSThread *playThread;
}

@property(assign) id<TuneViewDelegate> delegate;
@property(readwrite) float scale;
@property(retain,readwrite) Tune *tune;
@property(readwrite) CGAffineTransform tuneTransform;

@end

@protocol TuneViewDelegate<NSObject>

@required

-(void)drawView:(TuneView*)view inContext:(CGContextRef)context bounds:(CGRect)bounds;

@end
