<commit_before>music-entropy
=============

Finds Shannon's relative entropy of .wav files<commit_msg>Add README examples<commit_after>music-entropy
=============

Finds Shannon's relative entropy of .wav files

For now, only handles stereo, 16-bit sample width .wav files.

Usage:
------
For usage information type:
```
./music.py help
```

Examples:
---------
Plots
^^^^^
```
./music.py plot time '~/01 Roar.wav'
./music.py plot freq '~/01 Roar.wav'

```

Shannon's Relative Entropy:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
./music.py get_shannon_rel_entropy '~/02 - De Praestigiis Daemonum.wav'
```
{'fraction_non_alphanumeric': 0.23777403035413153, 'fraction_numerical': 0.013490725126475547, 'mean_word_length': 4.120689655172414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4240607', 'n_tokens_mistral': 231, 'n_tokens_neox': 200, 'n_words': 55}