A mini project

Kondamuri Shivani
Kondamuri Shivani used Ask the Experts™
Can we make our keyboard into a mini piano by using c language
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018
With the correct electronic interface, you can convert any analog signal to digital or any language (including C) to a signal.

Depending on which direction you're going (your question is unclear).

You require a DAC (Digital to Analog Convertor) or ADC (Analog to Digital Convertor), the write your C code to interact with the DAC or ADC registers to either effect your piano or read effects (high down/velocity/etc) from you piano.
Senior Developer
Take a look at NAudio for sound synthesis.
Given a PC or laptop keyboard I do not see any solutions where you hit an alphanumeric key and you generate a note sound. Recommend deletion.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial