matdombrock / potatojuce

0 stars 0 forks source link

POTATO JUCE:

Setup:

Download the Image

Download the Libre Computer Raspbian Image.

Extract and write the image to a 16gb+ micro SD card.

Follow the Libre Computer Instructions for full setup instructions.

Install Dependencies

Before you can work with this project you will need to install the required dependencies:

cd .docs/dependencies/
./install-deps.sh

Source

Le Potato

The “Le Potato” single board computer available from Libre Computers is an alternative to the Raspberry Pi. It is modeled after the Raspberry Pi 3 and is largely compatible with the Raspberry Pi 3 and it’s accessories (with some limitations/caveats). It can even run Raspberry Pi OS / Raspbian.

It costs about 1/3rd of what a Raspberry Pi does while coming with 2GB of memory. It’s also widely available as well (unlike the pi).

Internal Le Potato Docs

Project Layout

Generally speaking, the actual project code is split into two main directories/sub-projects.

The Audio directory holds all of the audio (JUCE) related code.

The GPIO directory holds all of the hardware interface code.

These really are two separate projects that are treated as their own code bases. They are just kept in the same repo since they are so closely tied together at this point.

At this point, these 2 projects do not share any code and they might be split into their own repos in the future if it remains that way.

Building Audio

cd Audio
./build.sh

Note: If you have issues run the command as .build.sh clean to clean your build directory first.

Running Audio

cd Audio
./run.sh

Building HW Interface

cd GPIO
./build.sh

Running HW Interface

cd GPIO
./run.sh

Inter-Process Communication

IPC is handled through a named pipe at /tmp/pinp.

This pipe must be created manually in order for the IPC to start working.

To run the synth code with "IPC enabled" do:

cd Audio
# clear
rm /tmp/pinp
mkfifo /tmp/pinp
# run
cat /tmp/pinp | ./run.sh

Then start the GPIO/interface.out software.