Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Sound Frequency Genration


Sound Frequency Genration

Author
Message
jignesh142
jignesh142
Supreme Being
Supreme Being (233 reputation)Supreme Being (233 reputation)Supreme Being (233 reputation)Supreme Being (233 reputation)Supreme Being (233 reputation)Supreme Being (233 reputation)Supreme Being (233 reputation)Supreme Being (233 reputation)Supreme Being (233 reputation)

Group: Forum Members
Posts: 1, Visits: 3
I want to generate the sine wave sound for particular frequency and particular duration

My Code is like this





Option Explicit

Option Base 1

Private Sub CommandButton1_Click()

Dim Sc(3) as integer

Dim Frequency=440

Dim Duration = 1000 ' in millisecond

Sc(1)=1

Sc(2)=1.125

Sc(3)=1.2



For i = 1 to 3

' some code is required to play the sound for above frequency and duration in which frequency=440*Sc(i)



next i





End Sub
Edited
6/25/2012 by jignesh142
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search