GithubHelp home page GithubHelp logo

shalashify / pytribe Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 3.0 8 KB

Use Korg Electribe 2 as MIDI Sequencer to trigger samples from computer

Python 100.00%
midi midi-controller korg-electribe midi-sequencer sampler korg electribe mido sample-player sample-sequencer

pytribe's Introduction

pytribe

Use Korg Electribe 2 as MIDI Sequencer to trigger samples from computer.

Can be useful to arrange and test different sample sets before loading them to Electribe Sampler (or any other sampler) or use computer as a sample player in combination with Electribe synths.

Functions

MIDI note_on messages from Electribe are used to trigger samples.

Samples are loaded from source directory (configure in .ini file). Source directory can include multiple sets e.g.

Sample_Dir
├── 100_Sample_Set_1
│   ├── 01_Kick.wav
│   ├── 02_Snare.wav
│   ├── 03_Shaker.wav
│   ├── 04_Closed_Hat.wav
│   ├── 05_Open_Hat.wav
│   └── 06_Tom.wav
├── 200_Sample_Set_2
│   ├── 09_Kick.wav
│   ├── 10_Snare.wav
│   ├── 14_Closed_Hat.wav
│   ├── 15_Open_Hat.wav
│   ├── 16_Tom.wav
│   └── readme.txt

Number of the set (100, 200) can be selected via command prompt or set via .ini file.

Number of the sample (01, 02, 15) within the set corresponds to Electribe 2 pad number (upper row being 1-8, lower row 9-16). Number of the sample is thus used to map a sample to a MIDI Channel. Only channels that have samples assigned to them will be treated as relevant. Thus it is possible to trigger samples at computer and play Electribe's own synths in parallel.

Level knob controls of the respective channel at Electribe controls the level of each sample.

Example

amb:pytribe alec$ python3 pytribe.py alec.ini


               _____ ___ ___ ___ ___
      _ __ _  |_   _| _ \_ _| _ ) __|
     | '_ \ || || | |   /| || _ \ _|
     | .__/\_, ||_| |_|_\___|___/___|
     |_|   |__/



Directory: /Users/alec/Music Production/Tools/Samples/pytribe
Contains Sets
  /Users/alec/Music Production/Tools/Samples/pytribe/228_Vinyl_Set_1/
  /Users/alec/Music Production/Tools/Samples/pytribe/229_Vinyl_Set_2/
  /Users/alec/Music Production/Tools/Samples/pytribe/230_Standard_Set_1/
  /Users/alec/Music Production/Tools/Samples/pytribe/300_experiment/
  /Users/alec/Music Production/Tools/Samples/pytribe/232_Standard_Set_3/
  /Users/alec/Music Production/Tools/Samples/pytribe/231_Standard_Set_2/
Which set number to use? (default: 100) 228
Loading: /Users/alec/Music Production/Tools/Samples/pytribe/228_Vinyl_Set_1
   MIDI CHANNEL 09 --> 09_Kick.wav
   MIDI CHANNEL 10 --> 10_Snare.wav
   MIDI CHANNEL 11 --> 11_Shaker.wav
   MIDI CHANNEL 12 --> 12_Closed_Hat.wav
   MIDI CHANNEL 13 --> 13_Open_Hat.wav
   MIDI CHANNEL 15 --> 15_Tom.wav
Ready to rock! Start your Sequencer!
CTRL+C to exit

Dependencies

  • pygame
  • mido

pytribe's People

Contributors

shalashify avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  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.