mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-12 09:39:30 +00:00
Testing Messagepack for saving/loading stuff from SD card
This commit is contained in:
@@ -78,7 +78,7 @@ void EPARProcessor::execute(const buffer_c8_t& buffer) {
|
||||
} else {
|
||||
current_tu++;
|
||||
}
|
||||
sample = 0;
|
||||
sample = -127;
|
||||
}
|
||||
|
||||
sample_count = 0;
|
||||
@@ -91,7 +91,7 @@ void EPARProcessor::execute(const buffer_c8_t& buffer) {
|
||||
}
|
||||
|
||||
//FM
|
||||
frq = sample * 1000; // ~25kHz wide
|
||||
frq = sample * shared_memory.excursion; // 500=~3kHz wide
|
||||
|
||||
phase = (phase + frq);
|
||||
sphase = phase + (256<<16);
|
||||
|
||||
@@ -49,9 +49,9 @@ public:
|
||||
void execute(const buffer_c8_t& buffer) override;
|
||||
|
||||
private:
|
||||
const uint8_t bitdef[2][3] = {
|
||||
{0, 255, 255},
|
||||
{0, 0, 255}
|
||||
const int8_t bitdef[2][3] = {
|
||||
{-127, 127, 127},
|
||||
{-127, -127, 127}
|
||||
};
|
||||
int8_t re, im;
|
||||
uint8_t s;
|
||||
|
||||
Reference in New Issue
Block a user