Solved

Delphi Sound Input

Posted on 1997-10-05
9
220 Views
Last Modified: 2010-04-04
I want to be able to write a guitar tuner.  I have sussed out low level wav playback but not input.  I want to be able to alter a visual component using the data coming in from the input.  I don't need to save the sound to a file.  Even being able to alter a visual component from a wav being played would help - I just can't find a way of tapping into the data as it is being played.  Ultimately I would like to get a frequency analyser working.

I have been asked which port - well line in and mic in, the most important being mic in.  It would be nice to give those with an electric guitar the chance to plug straignt into the soundcard.  What I have been trying to do is to input a wav file and then read the wav data but if I could get at the raw data then all the better!

In response to Mirek - no I don't want wav to midi conversion, that would be hard!  All I want is to be able to change a display (meter needle) in sympathy with sound input.  I have had an idea of writing a component that has an event in it that is triggered by the sound buffers but I can't find a windows message to do it!  Thanks for the replies - keep them coming!
0
Comment
Question by:welbourn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1346853
Input from which port?
0
 

Author Comment

by:welbourn
ID: 1346854
Edited text of question
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1346855
Do you need convert wav to midi notation ? I think so this is very hard, but you can try play with Fourier transformation.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:welbourn
ID: 1346856
Edited text of question
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1346857
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1346858
Hi welbourn,
I was just reading the last edition of UNDU, and I think it's also whortwhile for you to look at it. There is an article about recording and playing wav files. It's very interesting.
You can find this edition on http://www.informant.com/undu
Nice reading pleasure!
c.u. ZifNab

0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1346859
Hi,
Give me a comment if this is what you wanted!
I'd like to have some feedback
0
 

Author Comment

by:welbourn
ID: 1346860
Thanks ZifNab - by the way the name is Rob, the info looks great thanks for your dilligence.  I will look at this over the weekend.  It's weird I had found the relisoft page, the only place on the net that seems to have dealt with this issue and I was just starting the process of creating delphi code for it.  The page you directed me to has already done this - cheers.  I need this info as a basis for my final year uni project and I was therefore getting quite desperate for it.  How do we close this question and award point etc, let me know.


0
 
LVL 8

Accepted Solution

by:
ZifNab earned 200 total points
ID: 1346861
Hi Rob,

To close this question, somebody has to answer this, like now. Then you can grade the answer or you can reject it. I write the last comment again, so your question is answered :

was just reading the last edition of UNDU, and I think it's also whortwhile for you to look at it. There is an article about recording and playing wav files. It's very interesting.
You can find this edition on http://www.informant.com/undu 

Nice reading pleasure! Good luck with your uni project!
c.u. Tom
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi - replicating a form 8 92
Wincontrol not (correctly) drawn 15 48
Microsoft Access 97 and Delphi XE2 9 73
Delphi Seattle StructureView color 1 21
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

733 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