Crate freesound_credits

Crate freesound_credits 

Source
Expand description

freesound-credits is a simple program to generate Freesound credits in a usable markdown file.

§Usage

Simple program to generate Freesound credits in a usable markdown file

Usage: freesound-credits [OPTIONS] --path <PATH> --title <TITLE> --date <DATE> --artist <ARTIST>

Options:
  -p, --path <PATH>      Path to the samples directory
  -t, --title <TITLE>    Song title (quote multiple words)
  -d, --date <DATE>      Song release date (quote multiple words)
  -a, --artist <ARTIST>  Song artist (quote multiple words)
  -z, --zola             Optionally include Zola frontmatter atop the markdown file
  -h, --help             Print help
  -V, --version          Print version

`

§Example

Run against an Ableton samples directory (also generating the Zola front-matter)

freesound-credits -p Samples/Imported/ -t "Field Notes" -a "Aner Andros" -d "2025-01-09" -z

Structs§

Args
A simple program to generate Freesound credits in a usable markdown file.

Functions§

get_list_of_samples
Scans the given directory for Freesound samples to credit.
set_credit
Extrapolate the sample to credit based on Freesound naming standards.
set_filename
Derives the markdown file name from the song title.
set_frontmatter
Derives a Zola page front-matter header from given song details.
set_header
Paragraph notifying the song uses Creative Commons licensed samples, with links.