Hey,
I am trying to program my own class for the audio library to practice some basics of realtime audio synthesis. For this I had a look at the guidelines for creating your own classes on the Teensy website and used the object template displayed there (just changing the name of the class to "Synth"):
When I tried to compile the code I unfortunately got several compiler errors. I got rid of the "F_CPU_ACTUAL" was not declared in this scope by browsing the forum and including "core_pins.h" as described in this thread.
However I'm still facing one compiler error I just can't get behind:
[{
"owner": "cpp",
"severity": 8,
"message": "expected '{' at end of input",
"startLineNumber": 8,
"startColumn": 49,
"endLineNumber": 8,
"endColumn": 49
}]
Has anyone an idea on how to solve this? Appreciate your help!
Cheers, Matthias
I am trying to program my own class for the audio library to practice some basics of realtime audio synthesis. For this I had a look at the guidelines for creating your own classes on the Teensy website and used the object template displayed there (just changing the name of the class to "Synth"):
Code:
#include "core_pins.h"
#include "AudioStream.h"
#include "Arduino.h"
class Synth : public AudioStream
{
public:
Synth() : AudioStream(1, inputQueueArray);
virtual void update(void);
private:
audio_block_t *inputQueueArray[1];
};
When I tried to compile the code I unfortunately got several compiler errors. I got rid of the "F_CPU_ACTUAL" was not declared in this scope by browsing the forum and including "core_pins.h" as described in this thread.
However I'm still facing one compiler error I just can't get behind:
[{
"owner": "cpp",
"severity": 8,
"message": "expected '{' at end of input",
"startLineNumber": 8,
"startColumn": 49,
"endLineNumber": 8,
"endColumn": 49
}]
Has anyone an idea on how to solve this? Appreciate your help!
Cheers, Matthias