-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBeatVisualizerView.h
executable file
·71 lines (67 loc) · 3.04 KB
/
BeatVisualizerView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//
// BeatVisualizerView.h
// BeatVisualizerView
//
// Created by Josh Doctors on 2/28/2015.
// Copyright (c) 2015 Josh Doctors. All rights reserved.
//
#import <Foundation/NSDistributedNotificationCenter.h>
#import <AppSupport/AppSupport.h>
#import "rocketbootstrap.h"
@interface AudioPlotWaveformLayer : CAShapeLayer
@end
@interface BeatVisualizerView : UIView
-(void)updateWithLevel:(CGFloat)level withData:(NSMutableArray*)data withLength:(NSInteger)length withVol:(CGFloat)vol withType:(CGFloat)type;
+(instancetype)sharedInstance;
-(void)toggleVisibility;
-(void)pause;
-(void)play;
@property (nonatomic, strong) AudioPlotWaveformLayer *waveformLayer;
@property (nonatomic, strong) CADisplayLink * displayLink;
@property (nonatomic, assign) CGPoint *points;
@property (nonatomic, assign) UInt32 pointCount;
@property (nonatomic, strong) UIColor *primaryColor;
@property (nonatomic, strong) UIColor *secondaryColor;
@property (nonatomic, strong) UIColor *colorFlowPrimary;
@property (nonatomic, strong) UIColor *colorFlowSecondary;
@property (nonatomic, strong) UIColor *prismFlowPrimary;
@property (nonatomic, strong) UIColor *prismFlowSecondary;
@property (nonatomic, strong) UIColor *beatPrimaryColor;
@property (nonatomic, strong) UIColor *beatSecondaryColor;
@property (nonatomic, strong) UIColor *spectrumPrimaryColor;
@property (nonatomic, strong) UIColor *randomColorPrimary;
@property (nonatomic, strong) UIColor *randomColorSecondary;
@property (nonatomic, strong) UIColor *overlayColor;
@property (nonatomic, strong) NSMutableArray *waves;
@property (nonatomic, strong) NSMutableArray *outData;
@property (nonatomic, assign) NSInteger outDataLength;
@property (nonatomic, assign) CGFloat primaryWaveLineWidth;
@property (nonatomic, assign) CGFloat transparency;
@property (nonatomic, assign) CGFloat type;
@property (nonatomic, assign) CGFloat level;
@property (nonatomic, assign) NSInteger colorStyle;
@property (nonatomic, assign) BOOL overlayAlbumArt;
@property (nonatomic, assign) NSInteger numBars;
@property (nonatomic, assign) CGFloat barHeight;
@property (nonatomic, assign) BOOL isPaused;
@property (nonatomic, assign) double mag;
@property (nonatomic, assign) double sum;
@property (nonatomic, assign) double avg;
@property (nonatomic, assign) double bar_width;
@property (nonatomic, assign) double scaled_avg;
@property (nonatomic, assign) float max;
@property (nonatomic, assign) CGFloat secondaryWaveLineWidth;
@property (nonatomic, assign) CGFloat idleAmplitude;
@property (nonatomic, assign) CGFloat frequency;
@property (nonatomic, assign) CGFloat volume;
@property (nonatomic, assign) CGFloat amplitude;
@property (nonatomic, assign) CGFloat siriAmplitude;
@property (nonatomic, assign) CGFloat priorAmplitude;
@property (nonatomic, assign) CGFloat waveThreshold;
@property (nonatomic, assign) BOOL createWave;
@property (nonatomic, assign) CGFloat density;
@property (nonatomic, assign) NSUInteger numberOfWaves;
@property (nonatomic, assign) NSInteger displayWave;
@property (nonatomic, assign) NSInteger spectrumStyle;
@property (nonatomic, assign) BOOL isVisible;
@end