Skip to content

shashank78456/GuitarControlledKeyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Symphony

Symphony is a program which can be used to control your machine using any musical instrument or (literally anything that creates distinct musical notes) (or use certain keys on the keyboard using musical instruments). It makes your instrument learning experience more creative and fun and Gaming Control is really awesome and builds and improves your muscle memory!

We have used a Guitar in our project but any musical instrument which can produce different notes can be used.

Requirements

python3 and its libraries and modules:

  1. sounddevice
  2. struct
  3. math
  4. numpy
  5. scipy
  6. wave
  7. pyautogui
  8. os
  9. sys
  10. pygame

Instructions

Make sure you have the requirements installed.

  1. use git clone or download the zip file
  2. execute the main.py file
  3. The notes C,D,E,F,G,A,B on Octaves 3 to 7 have been assigned keyboard keys as follows:
    • C: "UP"
    • D: "DOWN"
    • E: "LEFT"
    • F: "RIGHT"
    • G: "SPACE"
    • A: "ENTER"
    • B: "EXIT"
  4. Play the instrument and let our program do its wonders for you!!

Working

  • The program records audio on regular intervals and stores it on a .wav file.
  • It then read the file and constructs a bit array. This is where analog sound wave is 'digitalised'.
  • It performs fourier transform on the array and calculates the dominating frequency in that audio data set.
  • It then checks the frequency and performs the keyboard action.
  • We have also implemented UI through pygame for the ease of the user.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages