MEAP software reference


Mozzi

The core of MEAP's sound engine is the Mozzi library, which is very thoroughly documented on their website. All functions from the Mozzi library work in MEAP as do all Mozzi example programs (though you will need to fit them into the MEAP template program to talk to MEAP's audio codec).

meap_mozzi modified Mozzi classes
meap_main core MEAP class and its methods
meap_instruments plug and play instruments
meap_stk an in-progress port of the Synthesis Toolkit

MEAP extensions of Mozzi classes

The Mozzi library is designed to generate audio on very limited platforms such as the Arduino UNO and as such, the functions are designed to be as lightweight and efficient as possible. The ESP32-S3 chip used on MEAP boards is a comparatively more powerful chip and does not need to have these limitations so a few Mozzi functions have been modified to allow MEAP to take full advantage of them. It is recommended to use the MEAP function over the Mozzi function that it replaces.


class: mSample


class: mOscil


meap_main: the core class and errata

Much of the MEAP library is packaged within the Meap class. This class handles communicating with MEAP's hardware: potentiometers, MIDI I/O etc. It also provides some general purpose functions that you may find useful. These functions are all part of the Meap class that is declared globally in all example MEAP programs so they must be accessed through that class (for example meap.irand(0, 1) rather than just irand(0, 1))

Meap methods

Structs:


method: int64_t Meap::irand(int64_t howsmall, int64_t howbig)


method: float Meap::frand()


method: StereoSample Meap::pan2(int64_t sample, uint8_t pos);


method: float Meap::midiPulseMicros(float tempo)


method: float Meap::tempoToPeriod(float tempo)


method: void Meap::setCodecGain(uint16_t gain);


meap_instruments: Plug and play instruments

[UNDER CONSTRUCTION]


meap_stk: A port of the Synthesis Toolkit to the MEAP/Mozzi environment

[UNDER CONSTRUCTION]

  • MEAP_ASDR
  • MEAP_BiQuad
  • MEAP_Chorus
  • MEAP_ControlSine
  • MEAP_Delay
  • MEAP_Delay_Allpass
  • MEAP_Delay_Linear
  • MEAP_fir
  • MEAP_Iir
  • MEAP_Noise
  • MEAP_OnePole
  • MEAP_OneZero
  • MEAP_PoleZero
  • MEAP_SineWave
  • MEAP_TwoZero