Return to “fruitbox MP3 jukebox”

by karrika
Mon Dec 27, 2021 7:19 am
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

You could run alsamixer from the comman line to see what devices alsa uses.

I am currently running Ubuntu in a VMware instance on a Windows laptop. The alsa libraries I have installed are:
ii alsa-base 1.0.25+dfsg-0ubuntu5 all ALSA driver configuration files
ii alsa-topology-conf 1.2.2-1 all ALSA topology configuration files
ii alsa-ucm-conf 1.2.2-1ubuntu0.11 all ALSA Use Case Manager configuration files
ii alsa-utils 1.2.2-1ubuntu2.1 amd64 Utilities for configuring and using ALSA
ii gstreamer1.0-alsa:amd64 1.16.2-4ubuntu0.1 amd64 GStreamer plugin for ALSA
ii libsox-fmt-alsa:amd64 14.4.2+git20190427-2 amd64 SoX alsa format I/O library
by rambis
Wed Feb 24, 2021 9:16 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

fruitbox wrote:
Mon Feb 15, 2021 12:14 pm

Not sure why jack and HDMI give you different volume levels...maybe some system setting? Fruitbox itself doesn't know which device the sound data is sent to.

Some other things you can try is running alsamixer from the command line and check/adjust the volume. Then try the volume setting in the fruitbox skin cfg file, then finally try adjusting the volume when fruitbox is running with the volume buttons (+/= by default, but it sounds like you've done this already).

Hope that helps...

Mike
Thank you Mike... alsamixer works fine... the level was less than half... now we adjust to 80% and the volume is good and at the right level.


Another question :-)

In the album mode the songs seems in random order.
The songs are in the folder with the name "singer - album" and are named 01-abc, 02-def ecc. or 01 abc, 02 def ecc. or similar mode.
The tag contain the basic informations (tracknumber, singer, album, title ecc)
But the songs aren't in the correct order...

any suggestions?

bye
by fruitbox
Mon Feb 15, 2021 12:14 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

rambis wrote:
Sun Feb 14, 2021 4:07 pm

in the TV connected via HDMI that we use for the initial configuration, the volume is high.
then we try an HDMI to VGA adapter and take the audio from the jack output... but the volume level is really really low.
it's better if we take the volume fron the adapter, but it's lower of what came from HDMI to TV.

Is there a parameter to set for raise the volume? we try the default command "-" and "=" but they don't work...

Bye and Thank You
Hi

Not sure why jack and HDMI give you different volume levels...maybe some system setting? Fruitbox itself doesn't know which device the sound data is sent to.

