Skip to content
/ sammy Public

A simple tool for normalizing audio sample filenames.

License

Notifications You must be signed in to change notification settings

kayex/sammy

Repository files navigation

sammy

Sammy is a simple tool for normalizing audio sample filenames.

Functionality

Sammy tries to normalize filenames by following a few simple rules:

  • Naked keys are assumed to be major and will be suffixed with "maj" (A becomes Amaj).
  • Minor keys on the format Am will have their suffix changed to "min" (Am becomes Amin).
  • Keys with flat key signatures will be converted into the corresponding sharp keys (Eb becomes D#).

Below are a few examples of normalizations that sammy performs.

Original Normalized
Chords_A_120.wav Chords_Amaj_120.wav
Chords_Am_120.wav Chords_Amin_120.wav
CHORDS-AM-120.wav CHORDS-Amin-120.wav
Chords_Db_120.wav Chords_C#maj_120.wav
Chords_Ebmin_120.wav Chords_D#min_120.wav

Building

./build.sh

To enable the debug console, build using

./build.sh debug

Supported file extensions

  • .wav, .wave
  • .flac
  • .mp3, .mp4
  • .aiff
  • .ogg, .ogv, .oga, .ogx, .ogm, .spx, .opus

About

A simple tool for normalizing audio sample filenames.

Resources

License

Stars

Watchers

Forks