Solved

Delphi Sound Input

Posted on 1997-10-05
9
217 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
  • 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to fill array with TArray.Create? 14 90
Path  to current project in Delphi. 2 79
Correct Component for Shopping Cart. 2 105
FMX and jaudiotracker playing memory stream 29 78
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 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