Skip to content

Scripts

bangcorrupt edited this page Sep 21, 2022 · 2 revisions

Scripts

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

python e2all2pat.py  --help	

e2all2pat.py

Converts allpat file to a directory of e2pat files.

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:

python e2all2pat.py	

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


e2pat2syx.py

Converts a pattern file in e2pat format to a pattern file in sysex format.

To convert a pattern from e2pat format to syx format, put the pattern file in the same folder as the script and run:

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:

python e2pat2syx.py -p 64 filename.e2pat	

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


e2syx2pat.py

Converts a pattern file in sysex format to pattern file in e2pat format.

Converting a pattern in syx format to a e2pat format is similar.

python e2syx2pat.py filename.syx	

e2seqrot.py

Rotates sequence of specified part by specified number of steps. Takes e2pat as input.

To rotate the sequence of part 9 by 4 steps, run:

python e2seqrot.py -p 9 -r 4 -i filename.e2pat	

This will overwrite the pattern file with a new version.

Use the -o flag to specify a new output file and keep the original intact. For example:

python e2seqrot.py -p 9 -r 4 -i filename.e2pat -o rotated.e2pat

e2pat2all.py

Create allpatterns from a single pattern.

Take an input "Init" pattern file (e.g. 001_Init.e2pat) and use to initialize an entire .e2sallpatterns file:

python e2pat2all.py -i 001_Init.e2pat

Optionally pass a .e2allpatterns file (a default is provided) to maintain preferred global settings.


e2ev.py

Split event recording by pattern, create stems, mute parts, extract and replace patterns.

Print info on patterns found in file.e2ev:

python e2ev.py file.e2ev -i	

Split a multi pattern event recording into multiple single pattern event recordings:

python e2ev.py file.e2ev -s	

Create a stem event recording consisting of parts 1, 5 and 16 named 'drums':

python e2ev.py file.e2ev -c 0 4 15 -n drums	

This will create file_drums_stem.e2ev

Mute channel 16 of the event recording:

python e2ev.py file.e2ev -m 15	

This will overwrite the original file.e2ev

Extract all patterns files found in file.e2ev:

python e2ev.py file.e2ev -e	

Patterns will be saved as file_pat_x.e2pat

Replace the second pattern of file.e2ev with pattern.e2pat:

python e2ev.py file.e2ev -r 1 -p pattern.e2pat

e2sysex.py

Communicate with electribe 2 via SysEx


e2-header.py

Edit file header to load sampler firmware on synth hardware


e2-init-pat.py

Insert custom init pattern in electribe 2 sampler firmware version 2.02


e2_syx_codec.py

Encode/Decode bytes to and from electribe SysEx format


e2_groove_template.py

Read, modify and write groove templates in RAM using MIDI.


e2-backup-bootloader.py

Read the Secondary Bootloader (SBL) from On-Chip RAM using MIDI.

This is not the Application Image Script (AIS) stored in the flash.

Do not write this data to flash memory.


hacktribe-tutorial.sh

Apply the hacktribe patch using bash and python.

Includes comments explaining each step.