20 May '13 - 01:19 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  Developments / BASS / Re: Bass.NET splash send main form to back on: 29 Apr '13 - 16:27
you should register anyway, after all



 Tongue

On a more serious note, have you tried the BringToFront() function? I don't know if there's a way of checking whether the splash screen is still being shown or not, but you could have a timer in your app that ticks after, say, 2 or 3 seconds (dunno how long the splash lasts exactly) calling that function and then stopping. It's not the most elegant of solutions but it should do the trick while the behaviour of the splash is changed Smiley
ReplyReply Reply with quoteQuote
2  Developments / BASS / Re: problem with spectrum in version 2.4.9.1 on: 22 Feb '13 - 18:25
The new visualisation behaviour and the new properties are part of a fix for a bug that was present in previous versions of BASS.NET, specifically:

http://www.un4seen.com/forum/?topic=13871.msg96685#msg96685

In order to get the visualisation to work like it did pre-2.4.9.1 you have to modify the new properties according to the visualisation you'll use and the size of the picturebox you're dumping the visualisation image to.

If you want you can check out the code for an application I develop, just do a search for "drawing.scale" and your browser should point you to the bit of code I talk about.

https://github.com/ViRUS2012/DIRadio/blob/master/DI%20Radio/DI%20Radio/Player.vb
ReplyReply Reply with quoteQuote
3  Developments / BASS / Re: BASS.NET API 2.4.9.1 on: 21 Sep '12 - 04:19
The new update made wonders with the visualisation. I had to poke around with the Boost and Scaling factors to get them to my liking but they seem much more responsive now, and most important, the low frequencies reach the top!  Grin
ReplyReply Reply with quoteQuote
4  Developments / BASS / Re: Low frequencies and the Misc.Visuals class (Bass.Net - VB.NET) on: 25 Jul '12 - 14:12
Awesome. Can't wait for the next version!  Wink
ReplyReply Reply with quoteQuote
5  Developments / BASS / Re: Low frequencies and the Misc.Visuals class (Bass.Net - VB.NET) on: 25 Jul '12 - 02:34
I think the fact that not even after using ScaleFactorSqr=10 will make the first bars reach the top (as shown in the image I linked above) is quite an indication that something is wrong.

On the other hand, programming as taught me to always leave room for doubts...
ReplyReply Reply with quoteQuote
6  Developments / BASS / Re: Low frequencies and the Misc.Visuals class (Bass.Net - VB.NET) on: 23 Jul '12 - 07:00
I've downloaded your new attachment and it no longer uses a full core.

I'm testing it on an AMD Phenom II X4 965 BE @ 3.42GHz, 4GB RAM, AMD HD5750.

Although your code is nice and all and it does work well, it simply doesn't apply at all to my problem. As I explained above, I know I can create my own visualisation using the info about the stream provided by Bass.

What I'm saying is that the Misc.Visuals class is bugged and the first three lines (the ones used for low frequencies) simply won't reach the top of the graphic, as I shown by the image linked on my previous post.

I hope I'm now clear enough that what I'd like someone to check it's the fact that what the Misc.Visuals function returns as a visualisation has the peak for low frequencies lowered down compared to the rest of the sound spectrum.
ReplyReply Reply with quoteQuote
7  Developments / BASS / Re: Low frequencies and the Misc.Visuals class (Bass.Net - VB.NET) on: 22 Jul '12 - 17:51
That's nice, but are you using the .CreateSpectrumLine function? Because I don't know how did you do to get that kind of Spectrum just using the default call on Bass.

Just for the record, I do know that I can create my own visualisation using the values about frequencies' peaks that Bass gives but I'd like to avoid doing that since it uses a lot more CPU than I'd like for a simple visualisation (your test, for example, uses a full core on my PC, while the app I'm coding only uses around 5% for a much bigger and fluid representation).
ReplyReply Reply with quoteQuote
8  Developments / BASS / Re: Low frequencies and the Misc.Visuals class (Bass.Net - VB.NET) on: 21 Jul '12 - 20:02
After giving Bass.Net's a more throughout read, I found how to set FFT values, and it didn't make the low freqs go above 50%, but it did throw some interesting results:

http://i.imgur.com/Wsasm.png

I'm linking the image so as not to make the post unnecesarily long.

The fact that not even the ScaleFactor setting made the low frequencies go any higher looks to me as quite a good indication that Bass simply won't draw anything above that point.

Now, this post has a lot of views already. Can anyone please try the Visuals class to check?

ReplyReply Reply with quoteQuote
9  Developments / BASS / Re: Low frequencies and the Misc.Visuals class (Bass.Net - VB.NET) on: 20 Jul '12 - 21:48
I guess the main issue is, that we/you don't know how the 'other player' do represent a graph.
May be they do some filtering or alignment of their visualization - so you can not really compare that.

Yes, indeed, even though it does seem quite strange that all other players (Winamp, foobar2000, WMP) apply some form of correction, we still don't know for a fact so comparing BASS or my code to theirs is quite useless.

Depending on what FFT size you are using, it is quite normal, that the very low and the very high frequency FFT buckets never reach a value of 1.0!
A single FFT bucket represents the energy contained in that frequency band - e.g. for 10Hz.

I guess there is no error in the current display/visualization.

So I should change the FFT size? How would I do that? I had a look at BASS.Net's help but all I could find was Bass.BASS_ChannelGetData, which would tell me which is the FFT size but not how to set it so I'm obviously missing something.

You can try to generate a wave sine file only containing a single frequency and see what is displayed.

I'll try to look into that as well; though I feel more inclined towards the FFT solution.

