Solved

Midi

Posted on 2002-05-23
5
295 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
ID: 7030021
Listening...
0
 
LVL 20

Expert Comment

by:hes
ID: 7030030
0
 
LVL 3

Expert Comment

by:SirNick
ID: 7030345
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
ID: 7030985
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
ID: 7032493
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Prevent checkbox click event occur while editing it in vb6 8 63
Protecting vb6 & .Net code Obfuscation 18 181
TT Auto Dashboard 13 100
VBA: loop recent folder and copy txt file. 8 49
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

685 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