/roxang

SFZ diatonic bender script

Primary LanguagePython

diatonic_bender.py is a simple script used to generate SFZ instrument files with diatonic bends.
With it, bends made with the pitch wheel of a MIDI keyboard can stay in the key tone.
For example: with an instrument with pitchs at -1tone +1tone in A minor,
a bent up A will gives a B (2semitones), but a bent up E will give a F (one semitone). So, a bent up G chord will give an Aminor, a bent down G will gives a F.

Important: This feature wont works with LinuxSampler, but it works with Carla Plugin Host!
Just drag and drop your *.sfz file to Carla window.

To make a new instrument just copy/edit a given *.diabd file and run in terminal:
./diatonic_bender my_file.diabd
replace "my_file.diabd" with your file name, of course !

On some systems you'll have to type instead:
python3 diatonic_bender my_file.diabd

-- EN FRANÇAIS --

diatonic_bender.py est un simple script qui permet de générer des instruments au format SFZ avec des bends diatoniques.
Avec ceci, les notes bendés par la molette de pitch d'un clavier MIDI peuvent rester dans la gamme.
Par exemple: Sur un instrument avec les pitchs à -1 ton, + 1 ton en La mineur,
un La modulé vers le haut donnera un Si (+2 demi-tons), alors qu'un Mi donnera un Fa (+1 demi-ton).
Du coup, un accord de SOL modulé vers le haut donnera un LA mineur, modulé vers le bas il donnera un FA.

Important: Ceci ne fonctionnera pas avec LinuxSampler, mais ça marche avec Carla !
Glissez/Déposez votre fichier *.sfz jusqu'à la fenêtre de Carla.

Pour générer un nouvel instrument, copiez/editez un ficher en *.diabd fourni et lancez via le terminal:
./diatonic_bender mon_fichier.diabd
Remplacez "mon_fichier.diabd" par le nom du fichier utilisé, ça va de soit!

Sur certains systèmes vous devrez tapez à la place:
python3 diatonic_bender mon_fichier.diabd