Jump to content


Photo

BASSMOD Library - Play modules songs in your scripts


  • Please log in to reply
13 replies to this topic

#1 danalec

danalec
  • Members
  • 223 posts

Posted 23 October 2008 - 01:19 PM

[ description ]
BASSMOD for Chiptunes AHK >:D !

It gives AHK power to play XM, IT, S3M, MOD, MTM and UMX soundfiles in-the-fly with a tiny 33.5KB dll.

___
[ information ]
- Official WebSite

___
[ download ]
bassmod.ahk - The library
example.ahk - How to play a file
example2.ahk - No-compressed file, see below
example2.7z - LZMA Extreme Compression
-Notes: the 7z has 123KB, the sourcefile contained has 1.33 MB, audio length: >30min. If you compile it using upx, lzma will reduce it to aprox~ 126KB, leaving the compiled script around 200+126KB

example2 was optmized, specially for new AHK 1.0.48, should load in less than some few seconds, its reported in quadcores it loads in less than 1 second!
the song had more than 30 min than previously expected D:!
the minilib contained in that example was extended and should show demonstrate how to make dll and songs embed using laszlo's binwrite :D


the latest example2 source compressed in lzma (overlay) results:
compression ratio = uncompressed size / compressed size
compression ratio = 1,361,989 bytes / 125,038 bytes
compression ratio = 10,8926006
therefore, almost 11:1

___
[ links ]
- bassmod (official link)


[ comments ]
-Thanks to Titan and Laszlo.

Enjoy!

[ keywords ]
bass, bassmod, modules


#2 Guests

  • Guests

Posted 23 October 2008 - 04:09 PM

:shock:

WOW I always wanted too play with this thank you so much.

:p :p :p :p :p :p :p :p :p :p :p

#3 Ice_Tea

Ice_Tea
  • Members
  • 131 posts

Posted 23 October 2008 - 04:27 PM

HAHA! nice work... Example 2 is cooler as it's as small as a XM file...

#4 ahklerner

ahklerner
  • Members
  • 1382 posts

Posted 23 October 2008 - 04:28 PM

your Init & Free funcs need to have the BaseModDLL as a global var.

#5 danalec

danalec
  • Members
  • 223 posts

Posted 23 October 2008 - 04:37 PM

oh yea, thanks for the info, forgot to revise that.
I'm still revising some functions which aren't retrieving correctly the data... I hope more feedbacks come to help me figure it out :)

#6 polyethene

polyethene

    Administrator

  • Administrators
  • 5473 posts

Posted 23 October 2008 - 10:58 PM

ahk finally meets demoscene :p

#7 ChalamiuS

ChalamiuS
  • Moderators
  • 176 posts

Posted 27 October 2008 - 11:05 AM

haha amazing k3ph :D

#8 danalec

danalec
  • Members
  • 223 posts

Posted 05 February 2009 - 12:07 AM

I've updated the library and the examples.

Now example2 has a better perfomance, runs all windows versions including vista and win7!

Now BASSMOD Library is a subproject of BASS Library.

#9 SoggyDog

SoggyDog
  • Members
  • 803 posts

Posted 05 February 2009 - 08:44 PM

With all the files that are associated with BASS, do you have them all packaged up somewhere that maybe I've just overlooked?

#10 danalec

danalec
  • Members
  • 223 posts

Posted 05 February 2009 - 08:55 PM

With all the files that are associated with BASS, do you have them all packaged up somewhere that maybe I've just overlooked?


BASSMOD Library is independant of BASS Library.
it is only a file called 'bassmod.ahk' dependant of 'BASSMOD.dll'

there is no need of package for it.

Please keep questions about BASS in BASS thread and leave this for BASSMOD, thank you.

#11 SoggyDog

SoggyDog
  • Members
  • 803 posts

Posted 05 February 2009 - 09:05 PM

Please keep questions about BASS in BASS thread and leave this for BASSMOD, thank you.

For those of us that are unfamiliar with BASS/BASSMOD, it's a little difficult to tell the difference nor how to know what files go with what.

It's especially difficult when you yourself made the following statement... "Now BASSMOD Library is a subproject of BASS Library"

So, I can ask BASSMOD questions in the BASS thread but I can't ask a BASS question in the BASSMOD thread?

Really, I'm not being a jerk, but I honestly don't know the difference.

#12 danalec

danalec
  • Members
  • 223 posts

Posted 05 February 2009 - 09:15 PM

Really, I'm not being a jerk, but I honestly don't know the difference.


As in the main post is tries to explains that, BASSMOD supports only few types of soundfiles and its an independent system from BASS.
As the name says: MOD, it supports only modules files (XM, IT, S3M, MOD, MTM and UMX soundfiles)

I understand, the names are pretty similar, even Ice_Tea made a confusion.

So, I can ask BASSMOD questions in the BASS thread but I can't ask a BASS question in the BASSMOD thread?

Good question, yes you will be able to ask about BASSMOD there :] But BASS can load all BASSMOD file types!
Essentially BASS is a BASSMOD bigger version which supports streaming files, not only modules.

I've just moved it to move my attention focus, BASS will have more priority for now.
Does it makes sense now? Any questions feel free to make, I'll try reply.

#13 SoggyDog

SoggyDog
  • Members
  • 803 posts

Posted 05 February 2009 - 09:22 PM

Thank you.
I think I got it.
BASS does everything BASSMOD does, but more.

#14 planktonfun

planktonfun
  • Guests

Posted 30 April 2011 - 07:21 AM

about example1, I cant get it to run...
"#include bassmod.ahk error at line 30 ; at left most character"