Sorry if I seem a bit clueless on this post, tbh it's the first time I've dealt with visualisations and FFT sizes and all that!  Undecided
ReplyReply Reply with quoteQuote
10  Developments / BASS / Re: Low frequencies and the Misc.Visuals class (Bass.Net - VB.NET) on: 20 Jul '12 - 04:55
Any ideas? Can anybody at least try to replicate the problem? That way I'd know if it's something with my code or not.
ReplyReply Reply with quoteQuote
11  Developments / BASS / Re: Low frequencies and the Misc.Visuals class (Bass.Net - VB.NET) on: 18 Jul '12 - 05:45
I'm streaming MP3, AAC or WMA (depending on user's choice); but I think it's not that because I've also used Bass.Net with other player I developed, which played MP3 files and the visualisation had the same problem while all other players showed the vis just fine.

Anyway, when I get home I'll try playing a WAV file or some other format to test.
Just got home and tried using a .WAV file that I recorded myself - the vis doesn't go past 50% on the first bar and the second one seems to be stuck at around 80% as well, so it's not the station I'm streaming.

Any ideas?
ReplyReply Reply with quoteQuote
12  Developments / BASS / Low frequencies and the Misc.Visuals class (Bass.Net - VB.NET) on: 17 Jul '12 - 20:11
Hey guys, I'm developing a music player for an online radio and I've noticed that the first lines of the visualisation (the ones representing the lower frequencies) never reach the top. In fact, the first line never goes above 50%.



While I'm almost sure my code isn't the problem, here's how I'm drawing the visualisation:

Declarations:
Public drawing As New Un4seen.Bass.Misc.Visuals
Public Smoothness As Integer
Public MainColour As Integer
Public SecondaryColour As Integer
Public PeakColour As Integer
Public BackgroundColour As Integer

This code is on a Timer (named VisTimer) that gets the image from Bass and drops it on a PictureBox (named VisualisationBox):
VisTimer.Interval = Smoothness

        If Visualisation = True And Me.WindowState = FormWindowState.Normal Then

            Dim SpectrumImage As Image
            SpectrumImage = New Bitmap(VisualisationBox.Width, VisualisationBox.Height)
            Dim SpectrumRectangle As New Rectangle(VisualisationBox.Location.X, VisualisationBox.Location.Y, VisualisationBox.Width, VisualisationBox.Height)

            Using g As Graphics = Graphics.FromImage(SpectrumImage)
                If VisualisationType = 0 Then
                    drawing.CreateSpectrumBean(stream, g, SpectrumRectangle, Color.FromArgb(MainColour), Color.FromArgb(SecondaryColour), Color.FromArgb(BackgroundColour), 5, LinearRepresentation, FullSoundRange, False)
                    VisualisationBox.Image = SpectrumImage

                ElseIf VisualisationType = 1 Then
                    drawing.CreateSpectrumDot(stream, g, SpectrumRectangle, Color.FromArgb(MainColour), Color.FromArgb(SecondaryColour), Color.FromArgb(BackgroundColour), 5, 1, LinearRepresentation, FullSoundRange, False)
                    VisualisationBox.Image = SpectrumImage

                ElseIf VisualisationType = 2 Then
                    drawing.CreateSpectrum(stream, g, SpectrumRectangle, Color.FromArgb(MainColour), Color.FromArgb(SecondaryColour), Color.FromArgb(BackgroundColour), LinearRepresentation, FullSoundRange, False)
                    VisualisationBox.Image = SpectrumImage

                ElseIf VisualisationType = 3 Then
                    drawing.CreateSpectrumEllipse(stream, g, SpectrumRectangle, Color.FromArgb(MainColour), Color.FromArgb(SecondaryColour), Color.FromArgb(BackgroundColour), 3, 1, LinearRepresentation, FullSoundRange, False)
                    VisualisationBox.Image = SpectrumImage

                ElseIf VisualisationType = 4 Then
                    drawing.CreateSpectrumLine(stream, g, SpectrumRectangle, Color.FromArgb(MainColour), Color.FromArgb(SecondaryColour), Color.FromArgb(BackgroundColour), 5, 1, LinearRepresentation, FullSoundRange, False)
                    VisualisationBox.Image = SpectrumImage

                ElseIf VisualisationType = 5 Then
                    drawing.CreateSpectrumLinePeak(stream, g, SpectrumRectangle, Color.FromArgb(MainColour), Color.FromArgb(SecondaryColour), Color.FromArgb(PeakColour), Color.FromArgb(BackgroundColour), 5, 5, 1, 100, LinearRepresentation, FullSoundRange, False)
                    VisualisationBox.Image = SpectrumImage
                ElseIf VisualisationType = 6 Then
                    drawing.CreateSpectrumWave(stream, g, SpectrumRectangle, Color.FromArgb(MainColour), Color.FromArgb(SecondaryColour), Color.FromArgb(BackgroundColour), 5, LinearRepresentation, FullSoundRange, False)
                    VisualisationBox.Image = SpectrumImage

                ElseIf VisualisationType = 7 Then
                    drawing.CreateWaveForm(stream, g, SpectrumRectangle, Color.FromArgb(MainColour), Color.FromArgb(SecondaryColour), Color.FromArgb(BackgroundColour), Color.FromArgb(BackgroundColour), 5, FullSoundRange, False, False)
                    VisualisationBox.Image = SpectrumImage

                End If
            End Using

        Else
            VisTimer.Stop()
        End If

Thanks in advance for any help you provide  Smiley
ReplyReply Reply with quoteQuote
Pages: [1]
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines