MIDI input - Raspberry Pi Forums
hello there
don't know if i'm posting on right channel. use reading midi serial connection.
i've googled allot , still couldn't succeed in reading simple midi input on raspberry.
have done far is:
- change /boot/cmdline.txt - added new lines /boot/config.txt change uart clock , baud rate although uart clock not "2441406", when check "vcgencmd measure_clock uart"
"frequency(22)=2441000"
have used this schematic, connecting midi rpi's serial.
i've tried little luck writing own python script reading midi, totally wrong i'm new coding if me python script , setting rpi show few midi bytes. general idea how uart should work midi. ? or point me in right direction ? preatty new python , linux gentle on big words , such.
don't know if i'm posting on right channel. use reading midi serial connection.
i've googled allot , still couldn't succeed in reading simple midi input on raspberry.
have done far is:
- change /boot/cmdline.txt
code: select all
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
code: select all
# change uart clock 2441406 midi 31250 baud rate init_uart_clock=2441406 init_uart_baud=38400
"frequency(22)=2441000"
have used this schematic, connecting midi rpi's serial.
i've tried little luck writing own python script reading midi, totally wrong i'm new coding
code: select all
import serial import time ser = serial.serial(port="/dev/ttyama0", baudrate=38400,) data = ser.read(2) print data
raspberrypi
Comments
Post a Comment