Author Topic: BASS_CDG  (Read 51009 times)

ne0ge0

  • Posts: 24
Re: BASS_CDG
« Reply #25 on: 24 Oct '10 - 10:19 »
Hi Sharky,

I've tried the new dll using the demo that you created.

I like the anti-aliasing around the edges, but is there any way to improve the jerkiness.

I'm using the free player from Karafun as a benchmark.

http://www.karafun.com/karaokeplayer/

Thanks again,

ne0ge0

Ionut Cristea

  • Posts: 1559
Re: BASS_CDG
« Reply #26 on: 24 Oct '10 - 10:23 »
Quote
Hi Sharky,

I've tried the new dll using the demo that you created.

I like the anti-aliasing around the edges, but is there any way to improve the jerkiness.

I'm using the free player from Karafun as a benchmark.

http://www.karafun.com/karaokeplayer/

Thanks again,

ne0ge0

 Hello,

can you make some shots of how do you want to be rendered? Thanks.

ne0ge0

  • Posts: 24
Re: BASS_CDG
« Reply #27 on: 25 Oct '10 - 11:34 »
Hi Sharky,

Apologies, I'm probably not being very clear.

It renders fine, now even better with the smoothing, but it's still quite jerky compared to Karafun, expecially when displaying full screen.

ne0ge0

victor

  • Posts: 137
Re: BASS_CDG
« Reply #28 on: 25 Oct '10 - 13:04 »
custom draw doesn't work anymore: access violation calling BASS_CDG_GetCurrentBitmap.

Ionut Cristea

  • Posts: 1559
Re: BASS_CDG
« Reply #29 on: 25 Oct '10 - 13:25 »
  Please try with this update:

http://surodev.com/downloads/BASS_CDG.dll

ne0ge0

  • Posts: 24
Re: BASS_CDG
« Reply #30 on: 26 Oct '10 - 08:24 »
Was this update for victor?

Ionut Cristea

  • Posts: 1559
Re: BASS_CDG
« Reply #31 on: 26 Oct '10 - 08:29 »
 
Quote
Was this update for victor?

  Yes

victor

  • Posts: 137
Re: BASS_CDG
« Reply #32 on: 26 Oct '10 - 11:00 »
thnx Sharky, it works now.
But the custom draw example is using a lot of CPU.
Would it be posible to make a querry if the bitmap changed from the previous one?
Could you make the anti-aliasing switchable (non custom draw)?

Ionut Cristea

  • Posts: 1559
Re: BASS_CDG
« Reply #33 on: 26 Oct '10 - 11:20 »
 
Quote
thnx Sharky, it works now.
But the custom draw example is using a lot of CPU.
Would it be posible to make a querry if the bitmap changed from the previous one?
Could you make the anti-aliasing switchable (non custom draw)?

  The custom draw example is using a lot of CPU because is using GDI for Drawing. You can modify it and use for example the D3D or OpenGL.

Quote
Could you make the anti-aliasing switchable (non custom draw)

Explain a little please.

victor

  • Posts: 137
Re: BASS_CDG
« Reply #34 on: 27 Oct '10 - 10:47 »
so that it's a switch like one sets the custom draw on.
maybe i don't like the anti-aliasing and don't want it switched on.

Ron Schuler

  • Guest
Re: BASS_CDG
« Reply #35 on: 2 Nov '10 - 01:25 »
The best way to make CDG rendering faster is to optimize the multidimensional array to bitmap routine.
D3D and openGL did not help since the bitmap had to be created before it could be painted on a surface.
As far as the code project source, I ported a c++ library found on google code to .Net and added an Object based interface to allow easy use. I have since optimized it, but have not published it. I have also made .NET classes for "BASS File objects" like .Kar and .Mp3. The BassKar class has a similar interface to the CDG library with Export to MP3 with soundfont, render graphic at position, pitch correction, etc.
If someone uses the code and claims it as their own, it doesn't matter.
Since I write a lot of open source derivative works, it is only fair to give the software away for free.
The author here is giving it away, so that is really what is important.
Take time to thank people for publishing libraries for other developers.
It saved you from the low level research necessary to do the needed tasks.

ne0ge0

  • Posts: 24
Re: BASS_CDG
« Reply #36 on: 2 Nov '10 - 10:07 »
Hi Ron,

Thanks for all of the work you have put in so far.

Can you post a demo of your optimised project?

What .Net language did you port to?

Thanks again,

ne0ge0

OldUser

  • Guest
Re: BASS_CDG
« Reply #37 on: 2 Nov '10 - 12:30 »
@Ron Schuler
Quote
it is only fair to give the software away for free.
Correct!

i have a  problem with the Donation button.
used source of other people and will have money.

Ionut Cristea

  • Posts: 1559
Re: BASS_CDG
« Reply #38 on: 2 Nov '10 - 15:21 »
   
Quote
Correct!

i have a  problem with the Donation button.
used source of other people and will have money.


 Button removed:D

OldUser

  • Guest
Re: BASS_CDG
« Reply #39 on: 2 Nov '10 - 18:38 »
Quote
Button removed:D
Thank you..

And now i will say Thanks for all your great work here.

davidpn

  • Posts: 6
Re: BASS_CDG
« Reply #40 on: 18 Nov '10 - 06:12 »
I'm using the latest BASS_CDG (2.4.0.1) in conjunction with BASS_FX, and at the end of the track, my application crashes.

I've gone back to using the CDG demo code in case there was something I had introduced that was causing the problem, however it still crashes. From the demo code:

procedure TForm2.Button1Click(Sender: TObject);
begin
  if chan<>0 then
  begin
    BASS_StreamFree(Chan);
    chan:=0;
  end;
  // Note: Added BASS_STREAM_DECODE flag in order to use BASS_FX
  if Opendialog1.Execute(handle) then
    Chan := BASS_StreamCreateFile(False, PChar(OpenDialog1.FileName), 0, 0, BASS_UNICODE or BASS_STREAM_DECODE);
  if (chan=0) then
    Exit;
  Scrollbar1.Max := Round(BASS_ChannelBytes2Seconds(chan, BASS_ChannelGetLength(chan, BASS_POS_BYTE)));
  BASS_CDG_SetVideoWindow(Chan, Panel1.Handle);

  // BASS_FX call to introduce tempo effects:
  Chan := BASS_FX_TempoCreate(Chan, BASS_FX_FREESOURCE);

  BASS_ChannelPlay(Chan, False);
end;

I'm using Delphi 2010.

Thanks in advance

Astro29

  • Posts: 180
Re: BASS_CDG
« Reply #41 on: 18 Jan '11 - 13:00 »
Original source and information to the Author here
http://www.codeproject.com/KB/audio-video/karaokedotnet.aspx

written in Vb.NET with Bass and BassFx
Author Ron Schuler

greets

this is a sentence taken directly from that link you posted:

"One thing led to another, and I started porting over some C++ code that I found on Google Code."

fishbox

  • Posts: 13
Re: BASS_CDG
« Reply #42 on: 19 Jan '11 - 16:35 »
Very interested in this addon. Has it been implemented in BASS .Net yet?

Here's a pretty please with eyelashes batting request for it.

 :D

radio42

  • Posts: 4770
Re: BASS_CDG
« Reply #43 on: 20 Jan '11 - 07:15 »
I haven't looked at it now.
But as it is a plugin you should already today be able to use it via "BASS_PluginLoad" - as then there should be no extra code needed.

ne0ge0

  • Posts: 24
Re: BASS_CDG
« Reply #44 on: 20 Jan '11 - 08:46 »
How would you call BASS_CDG_SetVideoWindow() in C# if the Bass.Net dll doesn't know about it?

ne0ge0

radio42

  • Posts: 4770
Re: BASS_CDG
« Reply #45 on: 28 Jan '11 - 17:08 »
You can download a pre-version of Bass.Net here, which includes support for BASS_CDG:

www.un4seen.com/filez/4/Bass24.Net_pre.zip

victor

  • Posts: 137
Re: BASS_CDG
« Reply #46 on: 9 Feb '11 - 15:58 »
when using your user draw demo, while playing a cdg file, the windows task manager shows the GDI object counter constantly rising. After a while this counter gets to 9999 and the application crashes.
Please advise.

PS. the BASS_CDG has disappeared from your site. Is that meaning no further support for BASS_CDG?

Ionut Cristea

  • Posts: 1559
Re: BASS_CDG
« Reply #47 on: 4 Mar '11 - 09:13 »
Quote
when using your user draw demo, while playing a cdg file, the windows task manager shows the GDI object counter constantly rising. After a while this counter gets to 9999 and the application crashes.
Please advise.

PS. the BASS_CDG has disappeared from your site. Is that meaning no further support for BASS_CDG?


Please try with this update:

http://surodev.com/downloads/BASS_CDG.zip

-fixed the GDI bug
-fixed some bugs when handling UNICODE windows
-and some improvements

BASS_CDG it will be supported always, it wasn't removed from my website
http://surodev.com/?p=42

Best regards,
Ionut

fishbox

  • Posts: 13
Re: BASS_CDG
« Reply #48 on: 23 May '11 - 19:24 »
Does the latest version of BASS .NET have this in release form yet or still pre-release? If the BASS_CDG gets updated, will it require the BASS .NET to be updated as well?

Thanks and still VERY VERY interested in this plug. Thanks for all the hard work guys!

Ionut Cristea

  • Posts: 1559
Re: BASS_CDG
« Reply #49 on: 24 May '11 - 05:58 »
  As far as i know BASS.NET have the latest BASS_CDG. And yes, if i will update the BASS_CDG(change/add new functions), the BASS.NET will have to be updated too.