Skip to content

Latest commit

 

History

History
147 lines (93 loc) · 5.2 KB

INSTALL.md

File metadata and controls

147 lines (93 loc) · 5.2 KB

Set up

Supercollider

$ sudo apt install supercollider

Follow this guide to rebuild from scratch and without GUI support and enable rt kernel https://supercollider.github.io/development/building-raspberry

General (cloudpicultor)

$ sudo apt install git
$ git clone https://github.com/hordiales/cloudpicultor_instrument

DAC setup (i2s soundcard)

Example phat i2s device (audio) https://learn.pimoroni.com/tutorial/phat/raspberry-pi-phat-dac-install

Automated setup: $ curl https://get.pimoroni.com/phatdac | bash

Jack daemon config

List snd interfaces

aplay -l

Default jack config

$ cp _jackdrc ~/.jackdrc
$ vi ~/.jackdrc

And setup the correct audio device

Update .sc supercollider extesions

$ ./scripts/update-sc-midi-extensions.sh

Dependencies

Note: Beyond API.Cultor framework now supports Python3, this side project still requires Python2

OSC Client

$ git clone https://github.com/ptone/pyosc.git
$ cd pyosc && sudo ./setup.py install

liblo: Lightweight OSC implementation

* [liblo](http://liblo.sourceforge.net/)
* [pyliblo](http://das.nasophon.de/pyliblo/)

    $ sudo apt-get install -y liblo-dev
    $ pip2 install cython 
    $ pip2 install pyliblo 

    $ git clone https://github.com/MTG/freesound-python
    $ cd freesound-python
    $ sudo python setup.py install

Freesound API module

$ git clone https://github.com/MTG/freesound-python
$ cd freesound-python
$ sudo python setup.py install

Pre-processing scripts (saves realtime processing)

$ sudo apt-get install ffmpeg

In Raspberry Pi and other debian based systems replace by: $ sudo apt-get install libav-tools alias ffmpeg=avconv

$ pip install ffmpeg-normalize

Old (check)

Linux

$ sudo apt install librtmidi-dev # y dependencias

$ pip install python-rtmidi

$ wget https://pypi.python.org/packages/49/25/1a8b1290b51fb0d4a499c3285b635c005e30b8ff423fb116db61f3d80ca5/python-rtmidi-1.1.0.zip#md5=dac7edb268a8dcd454fbeeb19ac6fb07
$ unzip python-rtmidi-1.1.0.zip && cd python-rtmidi-1.1.0
$ python setup.py install

Mac

$ brew install rtmidi # lib en c
$ pip2 install python-rtmidi
# Nota: rtmidi bindings para py versión python-rtmidi-0.5b1. La 1.0.0 puede tener problema con threads
$ wget https://pypi.python.org/packages/6f/39/f7f52c432d4dd95d27703608af11818d99db0b2163cec88958efcf7c10cf/python-rtmidi-0.5b1.zip#md5=dba5808d78c843254455efb147fe87b2
$ unzip python-rtmidi-0.5b1.zip && cd python-rtmidi-0.5b1
$ python setup.py install

Windows

# python rtmidi version 1.0.0rc1
# Lo siguiente no funciona, tampoco la versión 0.5b
$ pip install python_rtmidi 

Hay que compilar la librería

$ wget https://pypi.python.org/packages/70/00/4245aedfa5d352cdb086b3a7f329e0446bd13995d2ef69fe3c2a46ca6cee/python-rtmidi-1.0.0rc1.zip#md5=f490ee1a6f8b8e83da3632fe42a203c3
$ unzip python-rtmidi-1.0.0rc1.zip

Compilar rtmidi con Visual Studio 2015 Community Edition no funciona. Hay que instalar el Visual C++ 2010 Express de la siguiente forma:

ffmpeg (wav conversion)

$ sudo apt-get install ffmpeg

(optional) Add custom MIDI external controller defs

Add custom classes to manage MIDI devices

$ sudo cp Extensions/* /usr/local/share/SuperCollider/Extensions 

(optional) Pyo: dedicated Python module for digital signal processing

  $ sudo apt-get install python-dev libjack-jackd2-dev libportmidi-dev portaudio19-dev liblo-dev libsndfile-dev python-dev python-tk python-imaging-tk python-wxgtk2.8

  $ wget http://ajaxsoundstudio.com/downloads/pyo_0.8.5-src.tar.bz2

  $ tar -xvf pyo_0.8.5-src.tar.bz2 && cd pyo_0.8.5-src

  #enable-jack compilation
  $ sudo python setup.py --use-jack install