# Sine Synth

## Description

A simple, MIDI controlled sinewave synthesizer

## Parameters

Parameter | MIDI CC #
----------|-----------
Volume    | `CC-7`

## Building the Example

The faust code (.dsp) in this directory has been compiled using `faust2sam` into `sine_synth-sam`

```
% faust2sam -midi sine_synth.dsp
```

The result of this compile is a zip file `sine_synth-sam.zip` which contains the following three files:

  - `fast_pow2.h`
  - `samFaustDSP.cpp`
  - `samFaustDSP.h`

These 3 files should be placed into the directory `sam_baremetal_framework_core1/src/faust`

In addition there is a header file that is common across all cores called `audio_system_config.h`. In this file the following pre-processor variables should be set in the following way. The example below indicates that a Faust algorithm will only be running on Core1 and that Core2 will be simply passing audio to the codec. 

```
#define USE_FAUST_ALGORITHM_CORE1           TRUE
#define USE_FAUST_ALGORITHM_CORE2           FALSE
```

