Git Product home page Git Product logo

opengl-instrument-machine's Introduction

Instrument Machine

December 13th, 2021

This project is a beat pad that plays several variations of two songs of two genres, House and Hip Hop. Their specs to be used in the graphical portion of the project are a product of their superclass, Genre. When the user starts the program, they are able to choose to enter three windows, one with House music buttons, one with Hip Hop, and a random sound button (just for fun).

To run this program, you should make sure you have all the necessary libraries and modules installed for both Python and C++. There's a chance you don't have the following installed:

#C++: <time.h>

#Python: time, pygame, mixer, sys, playsound

If this is the case, simply enter "pip3 install ___" and the subsequent module/library in your terminal.

Now, once the program is launched, mess around! The Genre implementations take keyboard input for the sound playback. Notice the difference based on the graphical structure of them. One plays isolated instruments, one plays portions of a track, and one plays the entire track, start to finish.

For the random button generator, just press the space bar and see if you can hear all the different possibilities.

It's possible the mp3 files will not want to load - they are all located in the cmake-build-debug folder - try moving them to the general project folder and back if that is the case - I resolved this issue by reformatting the files, but there's a chance it acts up again, and in that case, this solution worked for me.

Have fun with it!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.