DECPS Player - VT520/VT525 Play Sound Simulator

These files might not work on the most current version of the Commander X16, or these may be held over from the previous forum. To find previous versions of the emulator, so you can test old programs, please visit Our GitHub Page
Post Reply
mobluse
Posts: 175
Joined: Tue Aug 04, 2020 2:16 pm
Location: Lund, Sweden
Contact:

DECPS Player - VT520/VT525 Play Sound Simulator

Post by mobluse »


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.




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:

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.



Fixed spelling of chord.


Attachments
DECPS Player - VT520/VT525 Play Sound Simulator
DECPS Player - VT520/VT525 Play Sound Simulator
2022-06-04-002753_640x480_scrot.png (16.66 KiB) Viewed 4796 times
DECPS Player - VT520/VT525 Play Sound Simulator
DECPS Player - VT520/VT525 Play Sound Simulator
2022-06-04-002417_640x480_scrot.png (17.59 KiB) Viewed 4796 times
decps.zip
DECPS Player - VT520/VT525 Play Sound Simulator
(4.97 KiB) Downloaded 345 times
X16&C64 Quiz: Try It Now! Huge Char Demo: Try It Now! DECPS: Try It Now! Aritm: Try It Now!
mobluse
Posts: 175
Joined: Tue Aug 04, 2020 2:16 pm
Location: Lund, Sweden
Contact:

Re: DECPS Player - VT520/VT525 Play Sound Simulator

Post by mobluse »

Try It Now!!
I didn't yet want to make a new release, but included a manifest so that Try it now works. I don't have the rights update the original post. You can read more about DECPS Player at:
viewtopic.php?t=3060
#R38 #R39 #R41 #R42 #R43
X16&C64 Quiz: Try It Now! Huge Char Demo: Try It Now! DECPS: Try It Now! Aritm: Try It Now!
Post Reply