Solved

Midi

Posted on 2002-05-23
5
288 Views
Last Modified: 2010-05-02
I want to write a midi keyboard program in VB. Basically, I want my program works as an electronic piano. My problem is how to control your sound card, so that it can generate different sound effect. Would DirectSound be an option? or is there any Active X control or Dll can do that? Help me!!!!!!!!
0
Comment
Question by:chefPeter
5 Comments
 
LVL 4

Expert Comment

by:gencross
Comment Utility
Listening...
0
 
LVL 20

Expert Comment

by:hes
Comment Utility
0
 
LVL 3

Expert Comment

by:SirNick
Comment Utility
Hi chefPeter

I made a simple program roughly the same as what you are trying to do.  I plugged my brothers yamaha keyboard into my soundcard and recorded a number of .wav files and then just called them when a key was pressed.  Altogether I think that the program was about 2.5mb in size.
0
 
LVL 8

Accepted Solution

by:
glass_cookie earned 80 total points
Comment Utility
Hi!

Here's a small example for you over the net:

Download...
http://www.planetsourcecode.com/vb/scripts/ShowZip.asp?lngWId=1&lngCodeId=9778&strZipAccessCode=ODE%5F97789971
Description: Piano is a Visual basic Piano (Duh) included with 127 Tunes. Of Course You Can only use your mouse to play the piano, but if anyone wants to add keyboard playing support they can. if you like this code please vote for me!

Well, you would have to use the keydown or keypress event to trap keyboard keys so as to play the sounds : )

Hope this helps!

That's ti!

glass cookie : )
0
 

Author Comment

by:chefPeter
Comment Utility
Hi hes,

You program is very impressive. However, I don't understand the technical you used in the application.
Can you give me some more explaination? Such as what is midi mapper. What does all those API functions do? Thanks.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now