Sound From An Array Of Data In Program?
Jun 18, 2010
I'm getting data from an external source, storing it in a single array, and I want to turn it into sound, even though it isn't really sound to start with. I don't know how to build sound from data arrays, but I think it shouldn't be that hard. I am hoping someone can show me the secret.
The data get's read from a 12-bit data acquisition card at fifty mega-samples per second, and it normally contains ten distinct frequencies from about one megahertz to about five megahertz with some overtones. So it's very high-frequency stuff to start with, but it should be possible to to scale it down by, say a factor of a thousand (where humans can hear) then put it through a sound generator through VB, so I can hear it. Also, I don't want to export it as a .wav file first. I just want to format it and package it for the sound player, so I can listen to it live, as I play with the external stuff that affects the sampled waveform going into the card.
So, maybe I'd take a sample of a fraction of a millisecond, scale to a sound format, then output it to my speakers. A frame of 32,000 samples, for example is about 0.64 milliseconds of real time, but I could scale that out into quite a long sound. Ya think?
View 11 Replies
ADVERTISEMENT
Apr 17, 2009
I am trying to build a small program which will allow some one to click on the exit button and the sound will play and at the end of the sound the program will then close. The sound clip is about 3 seconds long Here is what I have:
Imports Microsoft.DirectX
Imports Microsoft.DirectX.DirectSound
Public Class Form1
Private Dsound As CSoundDevice
[code]....
View 14 Replies
Jun 20, 2012
I am trying to make a simple program to put data from a database into a javascript array and then display one result in a textbox.[code]...
View 1 Replies
Jun 28, 2011
Im a newby in creating programs using vb.net. Currently 'm creating an program that will display array data to datagridview. Can somebody help me how to do it?
View 3 Replies
Oct 5, 2010
VS 2008 VB/I've implemented an interface to a .com program written in c++. I'm trying to access a data structure array(uNewValues) of type PLCCOMMLib.ANALOG_CONTIN. uNewValues should be a datastructure array of several elements (iSigIDCount). My problem is I only get the first array element of the datastructure.I've tried several methods and looked into marshalling but don't understand how to implement marshalling if that is the correct option.
Code below:
Public Sub AnalogContinUpdate(ByVal iSigIDCount
As Integer,
ByRef puTimeDateStampGMT As PLCCOMMLib._FILETIME,
ByRef uNewValues As PLCCOMMLib.ANALOG_CONTIN)
[code]....
View 2 Replies
Mar 31, 2010
ok i am making a "game" in visual basic 2008 and I have come across a problem...
I need it to be able to play a sound without saying that the sound is stored at "c: estsound.wav"
I have it working and playing the sound when i want but it only works on my computer
How can i save it into the resources just like you save a picture into resources?
Btw if it helps i am playing the sound using the axwindowsmediaplayer thing and it just plays the sound when the program loads...
so form1load then it plays the sound.
how i can make it play the sound on other computers?
View 1 Replies
Sep 10, 2011
I was wondering if it would be possible to monitor a programs audio output and identify when its on / off? I'm coding a carpc frontend and would like to mute the audio when the navigation program speaks directions.
View 1 Replies
Dec 30, 2008
I'm making a sound editor program, but i've got a problem: if you load a sound, the program must show the spectrum of the sound?
View 2 Replies
Jul 2, 2009
I want to play all sound formats in visual basic
View 1 Replies
May 10, 2009
I wrote a program to have countdown and at 00 to have sound horn. I got the clock running but the horn sound is delayed. I need the time at 00 to sound the horn. I use this in a game of basketball. How can I make the playsound at 00 seconds and not -01 second.
View 2 Replies
Apr 10, 2010
How can I make a program to record sound from the microphone? I've tried lots of thing but they don't work. Can someone show me how to do ths using winmm.dll or DIrectx?
View 4 Replies
Jan 12, 2010
how to make program wich can sound my voice when i push on the button and say something using microphone?
View 1 Replies
Jun 20, 2011
I have a question about of capture sound function, someone have a code example for visual basic 2010 in windows 7?, I tried using mcisendstring function but the sound quality, is poor.
View 5 Replies
Apr 19, 2009
I have background sound loop with the My.Computer.Audio and it works fine. I want to play another sound (like a beep) when desired without stopping the background sound. Several examples I have found don't seem to work. I am in VB.NET 2008 Professional.
View 8 Replies
Aug 24, 2011
I'm ready to start adding sound to a 3D game and I'm looking for a decent Free library.it would not require DX and be something like:
dim MySound as SoundLib.Sound
MySound = SoundLib.LoadSound("soundfile.wav")
SoundLib.Play3DWorld(Location.X, Location.Y, Location.Z, VolumeModifier, MySound)so far all Im finding is expensive, C#, old, or not .NET compatible.
View 9 Replies
Feb 26, 2009
How do you record sound from the normal microphone port onto your program?
View 9 Replies
Dec 7, 2011
Is there a way that I can record sound, and save it in the program so that it can be replayed?I'm making an alarm clock program, and I thought it would be cool if the user could record his/her own audio, and have it play back for him/her.
View 1 Replies
Aug 14, 2009
im making a techno progam in visual basic 2008 and after 3 hour im think how to save the sound they make and catshing a sound recorder but what the code im try to find on internet but find 0 pleas give me the code im try to find
View 1 Replies
Jul 21, 2011
I'm creating an application that will have 3 streams of audio. I can get 2 streams playing easy enough using DirectX AudioVideoPlayback and setting the balance for each Audio Instance. However, I need a 3rd Audio instance to play out of another output such as the Rear or Centre. An alternative would be to be able to select a different sound device in the machine to play the 3rd audio stream.
[Code]...
View 1 Replies
Apr 27, 2011
Is there a way to get Visual.net to display the sound coming in the microphone as a graph on the screen? for example it would show the frequency and intensity of the waves.
View 2 Replies
Mar 10, 2009
I want to write a program in vb.net that measures the frequency of sound inputted from microphone. What kind of ideas can you offer
View 1 Replies
Apr 15, 2010
I need to get the decibel level of sound being sent to the sound card (not the actual sound level the speakers are instructed to emit via volume level)There is next to no information i can find on the net to even access sound data. Could anyone point me in a direction for this? The OS will be vista/7.
View 2 Replies
Jul 21, 2011
I'm creating an application that will have 3 streams of audio.I can get 2 streams playing easy enough using DirectX AudioVideoPlayback and setting the balance for each Audio Instance.However, I need a 3rd Audio instance to play out of another output such as the Rear or Centre.An alternative would be to be able to select a different sound device in the machine to play the 3rd audio stream.I've been searching the net for 2 days now trying to find a solution, but have so far been unsuccessful. I've tried a few alternative libs such as DirectShow.Net, DirectSound, BASS.Net, QuickTime and OpenTK.Some of them do what I need to do, but they are either too difficult to use and therefore impractical or they are missing some other essential features such as Events which are required to make the rest of the application work. Would anyone oppose to me posting this same thread on other forums?I will of course post a solution if one is found elsewhere without advertising external websites.
View 4 Replies
Jul 5, 2009
How can I play a sound based on waveform data that my .Net program is generating from user input and mathematical functions? By "waveform data" I am mean SPL values in a fixed interval time-series (probably 44.1 kHz). I presume that this requires some kind of streaming buffer arrangement.Note, that this has to be live/real-time, so just creating a .wav file and then playing that will not be sufficient. VB.net is preferred, but C# is acceptable also.
View 4 Replies
May 27, 2011
Is there a way to generate a pure tone (e.g. 440 Hz) for a specified period of time through the sound card without using having to find or make a separate .wav file for each tone.I tried using the "Beep" function, but while it produces the tone for a specified period, it sounds broken up into a (probably 500ms) time frame which repeats with an audible space between the repetitions.
View 2 Replies
Dec 18, 2011
how to record sound from sound card ?
View 1 Replies
Jun 27, 2011
i have windows app i want to disable the sound card and enable the sound card by using command button
View 2 Replies
Jun 19, 2009
I'm trying to sort an array based on a structure but whenever I do this, it basically erases all the data in the entire array.I have verified that the array is populated correctly, it is when using array.sort that everything returns blank.
View 6 Replies
Sep 9, 2010
I want to reading in a excel file and extract the sCodenumber sDescription ans the sStatus and store them in a array : StatusComposeArray(5200) As MyCompose. After this I need this array for comparing outside this class. But as can you see the array is defined inside the sub: ReadingIn_ExcelFilesCompose [Code]
View 2 Replies
Jul 13, 2010
i have an array contains a-z.Then i have a textbox and when click on the button, it will replace the text inside the textbox to the index number of the array.Example, from "abc" will become "0 1 2" The code below do the job.how to do so that i can replace the text inside the textbox from "0 1 2" back to "abc" based on the array?
Dim txtKey As String = readKeyTxt.Text
readKeyTxt.Text = ""
For Each b As String In txtKey[code].....
View 2 Replies