<commit_before><h4 align="center">
  <br>
  <img width="256" src="https://cdn.rawgit.com/frabert/libdmusic/3ea57d5/media/logo.svg">
  <br>
  <img width="256" src="https://cdn.rawgit.com/frabert/libdmusic/3ea57d5/media/logo_full.svg">
  <br>
</h4>

libdmusic [![Linux build Status](https://travis-ci.org/frabert/libdmusic.svg?branch=master)](https://travis-ci.org/frabert/libdmusic) [![Windows build status](https://ci.appveyor.com/api/projects/status/7t7ral8wos4p7idc?svg=true)](https://ci.appveyor.com/project/frabert/libdmusic) [![Gitter chat](https://badges.gitter.im/frabert/libdmusic.png)](https://gitter.im/frabert/libdmusic)
=========

Project goals
-------------

`libdmusic` aims to provide a framework and suite of tools to enable applications and games playback of Microsoft DirectMusic audio files. The main aim of the project for now is to provide a way for the [REGoth project](https://github.com/REGoth-project/REGoth) to reproduce music files from the original Gothic and Gothic II games.

Compiling
---------

Currently, `libsndfile` needs to be present on the system at the moment of compilation:
this can be ensured on Linux and macOS by installing the correct packages (e.g. `libsndfile1-dev` on Debian/Ubuntu),
while on Windows it needs to be compiled manually:

````batch
$ git clone --recursive https://github.com/frabert/libdmusic
$ mkdir build-sndfile
$ cd build-sndfile
$ cmake -D CMAKE_INSTALL_PREFIX=%HOMEPATH%/libsndfile libdmusic/utils/dls2sf/lib/libsndfile<commit_msg>Edit proportions<commit_after><h4 align="center">
  <br>
  <img width="128" src="https://cdn.rawgit.com/frabert/libdmusic/3ea57d5/media/logo.svg">
  <br>
</h4>

<img width="256" src="https://cdn.rawgit.com/frabert/libdmusic/3ea57d5/media/logo_full.svg"> [![Linux build Status](https://travis-ci.org/frabert/libdmusic.svg?branch=master)](https://travis-ci.org/frabert/libdmusic) [![Windows build status](https://ci.appveyor.com/api/projects/status/7t7ral8wos4p7idc?svg=true)](https://ci.appveyor.com/project/frabert/libdmusic) [![Gitter chat](https://badges.gitter.im/frabert/libdmusic.png)](https://gitter.im/frabert/libdmusic)
=========

Project goals
-------------

`libdmusic` aims to provide a framework and suite of tools to enable applications and games playback of Microsoft DirectMusic audio files. The main aim of the project for now is to provide a way for the [REGoth project](https://github.com/REGoth-project/REGoth) to reproduce music files from the original Gothic and Gothic II games.

Compiling
---------

Currently, `libsndfile` needs to be present on the system at the moment of compilation:
this can be ensured on Linux and macOS by installing the correct packages (e.g. `libsndfile1-dev` on Debian/Ubuntu),
while on Windows it needs to be compiled manually:

````batch
$ git clone --recursive https://github.com/frabert/libdmusic
$ mkdir build-sndfile
$ cd build-sndfile
$ cmake -D CMAKE_INSTALL_PREFIX=%HOMEPATH%/libsndfile libdmusic/utils/dls2sf/lib/libsndfile
{'fraction_non_alphanumeric': 0.14621059691482227, 'fraction_numerical': 0.015425888665325285, 'mean_word_length': 4.803501945525292, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4371714', 'n_tokens_mistral': 1064, 'n_tokens_neox': 991, 'n_words': 252}