Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 1.4 KB

README.md

File metadata and controls

72 lines (47 loc) · 1.4 KB

Dats

A digital audio text station.

The "Hello World" of dats:

staff pol {
  n 4, c4;
  n 4, d4;
  n 4, e4;
  n 4, f4;
  n 4, g4;
  n 4, a4;
  n 4, b4;
  n 4, c5;
}

main {
  // This uses the synthesizer named "kpa"
  // An implementation of Karplus-Strong Algorithm
  track kol = synth.kpa(pol);
  write("sample.wav", kol);
}

Execute dats file as dats file.dats

Note: This software is unstable, and more changes will have to come.

Building

Building Dats requires fluidsynth, and with it, should compile on Windows and *nix operating systems, provided that the compiler provides GNU extensions.

*nix

make -j4 && make install && make test

Documentation

See https://github.com/dats-lang/dats-tex

Contributing

PRs are warmly welcomed. Make sure you clang-format -i *.[ch] your sources before doing so. You can begin by grepping "FIXME" through sources and read what needs to be done. find . -name \*.c -exec grep -n FIXME {} \+.

TODO

  • libdsynth - Provides synthesizers.

  • libdfilter - Provides filters for manipulating raw PCM s16le data.

DIR

  • libdsynth - Provides synthesizers.

  • libdfilter - Provides wrappers for filters or filters for manipulating raw PCM s16le data.

  • dats - Source code of dats.

  • sndfilter - Provides filters for manipulating raw PCM s16le data.

  • test - Contain example dats file for testing the Dats interpreter

  • doc - Documentation for dats