New audio upload: DECPS Player - simulates Play Sound of VT520 & VT525

All aspects of programming on the Commander X16.
Post Reply
mobluse
Posts: 177
Joined: Tue Aug 04, 2020 2:16 pm
Location: Lund, Sweden
Contact:

New audio upload: DECPS Player - simulates Play Sound of VT520 & VT525

Post by mobluse »

DECPS Player - simulates Play Sound of VT520 & VT525

View File w/o Manifest

DECPS is an escape sequence to Play Sound (PS) on VT520 and VT525 terminals by Digital Equipment Corporation (DEC). A coming version of Windows Terminal will support this since a pull request was accepted. The corresponding issue had some examples and I converted them automatically to BASIC DATA statements for Commander X16 with my Basicode-3 and -3C sound subroutine. The subroutine has extra features since it can also play polyphonic music by using other entry line numbers. This program can also play a chord for each note.
Try It Now!

Code: Select all

x16emu -prg DECPS.PRG -run
x16emu -bas DECPS.BAS -run
I put all the examples in a file and converted to BASIC v2 DATA statements using this command line in Linux, and then I shortened the lines to less than 80 characters manually:

Code: Select all

sed 's/printf "\\e\[/REM DATA /;s/;/,/g;s/~\\e\[/1E4,/g;s/~"/2E4/' decps.sh
There is a simple 1 to 1 relationship between a string for e.g. VT520 and the DATA statements in this program DECPS.BAS. The open source bas-file is also included in the zip-file and it's FOSS with license GPLv3.

Submitter: mobluse

Submitted: 06/04/22
Updated: 04/06/23

Category: Audio Apps
#R38 #R39 #R41 #R42 #R43
Attachments
decps.zip
DECPS Player by mobluse
(5.26 KiB) Downloaded 156 times
X16&C64 Quiz: Try It Now! Huge Char Demo: Try It Now! DECPS: Try It Now! Aritm: Try It Now!
Post Reply