Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple chiptune-ish synthesizer written in C.

License

NotificationsYou must be signed in to change notification settings

SirGFM/c_synth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c_synth is a chiptune-ish software synthesizer. It takes a MML (actually alanguage based on MML) song as input and compiles it into the memory. Thecompiled buffer may then be played through whichever backend is desired, as longas it accepts samples in little endian and use either 16 or 8 bits samples.

Compiling and installing

All the following steps where also tested on Windows, usingMinGW.

There are no dependencies to build the library. After cloning it, simply run:

$ sudo make install DEBUG=yes$ sudo make install RELEASE=yes

The library will be installed on /usr/lib/c_synth and the headers on/usr/include/c_synth.

Testing and running

There are a few songs on the directory 'samples/'. They may be compiled andplayed using the examples on the directory 'tst/'.

Some tests uses SDL2 to actually play the compiled songs. On debian-baseddistros, that library may be installed by running:

$ sudo apt-get install libsdl2-dev

For other linux distros, look into your package manager or download thesource and compile it manually.

To build the tests, run:

$ make tests

To play one of the songs:

./bin/Linux/tst_repeatSongSDL2 --frequency 44100 --mode 2chan-16 --file samples/sonic2-chemical.mml

To exit, press Ctrl-C.

About

Simple chiptune-ish synthesizer written in C.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp