From 1ed0bb89e2c5b0aa796ae6d85d0c32fab3818dee Mon Sep 17 00:00:00 2001 From: chee Date: Mon, 11 Jan 2021 23:38:52 +0000 Subject: [PATCH] update readme about instrument.h --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5bcde72..c9196fd 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,20 @@ This is mostly just a little wrapper around paul's teensy audio library synth_wavetable, updated to make sure it runs on the ATSAMD51 with adafruit's atsamd fork of Audio. -the `decoder.py` here is taken the teensy AudioSynthWaveform repo, with changes to make it output parsed soundfonts in the format expressed in the `synth_wavetable.cpp` file from the Audio repo \ No newline at end of file +the `decoder.py` here is taken the teensy AudioSynthWaveform repo, with changes to make it output parsed soundfonts in the format expressed in the `synth_wavetable.cpp` file from the Audio repo + +if you run decoder on a soundfont, it'll drop the headers in src/instruments. then you can edit `instrument.h` and change these lines: + +```c++ +#include "instruments/AnalogSaw_samples.h" +auto instrument = AnalogSaw; +``` + +to, for instance, + +```c++ +#include "instruments/lead_samples.h" +auto instrument = lead; +``` + +and that'll be your instrument now.