Jump to content

Chip-It


mrbond007
 Share

Recommended Posts

Chip-it is a tiny chiptune/fast tracker player. you might have seen cracks, keygens or patches that have cool tunes running with them. these tunes are called chips that can be found on the internet and can only be played by special players like winamp, so i did some research and found a free plugin called bassmod.dll that can be downloaded from "http://www.un4seen.com/bassmod.html". After converting the plugin i managed to create this simple player and decided to share it with you (i don't know if anyone else has done this before). If you want some tunes i packed some of my favourites in a file, you can get it "here". unpack the chips with this script and bassmod.dll into same map and let's party :)

now you can truly create your own crack... oops i mean demo/presentation just for fun.

Edit : There is also another plugin called "bass.dll" that can also be downloaded for the same website but it has a different license. That plugin has 3d effects abilities and can convert the chips to wav if you decided to use it.

Need more chiptunes :

http://modarchive.org/

http://chiptunes.back2roots.org/

http://www.united-trackers.org

In order to make chip-it work with new verions of AutoIt, add these

Global Const $TBS_NOTICKS = 0x0010
Global Const $WS_POPUP = 0x80000000
Global Const $WS_BORDER = 0x00800000

chip_it.zip

Edited by mrbond007
Link to comment
Share on other sites

Way Cool!! I have everything downloaded and in the same directory but get this error when trying to load a track

I am curious about the way you embedded the images. That is cool, looks like you are using the .php type setup to integrate the image into text. Is there a tutorial on this somewhere that I missed or did you create it?

This is what I have been needing.

edit: Ahh OK, after playing with the code I have my first question answered, now All I need is where or what are you using to get the embedded image code?

Edited by gesller
Link to comment
Share on other sites

Way Cool!! I have everything downloaded and in the same directory but get this error when trying to load a track

I am curious about the way you embedded the images. That is cool, looks like you are using the .php type setup to integrate the image into text. Is there a tutorial on this somewhere that I missed or did you create it?

This is what I have been needing.

edit: Ahh OK, after playing with the code I have my first question answered, now All I need is where or what are you using to get the embedded image code?

Glad you liked it, i convert the picture data to binary code using a hex editor and than i call this line

FileWrite(@TempDir & "\chip.jpg", Binary($pic))

to create the picture. Take a look in the beginning of the script at local $pic. I'm declaring the binary code there, it may look a little complicated but it's simillair to FileInstall. Check the help file for more info.

as for the first problem i have spended only 10 minutes to convert and create the script since i'm not a Dll guru so errors might occur.

Edited by mrbond007
Link to comment
Share on other sites

No Problem on the dll. I figured out how to use the images which is awesome! I was thinking you were using base64 but I can't get that to work. Hex code huh? Can you point me to where I can get a copy of the hex converter? That would be groovy... Thanks in advance!

Link to comment
Share on other sites

No Problem on the dll. I figured out how to use the images which is awesome! I was thinking you were using base64 but I can't get that to work. Hex code huh? Can you point me to where I can get a copy of the hex converter? That would be groovy... Thanks in advance!

i used this free one : XVI32
Link to comment
Share on other sites

  • 3 weeks later...

Fantastic! Thanks a lot!

I'll make my own cra... err... I mean presentation... :)

Thanks again, nice style to insert images...

How to convert .mp3 files to chip files? Anyone knows a free program?

Edited by LinuZ
Link to comment
Share on other sites

Fantastic! Thanks a lot!

I'll make my own cra... err... I mean presentation... ;)

Thanks again, nice style to insert images...

How to convert .mp3 files to chip files? Anyone knows a free program?

there used to be a freeware that converts mp3 to xm but it's dead now, and i forgot it's name. There is however MODPlug Tracker (also free) that can be used to compose xm's, the only thing you have todo is convert your mp3 to wav and import it to MODPlug.

Hope this will help :)

Edited by mrbond007
Link to comment
Share on other sites

  • 1 month later...

I write script for convert a picture to a script.

