Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skratchdot/soundfont2mp3
soundfont2mp3 is a command line utility that lets you extract single note mp3s from soundfont files.
https://github.com/skratchdot/soundfont2mp3
Last synced: about 2 months ago
JSON representation
soundfont2mp3 is a command line utility that lets you extract single note mp3s from soundfont files.
- Host: GitHub
- URL: https://github.com/skratchdot/soundfont2mp3
- Owner: skratchdot
- License: mit
- Created: 2013-07-31T19:16:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T07:38:38.000Z (about 6 years ago)
- Last Synced: 2024-10-13T23:36:55.275Z (about 2 months ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 14
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
- awesome-javascript-audio - skratchdot/soundfont2mp3 - a command line tool for extracting single note mp3s from soundfont files (Sound assets / SoundFonts)
README
# soundfont2mp3
soundfont2mp3 is a command line utility that lets you extract
single note mp3s from soundfont files.## Installation ##
Install the command line tool globally by running:
npm install -g soundfont2mp3
## Usage ##
Usage: soundfont2mp3 [options]
## Options ##
-h, --help output usage information
-v, --version output the version number
-c, --channel the midi channel
-i, --instrument the midi instrument
-n, --note the midi note to export
-d, --duration the duration of the note in ticks. there are
128 ticks per beat, so a quarter note has a
duration of 128.
-v, --velocity the velocity of the note
-g, --gain the velocity of the note
-e, --endtick the tick number of the end of the track
-s, --soundfont the soundfont file
-o, --output the .mp3/.wav/.js/.mid file to output
--no-reverb don't add reverb
--no-chorus don't add chorus## Dependencies
- [FluidSynth](http://sourceforge.net/apps/trac/fluidsynth/)
- [Lame](http://lame.sourceforge.net/)
- [Sox](http://sox.sourceforge.net/)
- A valid soundfont file (see [Free Soundfonts](https://github.com/skratchdot/soundfont2mp3/#free-soundfonts))
## Free Soundfonts
- [S. Christian Collins GeneralUser GS](http://www.schristiancollins.com/generaluser.php) - 30 MB
- [Fluid (R3) General MIDI SoundFont (GM)](http://packages.debian.org/search?keywords=fluid-soundfont-gm) - 140 MB
## Example Usage
```bash
#!/bin/bash
BASE_FOLDER="."
SOUNDFONT="./gs.sf2"# make channel folder
mkdir -p "$BASE_FOLDER/channel"
mkdir -p "$BASE_FOLDER/channel/0"
mkdir -p "$BASE_FOLDER/channel/0/instrument"for i in {0..127}
do
mkdir -p "$BASE_FOLDER/channel/0/instrument/$i";
for j in {0..127}
do
soundfont2mp3 -i $i -n $j -s "$SOUNDFONT" -o "$BASE_FOLDER/channel/0/instrument/$i/$j.mp3"
done
done
```