Skip to content

Commit

Permalink
update readme about instrument.h
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Jan 11, 2021
1 parent 1052e58 commit 1ed0bb8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Expand Up @@ -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
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.

0 comments on commit 1ed0bb8

Please sign in to comment.