$file = FileOpenDialog('Open the image file', @ScriptDir, 'image (*.jpg;*.bmp;*gif;*.png)', 1)
$file2 = FileSaveDialog('Save the file', @ScriptDir, 'script (*.au3)')
_CheckExt($file2, 'au3')
$var = InputBox('Name variable', 'Prompt the name variable used', '$pic')
_CheckCapital($var, '$')
$hfile = FileOpen($file, 16)
$hfile2 = FileOpen($file2, 2)
FileWrite($hfile2, $var&'="0x"' & @CRLF)
While 1
    
    $data = FileRead($hfile, 30)
    If @error Then ExitLoop
    FileWrite($hfile2, $var&'&="' & StringTrimLeft($data,2) & '"' & @CRLF)
WEnd
MsgBox(0, 'Done!!', 'Done by Fabry!!!')
Func _CheckExt(ByRef $s_file, $s_ext)
    If StringRight($s_file, StringLen($s_ext)) <> $s_ext Then $s_file &= '.' & $s_ext
EndFunc   ;==>_CheckExt
Func _CheckCapital(ByRef $s_file, $s_cap)
    If StringLeft($s_file, StringLen($s_cap)) <> $s_cap Then $s_file = $s_cap & $s_file
EndFunc   ;==>_CheckExt
A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center]
Link to comment
Share on other sites

How about explaining, how can I merge this chiptune & an exe into 1 file, so when i press a lets say hotkey it will start playing?

Edited by goldenix
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

How about explaining, how can I merge this chiptune & an exe into 1 file, so when i press a lets say hotkey it will start playing?

I don't really understand what you want. are you talking about creating a compiled script that looks like a crack and is capable of playing one chip as the background music ?? if so it's not really difficult, you can use Fabry's udf to convert the chip to binary data. here's an example :

Local $bassdll, $Init[1]
Local $xm="0x"
$xm&="457874656E646564204D6F64756C653A206D656C6F64696F757320763220"
$xm&="202020202020201A46617374547261636B65722076322E30302020200401"
$xm&="140100000E000000040008001F00010004007D0000010203000102030405"
$xm&="040506070000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000090000000040007B02833A05808336038736061480808080"
$xm&="84658080833A06846F80846580833D05974A076547846F8465846F946F47"
$xm&="846F846F846F934A0747833603833D06846F9047846F846F833D05946F47"
$xm&="833D02846F80946F4780846F80974A07654780833D06846F946F47808083"
$xm&="3A05974A07654783360380846F946F47980201846F833D05974A0765478C"
$xm&="6F02833A06846F946F478C6F02846F9B3D05010280833503833D069B3F05"
$xm&="03128080846F846580809B3D060102846F8084659B3F060312833D059749"
$xm&="076538846F8465846F946F38846F846F833B0593490738833503833D0680"
$xm&="9038846F846F8465946F38833D02833B06846F946F388080833A05974907"
$xm&="653880846580946F3880846F846F9749076538833503833A06846F946F38"
$xm&="9802018083380597490765388C6F02846F846F946F388C6F02846F9B3605"
$xm&="0103808333038338069B380503FF8080846F8080809B36060103846F8084"
$xm&="659B380603FF833A059747076537846F8080946F37846F846F8336059347"
$xm&="0737833F03833A06809037846F8080946F37833D0283360680946F378080"
$xm&="846F9747076537833F0380846F946F378080360522010297470765378333"
$xm&="03846F3805220312946F37980201846F8097470765378C6F023606220102"
$xm&="846F946F378C6F023806220312873A05228083330380808080846F873605"
$xm&="228080873A06228080846580809747076537846F8736062280946F37846F"
$xm&="80846F93470737833F0380846F9037846F803605140102946F37833D0284"
$xm&="6F3805140312946F3780846F809747076537833F033606140102846F946F"
$xm&="37803806140312873A051497470765378333038080946F37980201846F87"
$xm&="36051497470765378C6F028080946F378C6F028009000000004000790283"
$xm&="3F0580833803808080808084658080833F06846F80846580834205974A07"
$xm&="6559846F84658467946F59846F846F846F93470738833803834206846F90"
$xm&="38846F84679B40050101946F38833D02846F9B420503FF946F3880846F80"
$xm&="9747076538809B40060101846F946F38809B420603FF833F05974A076559"
$xm&="83380380846F946F59980201846F834205974A0765598C6F02833F06846F"
$xm&="946F598C6F02846F9B47050102808338038342069B490503128080846F80"
$xm&="80809B47060102846F8084659B49060312834705974A076559846F808094"
$xm&="6F59846F846F846F93470738833803834706846F9038846F80834605946F"
$xm&="38833D02846F80946F3880846F846F974707653880834606846F946F3880"
$xm&="80834405974A076559833803846F846F946F59980201846F9B4405010297"
$xm&="4A0765598C6F028344069B46050312946F598C6F02846F80808331039B44"
$xm&="060102846F80809B46060312834705808080846F808465846F8344059749"
$xm&="076558846F83470680946F58846F846F809345074A833D03834406846F90"
$xm&="4A846F80846F946F4A833D028080946F4A80846F87460522974507654A83"
$xm&="3D03846F80946F4A8080846F974907655883310387460622846F946F5898"
$xm&="0201808747052297490765588C6F02846F846F946F588C6F02846F874405"
$xm&="228083310387470622808080846F80808087440622846F80846580846F97"
$xm&="49076558846F8080946F58846F846F874605149345074A833D03846F8090"
$xm&="4A846F80846F946F4A833D0287460614846F946F4A808087470514974507"
$xm&="654A833D03846F846F946F4A80846F874405149749076558833103874706"
$xm&="1480946F58980201846F8097490765588C6F0287440614846F946F588C6F"
$xm&="0280090000000040009F029B3D05010280833803809B3F05031F80808084"
$xm&="6580809B3D060102846F8084659B3F06031F834205973E076559846F8465"
$xm&="8467946F59846F846F846F933E0759833803834206846F9059846F84679B"
$xm&="40050101946F59833D02846F9B42050316946F5980846F80973E07655980"
$xm&="9B40060101846F946F59809B42060316834405973E07655983380380846F"
$xm&="946F59980201846F834205973E0765598C6F02834406846F946F598C6F02"
$xm&="846F9B3F050102808331038342069B410503128080846F846580809B3F06"
$xm&="0102846F8084659B41060312834105973D076538846F846580946F38846F"
$xm&="846F834205933D0738833103834106809038846F80846F946F38833D0283"
$xm&="4206846F946F388080834105973D07653880846F846F946F3880846F8342"
$xm&="05973D076538833103834106846F946F38980201846F834405973D076538"
$xm&="8C6F02834206846F946F388C6F02846F9B42050103808336038344069B44"
$xm&="0503128080846F8080809B42060103846F8084659B44060312834205973E"
$xm&="076559846F80846F946F59846F846F834605933907598342038342068090"
$xm&="59846F846F80946F59833D02834606846F946F598080846F973907655983"
$xm&="420380846F946F5980846F4205220103973E076559833603846F44052203"
$xm&="12946F59980201846F80973E0765598C6F024206220103846F946F598C6F"
$xm&="024406220312874205228083360380846F8080846F874605228080874206"
$xm&="2280808465846F80973E076559846F87460622846F946F59846F80846F93"
$xm&="39075983420380846F9059846F846F4205140103946F59833D02846F4405"
$xm&="140312946F5980846F8097390765598342034206140103846F946F598044"
$xm&="0614031287420514973E07655983360380846F946F59980201846F874605"
$xm&="14973E0765598C6F028742061480946F598C6F02846F0900000000400091"
$xm&="029B4605010280833803809B47050312808080846580809B46060102846F"
$xm&="8084659B47060312834605973E076559846F8465846F946F59846F846F84"
$xm&="6F933E0759833803834606846F9059846F846F834405946F59833D02846F"
$xm&="846F946F5980846F834205973E0765598083440680946F5980846F846597"
$xm&="3E076559833803834206846F946F59980201809B41050102973E0765598C"
$xm&="6F0284659B42050312946F598C6F02846F80808331039B41060102846F80"
$xm&="809B42060312834105808080846F808465846F833F05973D076538846F83"
$xm&="4106846F946F38846F846F846F933D0738833103833F06809038846F846F"
$xm&="833F05946F38833D02846F846F946F388080834105973D07653880833F06"
$xm&="846F946F3880846F846F973D076538833103834106846F946F3898020184"
$xm&="6F834205973D0765388C6F02846F80946F388C6F02846F84658083360383"
$xm&="4206846F808080873F052280808465846F808465846F87410522973E0765"
$xm&="59846F873F0622846F946F59846F846F8742052293390759834203874106"
$xm&="22809059846F846F8465946F59833D0287420622846F946F598080873F05"
$xm&="1C97390765598342038465846F946F5980846F8741051C973E0765598336"
$xm&="03873F061C846F946F59980201846F8742051C973E0765598C6F02874106"
$xm&="1C80946F598C6F02846F8465808336038742061C846F808080873F051480"
$xm&="808465846F808465846F87410514973E076559846F873F0614846F946F59"
$xm&="846F846F874205149339075983420387410614809059846F846F8465946F"
$xm&="59833D0287420614846F946F598080873F05129739076559834203846584"
$xm&="6F946F5980846F87410512973E076559833603873F0612846F946F599802"
$xm&="01846F87420512973E0765598C6F028741061280946F598C6F02846F0900"
$xm&="00000040004C02833A0580833603846F808080846F846F8080833806846F"
$xm&="80846580833605974A076547846F846F80946F47846F846F846F934A0747"
$xm&="833603833A06846F9047846F80833105946F47833D02846F80946F478084"
$xm&="6F846F974A07654780833606846F946F478080832E05974A076547833603"
$xm&="846F80946F47980201846F846F974A0765478C6F02833106846F946F478C"
$xm&="6F0280832C0580833503846F808080846F846F8080832E06846F80846580"
$xm&="8331059749076538846F846F80946F38846F846F846F9349073883350383"
$xm&="2C06846F9038846F80833505946F38833D02846F80946F3880846F846F97"
$xm&="4907653880833106846F946F3880808338059749076538833503846F8094"
$xm&="6F38980201846F846F97490765388C6F02833506846F946F388C6F028083"
$xm&="360580833303846F808080846F846F8080833806846F8084658083330597"
$xm&="47076537846F846F80946F37846F846F846F93470737833F03833606846F"
$xm&="9037846F80832E05946F37833D02846F80946F3780846F846F9747076537"
$xm&="833F03833306846F946F378080832A059747076537833303846F80946F37"
$xm&="980201846F846F97470765378C6F02832E06846F946F378C6F0280832705"
$xm&="80833303846F808080846F846F8080832A06846F80846580832A05974707"
$xm&="6537846F846F80946F37846F846F846F93470737833F03832706846F9037"
$xm&="846F80832E05946F37833D02846F80946F3780846F846F9747076537833F"
$xm&="03832A06846F946F3780808333059747076537833303846F80946F379802"
$xm&="01846F846F97470765378C6F02832E06846F946F378C6F02800900000000"
$xm&="40004C02832F0580833803846F808080846F846F8080833306846F808465"
$xm&="80833305974A076559846F846F80946F59846F846F846F93470738833803"
$xm&="832F06846F9038846F80833605946F38833D02846F80946F3880846F846F"
$xm&="974707653880833306846F946F388080833B05974A076559833803846F80"
$xm&="946F59980201846F846F974A0765598C6F02833606846F946F598C6F0280"
$xm&="833F0580833803846F808080846F846F8080833B06846F80846580834205"
$xm&="974A076559846F846F80946F59846F846F846F93470738833803833F0684"
$xm&="6F9038846F80833F05946F38833D02846F80946F3880846F846F97470765"
$xm&="3880834206846F946F388080833B05974A076559833803846F80946F5998"
$xm&="0201846F846F974A0765598C6F02833F06846F946F598C6F0280833D0580"
$xm&="833103846F808080846F846F8080833B06846F8084658083380597490765"
$xm&="58846F846F80946F58846F846F846F9345074A833D03833D06846F904A84"
$xm&="6F80833505946F4A833D02846F80946F4A80846F846F974507654A833D03"
$xm&="833806846F946F4A80808331059749076558833103846F80946F58980201"
$xm&="846F846F97490765588C6F02833506846F946F588C6F0280832C05808331"
$xm&="03846F808080846F846F8080833106846F80846580833105974907655884"
$xm&="6F846F80946F58846F846F846F9345074A833D03832C06846F904A846F80"
$xm&="833505946F4A833D02846F80946F4A80846F846F974507654A833D038331"
$xm&="06846F946F4A80808338059749076558833103846F80946F58980201846F"
$xm&="846F97490765588C6F02833506846F946F588C6F0280090000000040009F"
$xm&="029B3105010280833803809B3305031F808080846580809B31060102846F"
$xm&="8084659B3306031F833605973E076559846F84658467946F59846F846F84"
$xm&="6F933E0759833803833606846F9059846F84679B34050101946F59833D02"
$xm&="846F9B36050316946F5980846F80973E076559809B34060101846F946F59"
$xm&="809B36060316833805973E07655983380380846F946F59980201846F8336"
$xm&="05973E0765598C6F02833806846F946F598C6F02846F9B33050102808331"
$xm&="038336069B350503128080846F846580809B33060102846F8084659B3506"
$xm&="0312833505973D076538846F846580946F38846F846F833605933D073883"
$xm&="3103833506809038846F80846F946F38833D02833606846F946F38808083"
$xm&="3505973D07653880846F846F946F3880846F833605973D07653883310383"
$xm&="3506846F946F38980201846F833805973D0765388C6F02833606846F946F"
$xm&="388C6F02846F9B36050103808336038338069B380503128080846F808080"
$xm&="9B36060103846F8084659B38060312833605973E076559846F80846F946F"
$xm&="59846F846F833A0593390759834203833606809059846F846F80946F5983"
$xm&="3D02833A06846F946F598080846F973907655983420380846F946F598084"
$xm&="6F3605220103973E076559833603846F3805220312946F59980201846F80"
$xm&="973E0765598C6F023606220103846F946F598C6F02380622031287360522"
$xm&="8083360380846F8080846F873A052280808736062280808465846F80973E"
$xm&="076559846F873A0622846F946F59846F80846F9339075983420380846F90"
$xm&="59846F846F3605140103946F59833D02846F3805140312946F5980846F80"
$xm&="97390765598342033606140103846F946F5980380614031287360514973E"
$xm&="07655983360380846F946F59980201846F873A0514973E0765598C6F0287"
$xm&="36061480946F598C6F02846F0900000000400091029B3A05010280833803"
$xm&="809B3B050312808080846580809B3A060102846F8084659B3B060312833A"
$xm&="05973E076559846F8465846F946F59846F846F846F933E0759833803833A"
$xm&="06846F9059846F846F833805946F59833D02846F846F946F5980846F8336"
$xm&="05973E0765598083380680946F5980846F8465973E076559833803833606"
$xm&="846F946F59980201809B35050102973E0765598C6F0284659B3605031294"
$xm&="6F598C6F02846F80808331039B35060102846F80809B3606031283350580"
$xm&="8080846F808465846F833305973D076538846F833506846F946F38846F84"
$xm&="6F846F933D0738833103833306809038846F846F833305946F38833D0284"
$xm&="6F846F946F388080833505973D07653880833306846F946F3880846F846F"
$xm&="973D076538833103833506846F946F38980201846F833605973D0765388C"
$xm&="6F02846F80946F388C6F02846F846580833603833606846F808080873305"
$xm&="2280808465846F808465846F87350522973E076559846F87330622846F94"
$xm&="6F59846F846F873605229339075983420387350622809059846F846F8465"
$xm&="946F59833D0287360622846F946F5980808733051C973907655983420384"
$xm&="65846F946F5980846F8735051C973E0765598336038733061C846F946F59"
$xm&="980201846F8736051C973E0765598C6F028735061C80946F598C6F02846F"
$xm&="8465808336038736061C846F8080808733051480808465846F808465846F"
$xm&="87350514973E076559846F87330614846F946F59846F846F873605149339"
$xm&="075983420387350614809059846F846F8465946F59833D0287360614846F"
$xm&="946F5980808733051297390765598342038465846F946F5980846F873505"
$xm&="12973E07655983360387330612846F946F59980201846F87360512973E07"
$xm&="65598C6F028735061280946F598C6F02846F210000002064616C657A7900"
$xm&="000000000000000000000000000000000030020040070100000000000000"
$xm&="000000000000000000000000000000000000010028000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000040000400400008002C000E00080018001600200008003C0000004600"
$xm&="0000500000005A000000640000006E000000000020000800140016000D00"
$xm&="220013002E0020003D002D004900310053002D005F0020006E0020007800"
$xm&="200082002000060902030505000800000000000000000000000000000000"
$xm&="0000000000000000000000000000F8020000000000000000000030000080"
$xm&="0000202020202020202020202020202020202020202020200000000000FF"
$xm&="810052DA0C002FCA9738FF9E273B7889FF00005DB7C22AFA07FFEA9C7A5C"
$xm&="89DF992F3146FEB84800007888000000D62B50AF00C43C00A42ADD910EB5"
$xm&="800CE23F87A1425A00F4021E21E30B29E71DEE2616150000000000000000"
$xm&="000000000000F1FAD600DDF1F6EAEF06E8F204E612E5FCF6FFF100000000"
$xm&="000000000000000000000000000000056D8E321124D12C2AEE27FB061800"
$xm&="0811F223E71F0F000000000000000000000000000000AD53C7BF6DD1FAA9"
$xm&="7E79565C969BF8F908C72FD10039E1E60230CE5BDFC667A0F940E8D88B85"
$xm&="F055AB2C3A9A9E6D5FA451219AF18AF9725F6E7D8CD1F731E30A083BABDB"
$xm&="7ACFEF2C16AF519B4C19837DDEF0EF32FFDB18C324D244EAD6CD7D59AEC4"
$xm&="BE2A3EC5D1836E0C3FF9DE00EA2AA50051845EC8FE07F8CE7C8428D8639D"
$xm&="0001FF00014DB22BD50012EE403CF2922389BB3DC72BA6ADAA5ACFF25182"
$xm&="3CD1710067999A66C43CD62A837D7D83BDDE6500BB0243BBCB68FA97E19A"
$xm&="A5E2566E48F9077489BBDA14CE847C12EE0048B80906F14DB34DBAF90010"
$xm&="44BF105F7E700E825659AA2930E3F742D5011C73CC9B48FAD0F046BF5ECF"
$xm&="00D55C00C9E651C52EB54A9F65D113CA19EE002BC8F90F29D0C81B1CA63D"
$xm&="FBB84FA64D8B444AB5BD6BA0201BCC1F20AF789EEA51DEFD1EC964C3D454"
$xm&="30C02AD22E8309910104E24BCECE5DEAD64DD6C93E1F0491580DDC54A6EE"
$xm&="6A76946556E23CDAF9F8F26A5A6719AF1BF0FFE038F0F4BF66CB0002CE2D"
$xm&="F21BB944D821C314F827D03DA329DE5AB4011FDC0C4DC32BB75D7099B135"
$xm&="97918A431C866C8795097C79CA1C0E1AC12AE917FE090917D72AC16B9850"
$xm&="F5CF66A637AC7AC5EF03031DB433E812DD12FEDD3F9376C0F0FDEA1FD658"
$xm&="98181BEBE9E71870604AF20EC05CED9B53209883AAEA2F378E2F2ABB1844"
$xm&="8E9A4CD69ABD5FDDF031E12DB361C243A96BD604E01D18E00712D34CE1E7"
$xm&="3BAD0A5CC7E02415A070A82F07C353DBF0E15B8E35209883A821E2F515FD"
$xm&="0DC23BE2001DBB49C51AF4030016E70CF814E6140FF20010EE0A06F40DFC"
$xm&="0101010007010000206120686172646C79206F7074696D697A6564000000"
$xm&="000100280000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="00000000000000000000000000000040000400400008002C000E00080018"
$xm&="001600200008003C00000046000000500000005A000000640000006E0000"
$xm&="00000020000800140016000D00220013002E0020003D002D004900310053"
$xm&="002D005F0020006E00200078002000820020000609020305050008000000"
$xm&="0000000000000000000000000000000000000000000000000000007C0000"
$xm&="000C000000700000001A0001800000202020202020202020202020202020"
$xm&="20202020202020000000008D00F900FC00FF000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000EE0010000000000000000000000000000000000000"
$xm&="00FE00F900F900FA00F900F900F900F800F900F800F800F800F800F800F9"
$xm&="00F900F900F900F800FA00210000002076657273696F6E206F66206D7920"
$xm&="6D656C6F2D000000000028000000070100002064696F757320636F766572"
$xm&="000000000000000000000001002800000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000004000040040"
$xm&="0008002C000E00080018001600200008003C00000046000000500000005A"
$xm&="000000640000006E000000000020000800140016000D00220013002E0020"
$xm&="003D002D004900310053002D005F0020006E002000780020008200200006"
$xm&="09020305050008070000300B1C8000000000000000000000000000000000"
$xm&="00000000000000280000000C0000001C0000004000018000002020202020"
$xm&="20202020202020202020202020202020200000000001191C06F8C9C4506E"
$xm&="BC8C1129FEFA01FEECE50C142621DFC73448D0B63A59C9A52947D5070100"
$xm&="000000000000000000000000000000000000000000000000010028000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000040000400400008002C000E0008001800160020000800"
$xm&="3C00000046000000500000005A000000640000006E000000000020000800"
$xm&="140016000D00220013002E0020003D002D004900310053002D005F002000"
$xm&="6E00200078002000820020000609020305050008070000300B1C80000000"
$xm&="0000000000000000000000000000000000000000280000000C0000001C00"
$xm&="000040000180000020202020202020202020202020202020202020202020"
$xm&="0000000000090A03FCECE91F29E6D40710FFFD01FFF8F605070F0DF3EA14"
$xm&="1BEEE41622EADE101BF007010000206F726967696E616C2066696C657369"
$xm&="7A653A32326B000100280000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="00000000000000000000000000000000000000000040000A0000003C0000"
$xm&="003C0000003C0000003C0000003C00000046000000500000005A00000064"
$xm&="0000006E000000000020000800140016000D00220013002E0020003D002D"
$xm&="004900310053002D005F0020006E00200078002000820020000209000101"
$xm&="050008050000000000800000000000000000000000000000000000000000"
$xm&="0000001F000000030000001C00000040000180F800202020202020202020"
$xm&="20202020202020202020202020ADFFFF1A0000000000002D00004000DF01"
$xm&="01000200001FFFFFD7000200000107010000000000000000000000000000"
$xm&="000000000000000000000001002800000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000000000000000"
$xm&="000000000000000000000000000000000000000000000000004000040040"
$xm&="0008002C000E00080018001600200008003C00000046000000500000005A"
$xm&="000000640000006E000000000020000800140016000D00220013002E0020"
$xm&="003D002D004900310053002D005F0020006E002000780020008200200006"
$xm&="090203050500080000000000000000000000000000000000000000000000"
$xm&="00000000000000280000000C0000001C0000002A00018000002020202020"
$xm&="20202020202020202020202020202020200000000000151705FAD3CE425B"
$xm&="C7A10E2100FB01FEEFEA0A101F1BE5D22A3CD8C32F4AD3B5213BDC210000"
$xm&="000000000000000000000000000000000000000000000000000028000000"
$xm&="210000000000000000000000000000000000000000000000000000000028"
$xm&="000000210000000000000000000000000000000000000000000000000000"
$xm&="000028000000210000000000000000000000000000000000000000000000"
$xm&="000000000028000000210000000000000000000000000000000000000000"
$xm&="000000000000000028000000210000000000000000000000000000000000"
$xm&="000000000000000000000028000000210000000000000000000000000000"
$xm&="000000000000000000000000000028000000210000000000000000000000"
$xm&="000000000000000000000000000000000028000000210000000000000000"
$xm&="000000000000000000000000000000000000000028000000210000000000"
$xm&="000000000000000000000000000000000000000000000028000000210000"
$xm&="000000000000000000000000000000000000000000000000000028000000"
$xm&="210000000000000000000000000000000000000000000000000000000028"
$xm&="000000210000000000000000000000000000000000000000000000000000"
$xm&="000028000000210000000000000000000000000000000000000000000000"
$xm&="000000000028000000210000000000000000000000000000000000000000"
$xm&="000000000000000028000000210000000000000000000000000000000000"
$xm&="000000000000000000000028000000210000000000000000000000000000"
$xm&="000000000000000000000000000028000000210000000000000000000000"
$xm&="000000000000000000000000000000000028000000210000000000000000"
$xm&="000000000000000000000000000000000000000028000000210000000000"
$xm&="000000000000000000000000000000000000000000000028000000210000"
$xm&="000000000000000000000000000000000000000000000000000028000000"
$xm&="210000000000000000000000000000000000000000000000000000000028"
$xm&="00000021000000205B3D2064616C657A79206170722031393939203D5D00"
$xm&="0000280000008BC0"

