Skip to content

andthezhang/Embedded-Miku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embedded-Miku

Embedded-Miku is a program which processes audio input in real-time and creates a rythm game out of the processed input. This project is inspired by Hatsune Miku, a rythm game. This is made for final project in Embedded System course, CMPT433, in SFU.

Refer to Detailed information for more information.

alt text

Initial Setup for Dependencies

Follow the instructions below in BBG:

  1. Add Debian 9's apt-get repo (branch stretch) in /etc/apt/sources.list for libc++6 library
  2. Add Debian 9.5's apt-get repo (branch buster) in /etc/apt/sources.list for libaubio5 library

Install Dependencies

  1. Replace all jessie word in /etc/apt/sources.list with stretch and execute the following:

    # apt-get update
    # apt-get install libc++6
    
  2. Command out "deb http://httpredir.debian.org/debian/ stretch main contrib non-free" in /etc/apt/sources.list and use "deb http://httpredir.debian.org/debian/ buster main contrib non-free" instead.

    The difference is the replacement of stretch with buster.

    After replacing the main repo URL, execute the following:

    # apt-get update
    # apt-get install libaubio5 libaubio-dev
    
  3. After installing libsubio5 and libaubio-dev, re-enable the stretch apt-get repo and comment out the buster one.

Initial Setup for Budiling an executable

  1. To install XBox controller driver, execute the script script/joystick_script.

    Executing permission is required. Acquire the permission by command chmod +x joystick_script.

  2. Enable the I2C in the BeagleBone by executing echo BB-I2C1 > sys/devices/platform/bone_capemgr/slots.

  3. Run the executable miku.

Building an executable

  1. Reboot the BeagleBone after finishing Intial Setup.

  2. Change directory to the root folder and then run the Makefile with command make.

    With default settings, make will use arm-linux-gnueabihf-g++ and arm-linux-gnueabihf-gcc to cross compile. If cross compilation is not required, run the Makefile with make CROSS_TOOL=, which erases the cross tool prefix before g++ and gcc.

  3. The executable will be generated and located in ~/cmpt433/public/myApps/miku.

Author

See contributor page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •