GithubHelp home page GithubHelp logo

e-penguin / blitz_ptplayer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from idrougge/blitz_ptplayer

1.0 2.0 1.0 235 KB

Port of Frank Wille's Protracker player as a Blitz Basic library

Assembly 100.00%

blitz_ptplayer's Introduction

blitz_ptplayer

Port of Frank Wille's Protracker player v6.3 as a Blitz Basic library

Please take the older version, pre-2023 for now!

Blitz Basic function/statement entry points added by idrougge Further development by E-Penguin

VBR fix by phx

compiled with vasm 1.9d, with the following options: vasmm68k_mot.exe -devpac -Fhunkexe -kick1hunks -nosym ptplayer.asm -o ptplayer.obj

Built wit the following configuration flags:

MINIMAL equ 0

ENABLE_SAWRECT equ 0

NULL_IS_CLEARED equ 0

Command reference: LoadBank 0,"mod.song",2 (loads module into bank 0 in chipmem (2))

MTInstall PAL=True, NTSC=False (installs player in program)

MTInit Bank#, startpos (inserts module into player)

MTInit &module_addr, &instr_addr, startpos (inserts INCBIN module into player, set instr_addr to 0 for normal modules)

MTPlay On/Off (start/stop module playback)

MTEnd (Stop playing current module)

MTSoundFX Sound#, volume (0..64)

MTSoundFX &sample_addr.l, length.w, period.w, volume.w (0..64)

MTPlayFx &SfxStructure

MTMasterVolume 0..64 (Master volume for all music channels)

MTMusicMask bitmask.b (Set bits 0-3 to reserve channels for music only.)

MTMusicChannels 0..4 (number of channels dedicated to music)

MTE8Trigger (Value of the last E8 command in case you want to trigger game events from a module)

blitz_ptplayer's People

Contributors

e-penguin avatar idrougge avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ptz0uah

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.