FileWrite(@ScriptDir & "\chip.xm", Binary($xm))

If FileExists("BASSMOD.dll") Then
$bassdll = DllOpen("BASSMOD.dll")
$Init = DllCall($bassdll, "int", "BASSMOD_Init", "int", -1, "int", 44100, "int", 0)
$Name_H = DllStructCreate("char[255]")
DllStructSetData($Name_H, 1, @ScriptDir & "\chip.xm")
$Lod = DllCall($bassdll, "int", "BASSMOD_MusicLoad", "int", 0, _
                "ptr", DllStructGetPtr($Name_H), _
                "int", 0, _
                "int", 0, _
                "int", 1028)
DllCall($bassdll, "int:cdecl", "BASSMOD_MusicPlay", "int", $Init[0])
FileDelete(@ScriptDir & "\chip.xm")
EndIf

While 1
    $msg = GUIGetMsg()
    IF $msg = -3 Then Exit
WEnd

Func OnAutoItExit()
    If Not (FileExists("BASSMOD.DLL")) Then
        Exit
    Else
        DllCall($bassdll, "int:cdecl", "BASSMOD_MusicFree", "int", $Init[0])
        DllClose($bassdll)
    EndIf
EndFunc

add a gui and then compile the file.

Link to comment
Share on other sites

