BasicPlay

BasicPlay

From Evan Sultanik

Jump to: navigation, search

Image:Console.png
Code Repository http://svn.sultanik.com/basicplay/
Website http://www.sultanik.com/BasicPlay

BasicPlay is an application I wrote back in 2004 to parse the BASIC programming language's PLAY statement (used for representing music). BasicPlay converts the sounds to a sequence of frequencies which can then be saved in numerous formats including Interactive C and the BASIC SOUND statement. The sounds can also be rendered to a WAVE file.

Installation

$ svn co http://svn.sultanik.com/basicplay/
$ cd trunk
$ make
$ sudo make install

Usage

Detailed usage instructions are available in the man pages (you can compile and load the man page by running make man in the code directory).

Example WAV rendering

The following PLAY statement:

t40o4c2L4eg<b.>l16cdf12c>a14g>c<gl16gfef12e<
a8l16b>cdefgagfedc<bag8ab>cdefgfedc<bagf8gab
>cdefedc<bagfe8fgab>cdedc<bagfed8efgab>c#d<a
b>c#defgab>c<bagfefgagfedc<l8bms>gecmldgmsec
d4g4<g2g2>c4e4g2l16agfefedcedededededededcdc
4c<g>cegecefd<b>dc4c<g>cegecefd<b>dc4>c4c2

will produce this WAV: