Skip to content

An attempt to create a simple embedded synth device to use with my MIDI keyboard

Notifications You must be signed in to change notification settings

antbern/midi-synth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pico Synth

My take on trying to create a device that can be used to generate noise from MIDI messages! Uses a Raspberry Pi Pico and MAX98357A I2S amplifier to process the messages and play music.

There is also a command line application available that does the same thing but through the computer instead. That way, development cycle can be kept short!

To facilitate this, the project is divided into three crates:

  • cli The command line application, using cpal for audio output.
  • pico The firmware for the Raspberry Pi Pico board.
  • synth A common no_std crate that contains the actual engine to generate audio samples. It is used by the other two binary crates.

Features and TODOs

  • Basic sine wave generation.
  • MIDI input.
  • Note On/Off amplitude envelope.
  • Other types of waves: square, saw, triangle.
  • Low- and high-pass filters.
  • Using fixed point integer math (currently uses i16, but the pico is a 32-bit device).
  • Using MIDI control messages to change filter, envelope parameters and wave form.

About

An attempt to create a simple embedded synth device to use with my MIDI keyboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published