![]()

|
|
Visual Basic Quellcode |
1 |
Imports Un4seen.Bass
|
|
|
Visual Basic Quellcode |
1 |
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_CPSPEAKERS, IntPtr.Zero, Nothing) |
|
|
Visual Basic Quellcode |
1 |
Public stream As Integer |
|
|
Visual Basic Quellcode |
1 |
stream = Bass.BASS_StreamCreateFile("*Pfad zur Musikdatei*", 0, 0, BASSFlag.BASS_STREAM_AUTOFREE Or BASSFlag.BASS_STREAM_PRESCAN) |
|
|
Visual Basic Quellcode |
1 |
Bass.BASS_ChannelPlay(stream, False)
|
|
|
Visual Basic Quellcode |
1 |
Dim peak(2) As Single |
|
|
Visual Basic Quellcode |
1 |
Bass.BASS_ChannelGetLevel(stream, peak) |
|
|
Visual Basic Quellcode |
1 2 |
Dim rechts As Integer = (Math.Round(peak(1), 3) * 100) Dim links As Integer = (Math.Round(peak(2), 3) * 100) |

|
|
Visual Basic Quellcode |
1 2 |
ProgressBar1.Value = rechts ProgressBar2.Value = links |
|
|
Visual Basic Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
Imports Un4seen.Bass Public Class Form1 Public stream As Integer Public peak(2) As Single Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_CPSPEAKERS, IntPtr.Zero, Nothing) stream = Bass.BASS_StreamCreateFile("F:\Filme&Musik\Musik\Pink Floyd\Pink Floyd-Brick the Wall.mp3", 0, 0, BASSFlag.BASS_STREAM_AUTOFREE Or BASSFlag.BASS_STREAM_PRESCAN) Bass.BASS_ChannelPlay(stream, False) End Sub Private Sub Peak_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick Bass.BASS_ChannelGetLevel(stream, peak) Dim rechts As Integer = (Math.Round(peak(1), 3) * 100) Dim links As Integer = (Math.Round(peak(2), 3) * 100) Try ProgressBar1.Value = rechts ProgressBar2.Value = links Catch End Try End Sub End Class |

|
|
Visual Basic Quellcode |
1 |
Public Spectrum As New Un4seen.Bass.Misc.Visuals |
|
|
Visual Basic Quellcode |
1 2 |
PictureBox1.Image = Spectrum.CreateSpectrumLine(stream, PictureBox1.Width, PictureBox1.Height, Color.Lime, Color.Red, Color.White, 8, 5, _ False, True, True) |
|
|
Visual Basic Quellcode |
1 2 3 4 5 6 7 |
Dim FFT(2048) As Single Bass.BASS_ChannelGetData(Stream, value, BASSData.BASS_DATA_FFT256) Dim data(128) As Double ' hier noch ein 2. Array damit wir später die richtige Frequenz herausfinden können For i = 0 To 128 data(i) = value(i * 4) Next |

|
|
Visual Basic Quellcode |
1 2 3 |
Dim 125Hz As Integer = (128 * 125 / 44100) Dim Freq as Integer Freq = data(125Hz) |
|
|
Visual Basic Quellcode |
1 2 3 4 5 6 7 8 9 10 11 |
Dim Echo As Integer Dim p As New BASS_DX8_ECHO Echo = Bass.BASS_ChannelSetFX(Stream, BASSFXType.BASS_FX_DX8_ECHO, 0) 'Hier wird der effekt Intialisiert p.fLeftDelay = 333 ' Hier kann man die länge des echos einstellen p.fRightDelay = 333 ' Hier ebenfalls für den rechten Kanal p.fFeedback = 50 p.fWetDryMix = 50 Bass.BASS_FXSetParameters(Echo, p) ' hier wird der effekt Gesetzt |

Dieser Beitrag wurde bereits 11 mal editiert, zuletzt von »Kombrinki« (3. Juni 2010, 16:54) aus folgendem Grund: Update 3.6.2010
Benutzerinformationen überspringen
Dabei seit: 10. Oktober 2009
Wohnort: k
Frühere Benutzernamen: m0nst3rkill3r

