onlaj / Piano-LED-Visualizer

Piano LED Visualizer: Connect an LED strip to your Raspberry Pi and create an immersive visual experience for your piano playing
MIT License
545 stars 115 forks source link

No playback port & leds doesnt respond to keys #62

Closed Roloo38 closed 4 years ago

Roloo38 commented 4 years ago

Hi there. I set up the raspberry after the github instructions, the leds are working with the strandtest.py examples, but when i connect my piano to the rpi, and run the command:

sudo -E python visualizer.py

It show me the piano name, but says “no playback port” and the leds doesnt light up. Any ideea why? I dont use synthesia btw, and i use “python3” because if i write only “python” it runs with pyton 2.7, which is not in use anymore (i think).

845C3792-6FC7-48E2-AF43-5A2AB3C81E39

onlaj commented 4 years ago

Don't worry about playback port. I can see that your keyboard is seen by system as two devices. Try to change input in Visualizer menu (Port Settings -> Input) to something else.

Roloo38 commented 4 years ago

@onlaj Thanks for the fast replay!! I’m a beginner at raspberry, so my question is: how do I change the input in visualizer?

I dont use the little waveshare screen, i have the raspberry connected to a monitor with hdmi, keyboard and mouse.

onlaj commented 4 years ago

Oh, unfortunately you can't change any settings without screen hat, you would have to edit the code and set input as a fix name, then try all available ports.

Roloo38 commented 4 years ago

And if i connect the led screen, i can change it directly?

Because i have the screen, but i didnt use it yet

onlaj commented 4 years ago

Yes, with screen connected you will have menu with all settings.

Roloo38 commented 4 years ago

I connected the screen, and is white, nothing appears on it. So i was followed the instructions from “ https://neuma.studio/rpi-as-midi-host.html “, and i got some problems with “lcd-show.py” and with

lcd-show.py "first line" "second line" "here's a quite long line" "4th line of text"

connectall.rb

Any ideea why?

image image

onlaj commented 4 years ago

You have to run visualizer.py to see menu.

Roloo38 commented 4 years ago

I runned the visualizer.py and the screen is still white. I think i didnt set it up correctly. I followed the instructions on the neuma.studio website and i got an error with “lcd-show” which cannot be found Any ideea why?

onlaj commented 4 years ago

You should only follow those parts of neuma tutorial:

Nothing more.

Roloo38 commented 4 years ago

And for the screen is some code i need to run or just plug and play? Because the screen still doesn’t work even when i run the visualizer.py...

onlaj commented 4 years ago

If you connected it correctly it should work. Can you take a picture?

Roloo38 commented 4 years ago

So I rebooted it and now work (sorry, my fault:)

I’m gonna connect the cables for leds, and let you know if it works

Roloo38 commented 4 years ago

All is okay, working well. Thanks for your help and time!!