This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #if defined(_WIN32) | |
| # include <Windows.h> | |
| #elif defined(__APPLE__) || defined(LINUX) | |
| # include <sys/mman.h> | |
| #endif | |
| #include <optional> | |
| #include "result.hpp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include <cstring> | |
| #include "daisy_seed.h" | |
| #include "daisy_pod.h" | |
| #include "util/oled_fonts.h" | |
| #include "hid/disp/graphics_common.h" | |
| using namespace daisy; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---------------------------------------------------------- | |
| // https://www.musicdsp.org/en/latest/Other/93-hermite-interpollation.html | |
| // 2002-01-17 03:14:54: Dave from Muon Software, originally from Josh Scholar | |
| float order3Spline(const float x, const float L1, const float L0, const float H0, const float H1) | |
| { | |
| return | |
| L0 + | |
| .5f* | |
| x*(H0-L1 + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| James William Fletcher (github.com/mrbid) | |
| September 2021 | |
| Benchmarking interpolation functions for time domain signals, such as audio. | |
| https://james-william-fletcher.medium.com/benchmarking-interpolation-functions-9f84de397109 | |
| references of interest: | |
| http://www.ee.ic.ac.uk/pcheung/teaching/ee3_Study_Project/Sinewave%20Generation(708).pdf | |
| https://demonstrations.wolfram.com/SineWaveGenerationUsingAnUnstableIIRFilter/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| James William Fletcher (github.com/mrbid) | |
| August 2021 | |
| Benchmarking sine wave functions. | |
| https://james-william-fletcher.medium.com/benchmarking-sine-functions-16b067bf63ce | |
| references: | |
| http://www.ee.ic.ac.uk/pcheung/teaching/ee3_Study_Project/Sinewave%20Generation(708).pdf | |
| https://demonstrations.wolfram.com/SineWaveGenerationUsingAnUnstableIIRFilter/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| done..... | |
| ......... | |
| ......... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <vector> | |
| #include <string> | |
| #include <cmath> | |
| #include <iostream> | |
| #include <sndfile.h> | |
| #ifdef WITH_RLIMIT | |
| #include <sys/resource.h> | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clear; | |
| // ECC83 Model and circuit based on | |
| // http://www.hs-ulm.de/opus/frontdoor.php?source_opus=114 | |
| Fs = 44100; | |
| T = 1/Fs; | |
| // Tube parameters for the ECC83 | |
| g0 = 1.609683e-15; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Win32 : Minimal VST 2.x Synth host in C++11. | |
| // | |
| // This is a simplified version of the following project by hotwatermorning : | |
| // A sample VST Host Application for C++ Advent Calendar 2013 5th day. | |
| // https://github.com/hotwatermorning/VstHostDemo | |
| // | |
| // Usage : | |
| // 1. Compile & Run this program. | |
| // 2. Select your VST Synth DLL. | |
| // 3. Press QWERTY, ZXCV, etc. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // C port of http://ldesoras.free.fr/prod.html#src_hiir | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| #include <errno.h> | |
| const double PI = 3.1415926535897932384626433832795; | |
| void | |
| compute_transition_param(double *kp, double *qp, double transition) |