Thanks to visit codestin.com
Credit goes to github.com

Skip to content

retrodeluxe/SDCC_PT3player

 
 

Repository files navigation

SDCC PT3 Player Library for MSX

Version:

1.1

Date:

28/05/2019

Architecture:

MSX

Programming language:

C

Authors:

In Test/Example software:

  • PT3 song:
    "A funny day with my MSX" from 50RU MSX invitro (AAMSX) by Makinavaja

asMSX PT3 player (by SapphiRe):

http://www.z80st.es/blog/2008/11/19a-nueva-version-del-replayer-de-pt3

Sorry!: This text is pending correction of the English translation. <<<<<<<<

History of versions:

  • 1.1 (28/05/2019) Adaptation to SDCC of asMSX version by SapphiRe.
  • 1.0 (21/10/2016) Adaptation to SDCC of the ROM version by Kun.

1. Introduction

Adaptation of the Vortex Tracker II PT3 Player for MSX to be used in software development in C (SDCC).

Allows access to player variables.

As there are four tables of notes available in Vortex Tracker, this must be assigned externally, copying to the space reserved in the variable NoteTable. The four tables are included in files <PT3player_NoteTableN.h>

Include an example application for testing and learning purposes.

2. License

Vortex Tracker II v1.0 PT3 player (c) 2004 S.V.Bulba

3. Acknowledgments

Thanks for information, help or your contribution to the MSX community:

4. Requirements

For C:

5. Functions

  • void PT3Init(unsigned int, char) Init Song: (unsigned int) Song data address ;(char) Loop - 0=off ; 1=on
  • void PT3Decode() Decode a frame from PT3 Song.
  • void PT3PlayAY() Play Song. Execute on each interruption of VBLANK.
  • void PT3Mute() Silence the PSG.

6. How to use

Follow the next steps:

  1. Assign the table of notes that corresponds to the one used in the song.
  2. Initialize the song to sound with PT3Init.
  3. At each VBLANK interrupt, execute PT3PlayAY. This function dumps the AY record values and makes it sound.
  4. Execute PT3Decode in your code in each frame, to process the song data.
  5. As you want to stop the playback of the song, execute PT3Mute and stop calling PT3Decode.
  6. To play another song, repeat these steps starting with number 2.

About

SDCC PT3 player Library for MSX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.4%
  • Batchfile 0.6%