I don't really understand what you want. are you talking about creating a compiled script that looks like a crack and is capable of playing one chip as the background music ??

Yup thanx, This is really fascinating. mind to also explain what does each line do hire, I dont quite understand that.

$Init = DllCall($bassdll, "int", "BASSMOD_Init", "int", -1, "int", 44100, "int", 0)
                $Name_H = DllStructCreate("char[255]")
                DllStructSetData($Name_H, 1, @ScriptDir & "\chip.xm")
                $Lod = DllCall($bassdll, "int", "BASSMOD_MusicLoad", "int", 0, _
                                "ptr", DllStructGetPtr($Name_H), _
                                "int", 0, _
                                "int", 0, _
                                "int", 1028)
                DllCall($bassdll, "int:cdecl", "BASSMOD_MusicPlay", "int", $Init[0])
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

Yup thanx, This is really fascinating. mind to also explain what does each line do hire, I dont quite understand that.

$Init = DllCall($bassdll, "int", "BASSMOD_Init", "int", -1, "int", 44100, "int", 0)
                $Name_H = DllStructCreate("char[255]")
                DllStructSetData($Name_H, 1, @ScriptDir & "\chip.xm")
                $Lod = DllCall($bassdll, "int", "BASSMOD_MusicLoad", "int", 0, _
                                "ptr", DllStructGetPtr($Name_H), _
                                "int", 0, _
                                "int", 0, _
                                "int", 1028)
                DllCall($bassdll, "int:cdecl", "BASSMOD_MusicPlay", "int", $Init[0])
