Skip to content

Sound generation for the Haxophone written in C++

Notifications You must be signed in to change notification settings

StaffanMelin/haxo-cs

Repository files navigation

haxo-cs

Prerelease, only example 12 working (for the Haxo). The rest is from a previous project (reference). More to come -- soon! Check the issues for what will happen.

Code for making sounds with the Haxophone.

Combining my DSound software synth library (based on Daisy SP) with the Haxophone hardware.

Audio: demo0.ogg (All sounds from example-12-haxo demo project, incuding fx, running on the RPi.)

Code is running on an Raspberry Pi 4B using the current Lite (headless) Raspian OS.

As for now, the magic happens mainly in dhaxo.cpp.

License: GPL3

Contact: [email protected]

Setting up

Install raspi lite

sudo raspi-config

  • expand file system
  • enable i2c
  • gpio is already enabled

edit /boot/firmware/config.txt

# Enable audio (loads snd_bcm2835)
# dtparam=audio=on
dtoverlay=max98357a

I2C

sudo apt install libi2c-dev

Test:

i2cdetect -l

GPIO

libgpiod already installed

sudo apt install libgpiod-dev

Test: gpiodetect gpioinfo

RtAudio

sudo apt install libasound2-dev libevent-dev

Needs:

  • libasound2 libasound2-data *libasound2-dev
  • +libevent-pthread-... *libevent-dev *=not already installed

About

Sound generation for the Haxophone written in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published