Create A Sine Wave Generator?
Feb 3, 2009how to create a sine wave generator in vb.net
View 2 Replieshow to create a sine wave generator in vb.net
View 2 RepliesCould someone describe the way by which i could generate a sine wave sound with a certain frequency?
View 5 Replies[URL]..I wrote a program with a timer set to tick every 100 ms. The values oscillate between 109 and 110 ms. Each tick, a variable adds +1 to itself; it starts at 0 and goes to 9 and then it goes back to 0 where it continues the addition process. When the timer ticks 110, the variables is added to a textbox. The pattern is something like this, which you can see in the above youtube video. 5 9 5 9 5 9 4 8 4 8 4 8 3 7 3 7 3 7 etc.
[Code]...
I have recently completed a project using VB.NET 2008 express edition. Now I have to create a Product Key Generator for which I have no clue how that works. I wanna do it in such a way that the product can't run without the valid key and the key can only be used for one copy of the product. Also if possible how do we generate a Unique Product ID?
View 3 RepliesI'm trying to create a Lotto Number Generator.
My Form has a 3 numeric up down's 2 for the Range "Min & Max" 1 for the Nuber of Numbers that are supposed to be displayed in my TextBox "Mumber" 1 TextBox"tbNumbers" 2 Buttons The first just generates a single Number in the Range.
Dim SingleNumber As New Random
Dim NumberRange As Integer = SingleNumber.Next(CInt(Min.Value), CInt(Max.Value))
tbNumbers.Text = NumberRange.ToString
[Code].....
I need to create a random number genrator to generate a membership number when i open my sign up form. i need it to be shown in a text box.
View 9 RepliesI'm trying to create a random name generator, and in order to store all the names I'm using an SQL database. I've got the database set up (simple version just until I get it working) and here's basically what I want the program to do. My database consists of three main fields: Name, Gender, and Origin (along with corresponding ID's). I want the user to be able to use a drop down combo box to select the gender (m or f) and the origin (i.e. English, German, Chinese, etc.), have the program filter out any data not within these parameters, randomly choose one of the remaining names, and display it on the form in a label. I'm not quite sure how to get the combo boxes linked to the data set so that, when running, the chosen item filters the data.
View 3 Repliesi would like to create a password generator however i have a 2 text box aplication the top one is where the person types their e-mail address then select generate. the program must then use that address to generate a unique password only for that person if another email address is inserted in the top text box a total different password should be generated.
View 5 RepliesI've been trying to create a random brush color generator, Something like this code (it creates random colors...)
vb.net
Dim rnd As New RandomDim newColor As New ColornewColor = Color.FromArgb(rnd.Next(0, 255), rnd.Next(0, 255), rnd.Next(0, 255), rnd.Next(0, 255))
How to write a simple sin graph for my calculator? I need , when I'll press the button, to show this graphic.
Private Sub btnsin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsin.Click
For i = 0 To 100
[Code]......
I am making a program to deal with sine/cosine functions
If rdbsideA.Checked = True Then
Do While AngleB > 0
SideA = (SideB * Math.Sin(txtAngleA.Text)) / Math.Sin(AngleB)
Loop
MsgBox("The Length of Side A is ", SideA)
End If
That is if the user seleects to find side a. When the messagebox pops up, it doesnt state the previous calculation, why is that?
I am trying to create a Random Number Generator (dice roller) that will dump its results into an open chat window. I was lead towards using DDE but have never used it before. Is this the best method? if not, What is?
View 1 Repliesi wanted to create a random number generator that iterates through a series of number between an upper and lower bound. say between 1 and 100. Basically I want the number generator to pick the numbers randomly and then display them until all 100 numbers are picked without any duplicates. so thats easy I can code that. But what I don't know is how to show those numbers in the order they are generated on a windows form. So i have basically a variable that I will let be changed 100 times (or however many times I want, I don't want their to be a size constraint just using 100 as an example) and each time the number is generated I want it displayed on screen (in a list or something not sure what. Hopefully some type of scrollable list) and each successive number also to be displayed in same format beneath it so that I can see the list in its entirety. What type of form control do i use for that? I could do messagebox.show for each iteration but then user is required to hit ok after each iteration and that would obviously be a bad idea if user selected a large number to work through. Anyways, code isn't exactly necessary just point me in the right direction, i.e.what control (if any) to use.how to format the change in data?
View 7 RepliesI am trying to convert a mp3 to wav and I need to know...What is the very first thing you see when you open a wave file up? the 2nd, the 3rd, 4th and so on. Is it the riff header or the riff header contents(ID, size, Type). I need this info for a Regex string that would look something like this...
'Frame/MaxFrame (PercentDone%) | CPU time/estim | REAL time/estim | play/CPU | ETA
Private Shared _regLine As Regex = New Regex( _
"(d+)/(d+)D+(d+)D+([d:]+)D+([d:]+)D+([d:]+)D+([d:]+)D+([d.]+)D+([d:]+)"
[code]....
I am executing lame.exe from a process.Start command.VB 6.0, VBExprss, ASP,Net, & Gaming
Cannot gen. the correct wave values?
View 2 RepliesI want to make an application that can control the general volume of my pc. I have been using waveOutGetVolume and waveOutSetVolume properly. But that only changed the volume of my own appliation in the mixer.[code]...
View 1 Replieshow to get the wave file information in vb.net like frequency,no of channels etc from wave file
View 3 RepliesSo, I re did my project in VB.NEt instead of C#. So, I put all the sound files in the resource files. I made a routine to play the sound file but it says that to make sure the sound file exists. Which it does because it played in the resource manager.Here's the sub routine to play the sound:
Dim sndplayer As New Media.SoundPlayer
Public Sub TestSound(ByVal snd As String)
My.Computer.Audio.Play(snd)
[code].....
i'm needing a control, or a way to show the wave forms from wav file.
View 1 Repliesi have a 2 dimensional array with beep codes, first column is frequency and second column is duration. i can save and open the data to a text file, which looks like this:
[Code]...
my program can play them just fine, but i would like to save them to a .wav file so any audio program can read them, i'm using VB.net Express 2008
Iam working in a project need converting a wave file to binary..converting a file of such format(wave) to binary text in asp.net? I need that cause i want to cut the original file to many files, and add additional parts of the same type to them and combine them together in a one file again..
View 2 RepliesI need to draw a'wave form' in a panel inVB.net, the wave form will be updated once every one second. the problem is the screen blinking whenever it is updated. how can I solve this problem? the paint event code as below.
[code]...
how to draw a waveform represenatation of a wave a wavefile and/or an MP3? Even better, can it be drawn in real-time while the file is playng?
View 8 RepliesI am trying to figure out the numSamples in this:The canonical WAVE format starts with the RIFF header:
0 4 ChunkID Contains the letters "RIFF" in ASCII form
(0x52494646 big-endian form).
4 4 ChunkSize 36 + SubChunk2Size, or more precisely:
[code]....
This works fine for getting the wave file info, It just doesn't display the numSamples which I need.
how do i convert text to wave from vb.net in speech sdk
View 4 Repliesi need to design a flag, that seems to wave as it is viewed, on a website. can i do this with VB.NET?
View 6 RepliesI want to show the wave with music or frequency of voice in visual basics.
link of the example in VB.Net that i want is below: [URL]
I'm trying to write a virtual piano program. Each key plays a sound from the resources directory.How do i play two(or more) sounds at the same time if ex two keys are pressed. Or start playing another sound while one is still playing.
View 2 RepliesI have used DirectSound to play a wave file in my application using the function CreateSoundBufferFromFile. It works perfectly.Now I want to play files from a resource dll file. I have created 1n2v32.dll file having nearly 100 small wave files named 1,2,3... I can play them using LoadLibraryEx, PlaySound & FreeLibrary.Now, I am trying to use CreateSoundBufferFromResource function from DirectSound api to play these files. I get Run-time error '432': File name or class name not found during Automation operation I used the following code to create the buffer.
Set LDSB = LDS.CreateSoundBufferFromResource(App.Path & "1n2v32.dll", "14", BufferDesc, gw)
Firstly, I'm a Chinese Beginner of Visual Basic. I try my best to express my worries and demands. If anything is vague, I want to design a program like this: when clicking the button, the computer will play certain sound. Like this:(VB 2010) Private Sub con_sndplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles PLAY.Click
View 3 Replies