The following repository is a dump for all the code and work done on the passive haptic learning project.
pip install pygame pip install pyserial pip install mido
pip install numpy scipy matplotlib ipython jupyter pandas sympy nose
Clean all hard coded strings
- arecordmidi to capture MIDI events.
- Port 24 ist the default port of Teco's Casio Piano, to detect the port use "pmidi -l"
arecordmidi -p 24:0 scale.mid
- timidity to play MIDI files.
- Installation and usage
Source: https://sfxpt.wordpress.com/2015/02/02/how-to-play-midi-files-under-ubuntu-linux/
sudo apt-get install freepats timidity timidity-interfaces-extra timidity -iA timidity some_file.mid
- Installation and usage
- Error:
ALSA lib conf.c:3558:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so (/usr/lib/alsa-lib/libasound_module_conf_pulse.so: libasound_module_conf_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib seq.c:935:(snd_seq_open_noupdate) Unknown SEQ default
Solution:
sudo ln -s /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_conf_pulse.so /usr/lib/x86_64-linux-gnu/libasound_module_conf_pulse.so
- extract the tar.gz file
- go to the extracted folder
- follow the instructions of the INSTALL file
- before executing make install you have to patch some files
- use patch -p1 < [filename].patch for each of the patchfiles
- before executing make install you have to patch some files