Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to write an application where you can play guitar and learn scales. How can I capture what a player plays on the fretboard? is there any C++ library I could implement? I know of some lib to capture sound form Microphone, but I also want to let people connect their guitars to USB. thank you

What I have tried:

I didn't try anything since I don't know yet. I tried to google.
Posted
Updated 2-Aug-20 19:27pm
v2
Comments
Dave Kreskowiak 2-Aug-20 15:47pm    
It's not possible to answer this question until you get a USB device and find out how the device exposes itself at the application level to any application code.

The best place to ask would be the manufacturer of the device.

RockSmith provides a sound cable.

(Guitar needs a pickup and output jack; i.e. an "electrified" guitar).

Buy Rocksmith® - On Xbox One, PlayStation®4, Xbox 360, PlayStation®3, & PC/MAC | Ubisoft® (US)[^]
 
Share this answer
 
v2
1. Short Version

Maybe some aux to usb device will do the job for you. This does the job of converting the sound for the computer.

2. Extended Version

Read the Microsoft Audio Devices Design Guide for an introduction. I guess some implementation as audio driver is what you want.

When you connect your guitar (as own USB-device) to a computer you will need to provide a driver, so Windows knows how to deal with the incoming data. This includes the driver binary and some setup files. You will find templates from which to start is recommended but for that but you have to develop and test both projects.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900