Page 1 of 1

DECPS Player - VT520/VT525 Play Sound Simulator

Posted: Sat Jun 04, 2022 2:13 am
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.



Re: DECPS Player - VT520/VT525 Play Sound Simulator

Posted: Fri Apr 07, 2023 12:52 am
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