Giter VIP home page Giter VIP logo

Comments (10)

HansiJung avatar HansiJung commented on May 28, 2024 1

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.

hyuny223 avatar hyuny223 commented on May 28, 2024

my piano has a midi port like this.
is it related to this problem?
Screenshot_20191228-194029_Samsung Internet

from piano-led-visualizer.

onlaj avatar onlaj commented on May 28, 2024

Does your piano work when you connect it to your PC?

from piano-led-visualizer.

hyuny223 avatar hyuny223 commented on May 28, 2024

how can I know it works well when connected to PC?

from piano-led-visualizer.

hyuny223 avatar hyuny223 commented on May 28, 2024

my piano name is "MPS-120" in kurzweil.

from piano-led-visualizer.

hyuny223 avatar hyuny223 commented on May 28, 2024

This is the way and the order in which I proceed.

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

  1. Enabling SPI

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

devucsb avatar devucsb commented on May 28, 2024

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.

HansiJung avatar HansiJung commented on May 28, 2024

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.

devucsb avatar devucsb commented on May 28, 2024

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.

HansiJung avatar HansiJung commented on May 28, 2024

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)

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.