I'm not really good at these things but i'll try my best.

this line initializes the sound

$Init = DllCall($bassdll, "int", "BASSMOD_Init", "int", -1, "int", 44100, "int", 0)

we create a space in memory to store the name of the chip inside it with this line

$Name_H = DllStructCreate("char[255]")

we set the name of the chip to the allocated space

DllStructSetData($Name_H, 1, @ScriptDir & "\chip.xm")

we prepare the plugin to start playing with "BASSMOD_MusicLoad" and the last line plays the chip

$Lod = DllCall($bassdll, "int", "BASSMOD_MusicLoad", "int", 0, _
                                "ptr", DllStructGetPtr($Name_H), _
                                "int", 0, _
                                "int", 0, _
                                "int", 1028)
DllCall($bassdll, "int:cdecl", "BASSMOD_MusicPlay", "int", $Init[0])
Link to comment
Share on other sites

Where in the world did you ever find them called chips? They are modules.

http://en.wikipedia.org/wiki/Module_file

http://en.wikipedia.org/wiki/Chiptune

@mrbond007

Thanx.

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

Where in the world did you ever find them called chips? They are modules.

http://en.wikipedia.org/wiki/Module_file

chips is shortname for chiptunes : http://www.vorc.org/en/info=chiptune
Link to comment
Share on other sites

No, I'm pointing out that this plays modules, not chiptunes.

yes this plugin plays many chiptunes formats but not all of them, when we say chiptunes we say all types of tunes from amiga, adlib, extended modules(xm) to sega and snes tunes.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...