Zitat von »"http://forums.macrumors.com/showpost.php?s=9e0078570b2b62fd044cc1b13d212b09&p=4777525&postcount=1064"«
When talking about how apple cannot influence the future of computers, you also forgot to mention that the internet was created on a network of macs to start with. Thats why every online PeeCee has a MAC code. Even my PSP needs a MAC code to get online....
Benutzerinformationen überspringen
Dabei seit: 4. November 2009
Wohnort: Klotten
Frühere Benutzernamen: pasi2009
Benutzerinformationen überspringen
Dabei seit: 4. November 2009
Wohnort: Klotten
Frühere Benutzernamen: pasi2009
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Kombrinki« (29. März 2010, 13:43)
Benutzerinformationen überspringen
Dabei seit: 10. Oktober 2009
Wohnort: k
Frühere Benutzernamen: m0nst3rkill3r
|
|
Visual Basic Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Private Declare Function BASS_Init Lib "bass.dll" (ByVal device As Integer, ByVal freq As UInteger, ByVal flags As UInteger, ByVal win As IntPtr, ByVal clsid As UInteger) As Boolean Private Declare Function BASS_ChannelGetLevel Lib "bass.dll" (ByVal handle As IntPtr, ByVal mode As Single()) As Integer Private Declare Function BASS_ChannelPlay Lib "bass.dll" (ByVal handle As IntPtr, ByVal restart As Boolean) As Boolean Private Declare Function BASS_StreamCreateFile Lib "bass.dll" Alias "BASS_StreamCreateFile" (ByVal mem As Boolean, ByVal file As String, ByVal offset As UInteger, ByVal offsethigh As UInteger, ByVal length As UInteger, ByVal lengthhigh As UInteger, ByVal flags As UInteger) As IntPtr Dim BASS_STREAM_PRESCAN As UInteger = &H20000 Dim BASS_STREAM_AUTOFREE As UInteger = &H40000 Public stream As IntPtr Public peak(2) As Single Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load BASS_Init(-1, 44100, 1024, IntPtr.Zero, Nothing) stream = BASS_StreamCreateFile(False, "\\Home\trekstor (e)\Musik\Auto Auto3\01 - Crash (Album Version).mp3", 0, 0, 0, 0, BASS_STREAM_AUTOFREE Or BASS_STREAM_PRESCAN) BASS_ChannelPlay(stream, True) End Sub |
Zitat von »"http://forums.macrumors.com/showpost.php?s=9e0078570b2b62fd044cc1b13d212b09&p=4777525&postcount=1064"«
When talking about how apple cannot influence the future of computers, you also forgot to mention that the internet was created on a network of macs to start with. Thats why every online PeeCee has a MAC code. Even my PSP needs a MAC code to get online....
Benutzerinformationen überspringen
Dabei seit: 30. November 2008
Wohnort: Attendorn / Sauerland / NRW
|
|
Visual Basic Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
Imports Un4seen.Bass Public Class Form1 Public stream As IntPtr Public peak(2) As Single Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If (Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, Me.Handle)) = False Then MessageBox.Show("Fehler beim Laden der Library") End if End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Bass.BASS_ChannelGetLevel(stream, peak) Dim rechts As Integer = (Math.Round(peak(1), 3) * 100).ToString Dim links As Integer = (Math.Round(peak(2), 3) * 100).ToString Try ProgressBar1.Value = rechts ProgressBar2.Value = links Catch End Try End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then stream = Bass.BASS_StreamCreateFile(OpenFileDialog1.FileName, 0, 0, BASSFlag.BASS_STREAM_AUTOFREE Or BASSFlag.BASS_STREAM_PRESCAN) Bass.BASS_ChannelPlay(stream, True) Timer1.Start() End If End Sub End Class |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Werewolve« (29. März 2010, 15:33)
Benutzerinformationen überspringen
Dabei seit: 10. Oktober 2009
Wohnort: k
Frühere Benutzernamen: m0nst3rkill3r
Zitat von »"http://forums.macrumors.com/showpost.php?s=9e0078570b2b62fd044cc1b13d212b09&p=4777525&postcount=1064"«
When talking about how apple cannot influence the future of computers, you also forgot to mention that the internet was created on a network of macs to start with. Thats why every online PeeCee has a MAC code. Even my PSP needs a MAC code to get online....
|
|
Visual Basic Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Imports Un4seen.Bass Public Class Form1 Public stream As Integer Private Declare Function BASS_Init Lib "bass.dll" (ByVal device As Integer, ByVal freq As UInteger, ByVal flags As UInteger, ByVal win As IntPtr, ByVal clsid As UInteger) As Boolean Private Declare Function BASS_ChannelGetLevel Lib "bass.dll" (ByVal handle As IntPtr, ByVal mode As Single()) As Integer Private Declare Function BASS_ChannelPlay Lib "bass.dll" (ByVal handle As IntPtr, ByVal restart As Boolean) As Boolean Private Declare Function BASS_StreamCreateFile Lib "bass.dll" Alias "BASS_StreamCreateFile" (ByVal mem As Boolean, ByVal file As String, ByVal offset As UInteger, ByVal offsethigh As UInteger, ByVal length As UInteger, ByVal lengthhigh As UInteger, ByVal flags As UInteger) As IntPtr Dim BASS_STREAM_PRESCAN As UInteger = &H20000 Dim BASS_STREAM_AUTOFREE As UInteger = &H40000 Public stream As IntPtr Public peak(2) As Single Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load BASS_Init(-1, 44100, 1024, IntPtr.Zero, Nothing) stream = BASS_StreamCreateFile(False, "My.Resources.techno.mp3", 0, 0, 0, 0, BASS_STREAM_AUTOFREE Or BASS_STREAM_PRESCAN) BASS_ChannelPlay(stream, True) End Sub End Class |
Benutzerinformationen überspringen
Dabei seit: 30. November 2008
Wohnort: Attendorn / Sauerland / NRW
"My.Resources.techno.mp3"
du musst schon einen Pfad auf dem computer angeben sonst klappt das nich hab ich so auch schon ausprobiert |
|
Visual Basic Quellcode |
1 2 |
Dim rechts As Integer = (Math.Round(peak(1), 3) * 100).ToString Dim links As Integer = (Math.Round(peak(2), 3) * 100).ToString |
Benutzerinformationen überspringen
Dabei seit: 10. Oktober 2009
Wohnort: k
Frühere Benutzernamen: m0nst3rkill3r
Zitat von »"http://forums.macrumors.com/showpost.php?s=9e0078570b2b62fd044cc1b13d212b09&p=4777525&postcount=1064"«
When talking about how apple cannot influence the future of computers, you also forgot to mention that the internet was created on a network of macs to start with. Thats why every online PeeCee has a MAC code. Even my PSP needs a MAC code to get online....
Benutzerinformationen überspringen
Dabei seit: 10. Oktober 2009
Wohnort: k
Frühere Benutzernamen: m0nst3rkill3r

Zitat von »"http://forums.macrumors.com/showpost.php?s=9e0078570b2b62fd044cc1b13d212b09&p=4777525&postcount=1064"«
When talking about how apple cannot influence the future of computers, you also forgot to mention that the internet was created on a network of macs to start with. Thats why every online PeeCee has a MAC code. Even my PSP needs a MAC code to get online....
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »mepema« (17. Mai 2010, 19:35) aus folgendem Grund: Problem gelöst!