Some other things you can try is running alsamixer from the command line and check/adjust the volume. Then try the volume setting in the fruitbox skin cfg file, then finally try adjusting the volume when fruitbox is running with the volume buttons (+/= by default, but it sounds like you've done this already).

Hope that helps...

Mike
by fruitbox
Fri Jan 10, 2020 7:56 am
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

MrPathetic wrote:
Fri Jan 10, 2020 3:28 am
hello again. got it all running on a new raspberry pi but have no sound. im running the lite version of raspbian so my guess is there is something i have to type in? please help
I'm assuming it's not fruitbox related, so try this link...

https://www.raspberrypi.org/documentati ... -config.md

Also you can check the master volume from the command line by typing alsamixer

Cheers
Mike
by jnichel
Sun Jun 30, 2019 12:26 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

fruitbox wrote:
Sun Jun 30, 2019 9:06 am
jnichel wrote:
Sun Jun 30, 2019 12:53 am

Mike, thank you very much. This worked great.

I'm having an issue with sound though. I've gone through numerous posts trying to figure out why I'm not getting sound from the 3.5 jack or HDMI, but no luck with Fruitbox on Raspbian Stretch Lite. When I couldn't get any the online solutions to work, I thought maybe the board was bad somehow, so I flashed another card with Raspbian Buster with Desktop and sound worked fine on both 3.5 and HDMI. Put the card with Fruitbox on it in another Pi that I know has working sound, but no sound there. Is there anything specific to Fruitbox for sound?
Hi,

Sounds like your hardware is ok, so it's going to be a setup problem.

First thing to check is that the default broadcom sound driver is loaded. In the /boot/config.txt file you need to have the following line somewhere...

Code: Select all

dtparam=audio=on
If not, you need to add it. Remember to edit it in superuser mode, i.e.

Code: Select all

sudo nano /boot/config.txt
Second thing to check is that your master volume isn't turned down. Run alsamixer from the command line and crank up the volume using the cursor 'up' keyboard key.

Third thing you could try is to see if the default ALSA sound device is recognised by the OS. Type aplay -l (that's the letter 'l') from the command line and see if it detects the ALSA PLAYBACK device (probably card 0).

If both the above look ok, then you can use aplay to play a wav file. Copy a .wav file onto your Pi and use the command aplay <your wav file>. If you don't hear anything, then it's a system issue, not a fruitbox issue. Let me know what happens and we'll have another think...

Cheers,
Mike
Doh! I feel like such an idiot. The master volume was turned down. Thanks again Mike. Next up is to build a cabinet for this to look like an old juke box.
by fruitbox
Sun Jun 30, 2019 9:06 am
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

jnichel wrote:
Sun Jun 30, 2019 12:53 am

Mike, thank you very much. This worked great.

I'm having an issue with sound though. I've gone through numerous posts trying to figure out why I'm not getting sound from the 3.5 jack or HDMI, but no luck with Fruitbox on Raspbian Stretch Lite. When I couldn't get any the online solutions to work, I thought maybe the board was bad somehow, so I flashed another card with Raspbian Buster with Desktop and sound worked fine on both 3.5 and HDMI. Put the card with Fruitbox on it in another Pi that I know has working sound, but no sound there. Is there anything specific to Fruitbox for sound?
Hi,

Sounds like your hardware is ok, so it's going to be a setup problem.

First thing to check is that the default broadcom sound driver is loaded. In the /boot/config.txt file you need to have the following line somewhere...

Code: Select all

dtparam=audio=on
If not, you need to add it. Remember to edit it in superuser mode, i.e.

Code: Select all

sudo nano /boot/config.txt
Second thing to check is that your master volume isn't turned down. Run alsamixer from the command line and crank up the volume using the cursor 'up' keyboard key.

Third thing you could try is to see if the default ALSA sound device is recognised by the OS. Type aplay -l (that's the letter 'l') from the command line and see if it detects the ALSA PLAYBACK device (probably card 0).

If both the above look ok, then you can use aplay to play a wav file. Copy a .wav file onto your Pi and use the command aplay <your wav file>. If you don't hear anything, then it's a system issue, not a fruitbox issue. Let me know what happens and we'll have another think...

Cheers,
Mike
by fruitbox
Mon Jun 17, 2019 7:23 am
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

DA313 wrote:
Mon Jun 17, 2019 1:14 am
Thanks again Mike. The alsamixer was the perfect solution. FYI to HiFiBerry Amp2 users, you probably want your max digital volume to be around 60%ish if you want to be able to have a conversation while the music plays. I can't wait to show you the finished project.

That's great.

Not sure if it's of any interest to you, but on GitHub I have a separate project called rotary_alsa_volume which you can run alongside fruitbox, and will let you control the alsamixer volume using a rotary encoder connected to two GPIO of your choice. This way you can have an old style knob you turn to change the volume.

https://github.com/chundermike/rotary_alsa_volume

Cheers
Mike
by DA313
Mon Jun 17, 2019 1:14 am
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

fruitbox wrote:
Sat Jun 15, 2019 9:10 am
DA313 wrote:
Sat Jun 15, 2019 1:33 am
Ok, this might have been answered before, but I didn't see when I searched...

Got the HiFiBerry Amp2 running after some code modifications. Boot fruitbox.... and the volume is LOUD. Like push the volume down button four or five times loud. Any cures for this?

Otherwise, my 79 year old father is very impressed with your program and says he's never heard the old stereo play Marty Robbins that well!

EDIT: Saw the answer. Forgive my poor searching capabilities. Question for Mike, did you ever make volume logarithmic?
Hi

Yes volume is now logarithmic. Regarding the volume, I presumed you used the initial volume setting in the skins config file? (SongVolume setting in the [sounds] section). It's worth noting that this just sets the initial volume, so the user can still crank it up using the volume buttons to its loudest, which may be to loud for you, and also since there are only ten volume steps you may not get a small enough volume change each time. One solution to this is to change the master volume range before you run fruitbox, by using the alsamixer command line utility. You only need to do this once as the setting is remembered even after power cycling. Just type alsamixer from a command prompt and use the up and down cursor keys on your keyboard to adjust the maximum volume. Then when you run fruitbox you will be able to change the volume from silent to this max volume you have set.

Cheers
Mike
Thanks again Mike. The alsamixer was the perfect solution. FYI to HiFiBerry Amp2 users, you probably want your max digital volume to be around 60%ish if you want to be able to have a conversation while the music plays. I can't wait to show you the finished project.
by fruitbox
Sat Jun 15, 2019 9:10 am
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

DA313 wrote:
Sat Jun 15, 2019 1:33 am
Ok, this might have been answered before, but I didn't see when I searched...

Got the HiFiBerry Amp2 running after some code modifications. Boot fruitbox.... and the volume is LOUD. Like push the volume down button four or five times loud. Any cures for this?

Otherwise, my 79 year old father is very impressed with your program and says he's never heard the old stereo play Marty Robbins that well!

EDIT: Saw the answer. Forgive my poor searching capabilities. Question for Mike, did you ever make volume logarithmic?
Hi

Yes volume is now logarithmic. Regarding the volume, I presumed you used the initial volume setting in the skins config file? (SongVolume setting in the [sounds] section). It's worth noting that this just sets the initial volume, so the user can still crank it up using the volume buttons to its loudest, which may be to loud for you, and also since there are only ten volume steps you may not get a small enough volume change each time. One solution to this is to change the master volume range before you run fruitbox, by using the alsamixer command line utility. You only need to do this once as the setting is remembered even after power cycling. Just type alsamixer from a command prompt and use the up and down cursor keys on your keyboard to adjust the maximum volume. Then when you run fruitbox you will be able to change the volume from silent to this max volume you have set.

Cheers
Mike
by CB-Globetrotter
Wed May 23, 2018 9:33 am
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

greyfeld wrote:
Mon May 21, 2018 3:35 pm
Didi,

Check out this posting I made on how to set up the sound so it doesn't blast at max when you start Fruitbox.

search.php?keywords=alsamixer&t=188723&sf=msgonly

Cheers,

Greyfeld
Thx, Greyfeld
The problem was not Fruitbox, the problem was the sound setting in the raspberry. I switched to the USB Soundcard now, I had lying around here.
Greeting Didi
by greyfeld
Mon May 21, 2018 3:35 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

Didi,

Check out this posting I made on how to set up the sound so it doesn't blast at max when you start Fruitbox.

search.php?keywords=alsamixer&t=188723&sf=msgonly

Cheers,

Greyfeld
by greyfeld
Sun Mar 25, 2018 3:35 am
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 2107
Views: 512060

Re: fruitbox MP3 jukebox

Hi,

Been working on my Fruitbox project a little bit at a time and having a lot of fun. Thanks Mike! Here's a couple things I've run into and solved that might help others.

Sound issues

I have a Raspberry Pi 3b with a Hifiberry Amp2 on top that is driving a pair of vintage Acoustic Research TSW-210 bookshelf speakers that I refoamed some years ago. Since I installed Fruitbox v1.03 a while back, the volume controls (+/-) and sound effects for things like page turn have lagged seconds behind the onscreen video trigger. Installing version 1.11 solved that issue. Glad you found that fix.

I also had an issue where the sound at default Fruitbox and alsamixer levels was so loud it was vibrating the floor and my wife complained. LOL. Had to get that figured out. The symptom was that it started out blasting, but using volume controls (+/-) took forever to get the sound down to an acceptable level.

The key was getting into alsamixer on the Pi and setting the playback volume to 85% (experiment to find what's best for your application). There is a great step-by-step tutorial on how to set it to your desired level by SC Phillips on his blog here - http://blog.scphillips.com/posts/2013/0 ... with-alsa/.

It requires some command line work, but it is all shown clearly on his site. Great guide. Remember to save your alsamixer setting by doing a "sudo alsactl store" or alternatively reboot with "sudo shutdown -r now". If you just unplug the Pi, you will not get the setting saved.

Once you've done that, you need to go into your skin's fruitbox.cfg file and add the SongVolume parameter in the Sounds section using a text editor like vi. I set it to 50 which starts it at 50% of what you set the Pi's master volume at using alsamixer. That way you have room to move the volume up or down quite a ways. You might also want to turn the others down or set to 0. PageMove is really annoying to hear every so many seconds throughout a song, so I set it to 0.

[sounds]
InsertCoin Volume (0..100), Filename of sound effect when a coin is inserted (wav, flac, ogg)
LoadSong Volume (0..100), Filename of sound effect when a song is loading (wav, flac, ogg)
UnloadSong Volume (0..100), Filename of sound effect when a song is unloading (wav, flac, ogg)
PageMove Volume (0..100), Filename of sound effect when pages are moving (wav, flac, ogg)
SongVolume Initial song volume (0..100)


My settings:

InsertCoin = 30
LoadSong = 30
Unload Song= 30
PageMove = 0
Songvolume=50

Now that I have those issues resolved the sound comes on and I'm not blasted into the wall behind me. I have control of the volume quickly since the Fruitbox 1.11 version fix and I have some room to work with if I still want to crank it when the wife is not home. :)

One issue I've noticed is that I'm getting the thermometer symbol in the upper right corner after I use it for a while. The Amp2 apparently generates a lot of heat. I'm looking to put it into a portable container of some sort and it appears a fan will be needed to cool it. Anyone have any thoughts about that?

Next up is a touchscreen. I'm planning to get the Raspberry Pi Element 7" and see how that works. If anyone has any helpful advice on setting up the touchscreen beyond what's been posted to date, please respond with some tips.

Thanks Mike, great stuff and appreciate your engagement with us.

Greyfeld

Return to “fruitbox MP3 jukebox”