Skip to content

Commit

Permalink
added -shrink command line option
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-carre committed Apr 30, 2023
1 parent 103e5b0 commit 2e7241b
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Example/convert.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
..\LSPConvert rink-a-dink.mod -amigapreview -insane -getpos
..\LSPConvert rink-a-dink.mod -amigapreview -insane -getpos -v -shrink
pause
Binary file modified Example/rink-a-dink.lsbank
Binary file not shown.
Binary file modified Example/rink-a-dink.lsmusic
Binary file not shown.
50 changes: 25 additions & 25 deletions Example/rink-a-dink_insane.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;*****************************************************************
;
; Light Speed Player v1.12
; Light Speed Player v1.13
; Fastest Amiga MOD player ever :)
; Written By Arnaud Carré (aka Leonard / OXYGENE)
; https://github.com/arnaud-carre/LSPlayer
Expand All @@ -26,7 +26,7 @@
;*****************************************************************

LSP_MusicInitInsane:
move.l #$8f491637,d0
move.l #$4415c592,d0
cmp.l (a1),d0
bne.s .dataError
cmpi.l #'LSP1',(a0)+
Expand Down Expand Up @@ -73,32 +73,32 @@ LSP_StateInsane: dc.l 0 ; 0 word stream loop
LSP_InstrumentInfoInsane: ; (28 instruments)
dc.w $0000,$95c0,$30c3,$0000,$b928,$1f0f
dc.w $0000,$0004,$0a19,$0000,$0dfe,$031c
dc.w $0001,$815c,$09ad,$0001,$815c,$0001
dc.w $0001,$7ee8,$09ad,$0001,$7ee8,$0001
dc.w $0000,$1436,$0329,$0000,$1436,$0001
dc.w $0002,$1c3e,$0851,$0002,$1c3e,$0001
dc.w $0002,$19ca,$0828,$0002,$19ca,$0001
dc.w $0000,$1a88,$02a1,$0000,$1a88,$0001
dc.w $0000,$1fca,$3afb,$0000,$1fca,$0001
dc.w $0001,$e712,$1a96,$0002,$0b84,$085d
dc.w $0000,$f746,$07b7,$0000,$f746,$0001
dc.w $0001,$1540,$0845,$0001,$1540,$0001
dc.w $0001,$06b4,$0746,$0001,$06b4,$0001
dc.w $0001,$31c2,$03a3,$0001,$31c2,$0001
dc.w $0001,$7078,$0872,$0001,$7078,$0001
dc.w $0001,$3908,$0ed3,$0001,$3908,$0001
dc.w $0002,$d77e,$1728,$0002,$d77e,$0001
dc.w $0002,$7996,$0937,$0002,$7996,$0001
dc.w $0001,$94b6,$292e,$0001,$94b6,$0001
dc.w $0001,$5eee,$08c5,$0001,$5eee,$0001
dc.w $0003,$05ce,$110a,$0003,$05ce,$0001
dc.w $0002,$3a9e,$1f7c,$0002,$3a9e,$0001
dc.w $0002,$2ce0,$06df,$0002,$2ce0,$0001
dc.w $0003,$27e2,$037f,$0003,$27e2,$0001
dc.w $0003,$2ee0,$039a,$0003,$2ee0,$0001
dc.w $0002,$c218,$0ab3,$0002,$c218,$0001
dc.w $0002,$8c04,$1645,$0002,$9ca0,$0df7
dc.w $0002,$b88e,$04c5,$0002,$b88e,$0001
dc.w $0001,$25ca,$05fc,$0001,$25ca,$0001
dc.w $0001,$56ae,$0420,$0001,$56ae,$0001
dc.w $0001,$e49e,$1a96,$0002,$0910,$085d
dc.w $0000,$f746,$067d,$0000,$f746,$0001
dc.w $0001,$12cc,$0845,$0001,$12cc,$0001
dc.w $0001,$0440,$0746,$0001,$0440,$0001
dc.w $0001,$2f4e,$03a3,$0001,$2f4e,$0001
dc.w $0001,$6e04,$0872,$0001,$6e04,$0001
dc.w $0001,$3694,$0ed3,$0001,$3694,$0001
dc.w $0002,$d4b8,$1728,$0002,$d4b8,$0001
dc.w $0002,$76d0,$0937,$0002,$76d0,$0001
dc.w $0001,$9242,$292e,$0001,$9242,$0001
dc.w $0001,$5c7a,$08c5,$0001,$5c7a,$0001
dc.w $0003,$0308,$110a,$0003,$0308,$0001
dc.w $0002,$37d8,$1f7c,$0002,$37d8,$0001
dc.w $0002,$2a1a,$06df,$0002,$2a1a,$0001
dc.w $0003,$251c,$037f,$0003,$251c,$0001
dc.w $0003,$2c1a,$039a,$0003,$2c1a,$0001
dc.w $0002,$bf52,$0ab3,$0002,$bf52,$0001
dc.w $0002,$893e,$1645,$0002,$99da,$0df7
dc.w $0002,$b5c8,$04c5,$0002,$b5c8,$0001
dc.w $0001,$2356,$05fc,$0001,$2356,$0001
dc.w $0001,$543a,$0420,$0001,$543a,$0001

LSP_MusicPlayTickInsane:
lea LSP_StateInsane+8(pc),a1
Expand Down
Binary file modified LSPConvert.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion LightSpeedPlayer.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;*****************************************************************
;
; Light Speed Player v1.12
; Light Speed Player v1.13
; Fastest Amiga MOD player ever :)
; Written By Arnaud Carré (aka Leonard / OXYGENE)
; https://github.com/arnaud-carre/LSPlayer
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Light Speed Player v1.12
# Light Speed Player v1.13
# The fastest Amiga music player ever

## What is LSP?
Expand Down Expand Up @@ -35,6 +35,7 @@ LSPConvert options:
-insane : Generate insane mode fast replayer source code
-getpos : Enable LSP_MusicGetPos function use
-setpos : Enable LSP_MusicSetPos function use
-shrink : optimize sample bank size (remove sample bytes that won't be replayed)
-nosampleoptim : preserve orginal .MOD soundbank layout
-amigapreview : generate a wav from LSP data (output simulated LSP Amiga player)
-nosettempo : remove $Fxx>$20 SetTempo support (for very old .mods compatiblity)
Expand Down
3 changes: 3 additions & 0 deletions versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Written by Leonard/Oxygene ( twitter @leonard_coder )
---------------
Version History
---------------
v1.13
- added -shrink option to optimize sample bank size (remove sample bytes that won't be replayed)

v1.12
- Fixed -setpos and -getpos output data size (thanks Platon42)

Expand Down

0 comments on commit 2e7241b

Please sign in to comment.