comparison CollidoscopeApp/include/Chunk.h @ 16:4dad0b810f18

Comment tidy up + attributions
author Fiore Martin <f.martin@qmul.ac.uk>
date Tue, 16 Aug 2016 14:27:53 +0100
parents 75b744078d66
children
comparison
equal deleted inserted replaced
15:5241f96479d6 16:4dad0b810f18
31 31
32 /** 32 /**
33 * 33 *
34 * A chunk of audio in Collidoscope low-fi visual wave. 34 * A chunk of audio in Collidoscope low-fi visual wave.
35 * 35 *
36 * The visual wave of Collidoscope is made out of a number of bars that mimics in a low-fi fashion the typical waveform based representation of audio. 36 * The visual wave of Collidoscope is made out of a number of bars that mimic, in a low-fi fashion, the typical waveform-based representation of audio.
37 * A Chunk is one of the bars of the visual wave. 37 * A Chunk is one of the bars of the visual wave.
38 * 38 *
39 */ 39 */
40 40
41 class Chunk 41 class Chunk
45 45
46 const static float kWidth; 46 const static float kWidth;
47 const static float kHalfWidth; 47 const static float kHalfWidth;
48 48
49 /** 49 /**
50 * Constructor, takes as argument the index of this chunk in the wave 50 * Constructor, takes as argument the index of this chunk in the wave that contains it
51 */ 51 */
52 Chunk( size_t index ); 52 Chunk( size_t index );
53 53
54 /** 54 /**
55 * Sets the top value of this chunk. The value is passed in audio coordinates : [-1.0, 1.0] 55 * Sets the top value of this chunk. The value is passed in audio coordinates : [-1.0, 1.0]
67 * Get the bottom value of this chunk. The value is returned in audio coordinates : [-1.0, 1.0] 67 * Get the bottom value of this chunk. The value is returned in audio coordinates : [-1.0, 1.0]
68 */ 68 */
69 float inline getBottom() const { return mAudioBottom; } 69 float inline getBottom() const { return mAudioBottom; }
70 70
71 /** 71 /**
72 * Reset this chunks. When a chunk is reset it starts shrinking until it disappears. 72 * Reset this chunks. When a chunk is reset, it starts shrinking until it disappears or setTop/setBottom are called again
73 * 73 *
74 */ 74 */
75 void reset(){ 75 void reset(){
76 mResetting = true; 76 mResetting = true;
77 } 77 }