Giter Site home page Giter Site logo

sfz-generator's Introduction

SFZ soundfont generator

SFZ Generator is a simple bash script to generate basics sfz soundfonts libraries.

Usage

./generate_sfz.sh /path/to/samples/dir/ file.sfz

'file.sfz' file will be placed in '/path/to/samples/dir/' folder to avoid relative path errors.

Configuration

SFZ Generator configuration is based on files names. Each file contains its own parameters.

Basic parameters

If your file is named /dir/HiHat__lokey:62__hikey:64__pitch_keycenter:63.wav :

  • lokey:62 will surcharge 'lokey' value in templates/group.txt to generate output sfz.
  • hikey:64 will surcharge 'hikey' value in templates/group.txt to generate output sfz.

Each parameters in group.txt can be overridden by this. Each value must be separated by "__" (two '_') in file name.

Special parameters

  • K: : Note key. It can be a MIDI number (like '60') or a note (like 'C#3'). It will set 'lokey', 'hikey' and 'pitch_keycenter' values.
  • K:- : Note range. It will set 'lokey' and 'hikey' values. If it is used for files, 'pitch_keycenter' must be setted ('__pitch_keycenter:<note>')

Examples

/
├── samples/
│   ├── drum__K:C2-B2/
│   │   ├── Kick__K:C2.wav
│   │   ├── Kick2__K:C#2.wav
│   │   ├── Snare__K:D2.wav
│   │   ├── HiHatClosed__K:F#2.wav
│   │   ├── HiHatOpen__K:G#2.wav
│   ├── piano__K:C3-B3/
│   │   ├── K:C2.wav
│   │   ├── K:C#2.wav
│   │   ├── K:D2.wav
│   │   ├── K:D#2-G2__pitch_keycenter:E2.wav
...

./generate_sfz.sh /samples/ mySoundFont.sfz

sfz-generator's People

Contributors

rey0bs avatar

Stargazers

 avatar Eoin Gairleog avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.