Comments (10)
I solved it.
The problem was, that I used the wrong USB port on Raspberry PI Zero.
I did not know, that one is only for power and the other one is the USB port!
Second improvemet was, that i connected the +5V to GIPO 2/4, so do not need an extra 5V USB powersupply.
Thank you very much for the project.
from piano-led-visualizer.
my piano has a midi port like this.
is it related to this problem?
from piano-led-visualizer.
Does your piano work when you connect it to your PC?
from piano-led-visualizer.
how can I know it works well when connected to PC?
from piano-led-visualizer.
my piano name is "MPS-120" in kurzweil.
from piano-led-visualizer.
This is the way and the order in which I proceed.
- Automatic midi connection and setting Raspberry Pi as Bluetooth MIDI host
1-1.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ruby git
1-2.
sudo nano /usr/local/bin/connectall.rb
#!/usr/bin/ruby
t = aconnect -i -l
ports = []
t.lines.each do |l|
/client (\d*):/=~l
port = $1
we skip empty lines and the "Through" port
unless $1.nil? || $1 == '0' || /Through/=~l
ports << port
end
end
ports.each do |p1|
ports.each do |p2|
unless p1 == p2 # probably not a good idea to connect a port to itself
system "aconnect #{p1}:0 #{p2}:0"
end
end
end
1-3.
sudo chmod +x /usr/local/bin/connectall.rb
1-4.
sudo nano /etc/udev/rules.d/33-midiusb.rules
ACTION=="add|remove", SUBSYSTEM=="usb", DRIVER=="usb", RUN+="/usr/local/bin/connectall.rb"
1-5.
sudo udevadm control --reload sudo service udev restart
1-6.
sudo nano /lib/systemd/system/midi.service
[Unit] Description=Initial USB MIDI connect
[Service] ExecStart=/usr/local/bin/connectall.rb
[Install] WantedBy=multi-user.target
1-7.
sudo systemctl daemon-reload
sudo systemctl enable midi.service
sudo systemctl start midi.service
1-8.
git clone https://gitlab.com/larsfp/rpi-readonly
cd rpi-readonly
sudo ./setup.sh
1-9
sudo apt-get install libjack0
sudo apt-get install libjack-dev
sudo apt-get install libasound2-dev
-
Enabling SPI
-
Running Visualizer
3-1.
git clone https://github.com/onlaj/Piano-LED-Visualizer
3-2.
pip install RPi.GPIO
pip install webcolors
pip install psutil
pip install mido
pip install Pillow
pip install python-rtmidi
pip install rpi-ws281x
sudo nano /etc/profile
sudo -E python /home/pi/Piano-LED-Visualizer/visualizer.py &
sudo reboot
Is there anything I missed?
from piano-led-visualizer.
Having this same issue. Animations working fine, but not responding to keys being pressed. My PC is picking up MIDI from the piano so should be good to send MIDI to RPI. My keyboard has the same MIDI port (printer cable)
from piano-led-visualizer.
I have the same problem.
LED animation is working.
But no led, when i press a piano key.
What can I change in the set up?
I tryed the USB from the Yamaha piano with my Android tab.
Piano USB B --> Otg Android tab and the App MIDI keyboard.
If I press a key on the Piano, than I see it in the APP. So I think, that the Piano is sending something.
Can you help.
My daughter is loving that LED, but now I am a looser, because it is not working ;-(
from piano-led-visualizer.
I have the same problem.
LED animation is working.
But no led, when i press a piano key.
What can I change in the set up?I tryed the USB from the Yamaha piano with my Android tab.
Piano USB B --> Otg Android tab and the App MIDI keyboard.
If I press a key on the Piano, than I see it in the APP. So I think, that the Piano is sending something.Can you help.
My daughter is loving that LED, but now I am a looser, because it is not working ;-(
go to port settings and refresh ports. After that select your digital piano as the input. With any luck you should be good to go. This tends to happen if the Pi boots up without the piano on so it doesnโt detect the piano while the pi is booting. Let me know if that worked!
from piano-led-visualizer.
Hi,
after refreshing ports, I choose Input.
There are 3 choices
Midi through: midi through Port-0 14:0
ATRRTMIDIout Client: RTMIDI output 132:0
rtpmidi raspberrypi:Network 128:0
I tried all of them, but it did not work.
from piano-led-visualizer.
Related Issues (20)
- My own syntesia HOT 2
- Led lights are not lighting up when keys are pressed HOT 12
- Midi interface not recognized
- Recording Midi file HOT 4
- Web Interface access HOT 1
- 3D Case model for the pi zero HOT 8
- Problems editing sequences HOT 1
- No module named "websockets" HOT 2
- Display remains white HOT 4
- Not an Issue but could expand possibilities of PLV
- What does Clean LED Strip do? HOT 1
- from werkzeug.utils import safe_join HOT 1
- Support for 160 leds/m strip HOT 8
- How does the "LED offset settings" work ?? HOT 1
- Gradient mode in sequences crashes LED Visualizer HOT 7
- LCD Display remains white HOT 5
- CPU Usage hovering 100% and input lag between key press and LED strip HOT 6
- There are no hotspot HOT 1
- 144 leds/m strips HOT 4
- Request for sightreading practice HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piano-led-visualizer.