Se connecter
Se connecter

ou
Créer un compte

ou
Astuce

Scripts de manipulation des fichiers de patterns

Par .: Odon Quelconque :. le 10/06/2019 - (Tout public)

Pour les amateurs de programmation, l'utilisateur Russell Clarke vient de poster sur le forum Korg US quelques exemples de scripts Python permettant de manipuler les fichiers de sauvegarde de patterns des electribe2 et (probablement) 2S.

http://www.korgforums.com/forum/phpBB2/viewtopic.php?p=769821

 

russellclarke wrote:
Some python scripts for converting e2 pattern files. Should work for e2s with little editing.

 

russellclarke wrote:
I've only tested these scripts on a GNU/Linux system with an e2.

Install Python 3
https://realpython.com/installing-python/

Download zip file of the scripts
https://stackoverflow.com/a/6466993

Extract the zip file.

Open a terminal and change directory to the folder with the scripts in.

Run a script with the --help flag to see a list of options and required arguments, for example:
Code:
python e2all2pat.py  --help

To split an allpat file into a directory of pattern files, the easiest way is to put the allpat file in the same folder as the scripts and run:
Code:
python e2all2pat.py

This should create a folder named split_allpat which contains 250 patterns.

To convert a pattern from e2pat format to syx format, put the pattern file in the same folder as the script and run:
Code:
python e2pat2syx.py filename.e2pat

This will create a sysex file which will dump the pattern to the current pattern on the e2. Save the pattern on the e2 by pressing write twice.

You can create a sysex file which will dump a pattern to a specific pattern number and automatically save by passing the -p flag with a number, for example:
Code:
python e2pat2syx.py -p 64 filename.e2pat

This will create a sysex file that will save the pattern to slot 64 on the e2.

These scripts are the early stages of a larger project which is currently on hold. They're not very user friendly yet, so ask if you need further help. They may need minor edits to work on windows and for e2s files.

 

Pour ceux qui veuilent tester sans passer par la ligne de commande, l'environnement de développement Thonny est bien adapté :

https://thonny.org/

 

A ma connaissance, c'est la première fois qu'on voit quelqu'un utiliser les fonctionnalités SysEx des e2, pour écrire un pattern en mémoire en l'occurrence.

 

A mettre en parallèle avec l'environnement Max4Live d'édition des patterns (en javascript) :

http://www.maxforlive.com/library/device/2816/electribe2-pattern-editor

Et de contrôle :

http://www.maxforlive.com/library/device/4128/electribe-control

 

Si ces initiatives individuelles sont à saluer, on ne cessera jamais de se lamenter que Korg n'ait jamais daigné fournir un éditeur/bibliothécaire officiel pour palier les défauts de ces machines - manifestement inabouties, mais au demeurant attachantes.
D'autant plus impardonnable que l'implémentation technique a été prévue en conséquence dès l'origine.

Soyez le premier à réagir à cette astuce

    Vous souhaitez réagir à cette astuce ?

    Se connecter
    Devenir membre