This version (02 Oct 2018 21:39) was approved by Chad Wentworth.The Previously approved version (10 Jul 2018 21:27) is available.Diff

MIDI Controlled Reverb on Core 1

This second example is a MIDI controlled reverb on Core 1.

The Faust Code for the MIDI Controlled Reverb

Multiple examples for the SHARC audio module have been put together and hosted on github. In order to successfully run this example, please clone this repository.

For this particular example workflow, we will be looking at the freeverb example from the git repository.

  • Open the Faust online editor.
  • You can copy the contents into the editor 2 different ways
    1. Name the *.dsp file freeverbForBrowser.dsp. and copy the contents of freeverbForBrowser.dsp into the online editor.
    2. Drag the freeverbForBrowser.dsp file into the tile bar of the editor
  • Compile and run the Faust program using the button

Looking at the Block Diagram for the MIDI Controlled Reverb

The block diagram button can be used to generate a hierarchical block diagram for an algorithm. This block diagram is hierarchical. Here are a few of the hierarchical levels:

Creating Files for use with the Baremetal Framework

  • Click the Export/compile to a specific platform button
  • In the first dropdown box, choose sam
  • In the second dropdown box, choose sam-source-midi and then Export:
faust2sam will generate the following three C++ source files, which is the algorithm.
  • fast_pow2.h
  • samFaustDSP.cpp
  • samFaustDSP.h
  • Click on the QR code that shows to download the files
  • These 3 source files can be copied to the Faust directory in the CCES framework. The framework can then be compiled and downloaded to the SHARC Audio Module.

Expected Effect

When you run the project through the debugger, you will be able to control the reverb by turning the pressing the push button labeled SW1 until LED6 lights up and then turning the POT labeled HADC0.

Navigation - SHARC Audio Module

resources/tools-software/sharc-audio-module/faust/ex-work-reverb.txt · Last modified: 02 Oct 2018 21:39 by Chad Wentworth