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
513 stars 111 forks source link

List of midifiles not updated #379

Closed AL1-1956 closed 1 year ago

AL1-1956 commented 2 years ago

Hello Maybe i'm doing something wrong or have'nt read in the doc but I have one problem When I upload new midi files in the Pi by mean of the Web Interface , I can see in SSH that files are updated but when I go into the "load song" menu on the LCD , it is still the old list

One example I upload 4 files named 046.mid 047.mid 048.mid 049.mid then I reboot the PI

pi@raspberrypi:/home/Piano-LED-Visualizer/Songs $ ls 046.mid 047.mid 048.mid 049.mid cache

the files are in the load song menu of the LCD

then I erase these files (Trashcan Web Interface) and upload 4 new files 050.mid 051.mid 052.mid 053.mid

pi@raspberrypi:/home/Piano-LED-Visualizer/Songs $ ls 050.mid 051.mid 052.mid 053.mid cache

So the files are indeed in the Pi memory , but when I try to load them from the LCD menu "load song" , it is still the old files that i see

To see the new files I have to reboot the PI

Is this normal ??

Have a nice day

onlaj commented 2 years ago

So the files are indeed in the Pi memory , but when I try to load them from the LCD menu "load song" , it is still the old files that I see

What about songs list on web interface? Does it update? My RPi is damaged so currently I'm not able to test it.

edit. I managed to launch it and upload some files (before Rpi overheated and shut down). It updated songs list both on web interface and lcd screen, so it's working as it should on my setup. I noticed that it showed "cache" folder in lcd's songs list, I'm gonna fix that in future updates.

AL1-1956 commented 2 years ago

Hello and thanks for the quick answer The files are updated in the web interface and in the PI but the Visualizer still shows the old list of files wich do not exist anymore . The only way for me to see the new files in the Visualizer is to rebot the PI.

onlaj commented 2 years ago

After uploading new files go to menu -> Ports Settings -> Refresh ports

It should also refresh songs list.

AL1-1956 commented 2 years ago

Okay . So I did the "Refresh ports" trick and it worked. No need to reboot the PI after a change of the playlist

And for my other problem (Issue #380) about raspi-config not working , forget it , it is now OK too !! I still have one question , since I do not need the rtpmidi and the autoconnect how can I disable them ??

Thank you so much for all the backup and help you give on this project.

Alain