Mercurial > hg > beaglert
comparison include/Scope.h @ 485:506a319c08cf prerelease
Scope can now take a float* to an array instead of individual variables
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Tue, 21 Jun 2016 15:17:38 +0100 |
parents | faa5f58c71af |
children |
comparison
equal
deleted
inserted
replaced
484:afbc8f973bb3 | 485:506a319c08cf |
---|---|
14 | 14 |
15 class Scope{ | 15 class Scope{ |
16 public: | 16 public: |
17 Scope(); | 17 Scope(); |
18 | 18 |
19 /** | |
20 * Setup the Scope. | |
21 * | |
22 * @param numChannels number of channels in the scope. | |
23 * @param sampleRate sampleRate of the data passed in. | |
24 */ | |
19 void setup(unsigned int numChannels, float sampleRate); | 25 void setup(unsigned int numChannels, float sampleRate); |
26 | |
27 /** | |
28 * Logs a frame of data to the scope. | |
29 * | |
30 * Pass one argument per channel (starting from the first), up to the | |
31 * number of channels of the object. | |
32 * Omitted values will be set to 0. | |
33 */ | |
20 void log(float chn1, ...); | 34 void log(float chn1, ...); |
35 | |
36 /** | |
37 * Logs a frame of data to the scope. | |
38 * | |
39 * @param values a pointer to an array containing numChannels values. | |
40 */ | |
41 void log(float* values); | |
21 bool trigger(); | 42 bool trigger(); |
22 | 43 |
23 private: | 44 private: |
24 OSCServer oscServer; | 45 OSCServer oscServer; |
25 OSCClient oscClient; | 46 OSCClient oscClient; |