Mercurial > hg > opencollidoscope
comparison CollidoscopeApp/include/Messages.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 |
---|---|
29 // message carrying info about one chunk of recorder audio. | 29 // message carrying info about one chunk of recorder audio. |
30 WAVE_CHUNK, | 30 WAVE_CHUNK, |
31 // message sent when a new recording starts. The gui resets the wave upon receiving it. | 31 // message sent when a new recording starts. The gui resets the wave upon receiving it. |
32 WAVE_START, | 32 WAVE_START, |
33 | 33 |
34 // new grain created | |
34 TRIGGER_UPDATE, | 35 TRIGGER_UPDATE, |
36 // synth became idle | |
35 TRIGGER_END, | 37 TRIGGER_END, |
36 | 38 |
37 NOTE_ON, | 39 NOTE_ON, |
38 NOTE_OFF, | 40 NOTE_OFF, |
39 | 41 |
41 LOOP_OFF | 43 LOOP_OFF |
42 }; | 44 }; |
43 | 45 |
44 /** Message sent from the audio thread to the graphic wave when a new wave is recorded. | 46 /** Message sent from the audio thread to the graphic wave when a new wave is recorded. |
45 * | 47 * |
46 * The graphic thread set the chunks of the wave to reflect the level of the recorded audio. | 48 * The graphic thread sets the chunks of the wave to reflect the level of the recorded audio. |
47 * The algorithm takes the maximum and minimum value of a group of samples and this becomes the top and bottom of the samples. | 49 * The algorithm takes the maximum and minimum value of a group of samples and this becomes the top and bottom of the chunk. |
48 * It contains the inde | 50 * The message carries also the index of the chunk it refers to |
49 * the cursor position when the grains are reset. | |
50 */ | 51 */ |
51 struct RecordWaveMsg | 52 struct RecordWaveMsg |
52 { | 53 { |
53 Command cmd; // WAVE_CHUNK or WAVE_START | 54 Command cmd; // WAVE_CHUNK or WAVE_START |
54 std::size_t index; | 55 std::size_t index; |