Max2Play Home › Forums › Max2Play Development (Ideas, Wishes) › [SOLVED] Fade-In-Out script
- This topic has 6 replies, 3 voices, and was last updated 7 years, 7 months ago by Theta premium.
-
5. Februar 2017 at 12:29 #26680
Hello,
I have 2 instances of the player running on my Raspi.
My goal is, that I would like to use the player 2 for speech messages triggered from my KNX Server.
So for example:
Player 1 is playing music
dishwasher is finsished – then I would like to do followingPlayer 1 fade-out music volume
Player 2 voice message
Player 1 fade-in music volumeLike in a Navi in the car where the voice overlays the radio.
Can you guide me to accomplish my goal?
Thanks Erich
7. Februar 2017 at 14:42 #26722Hello eriche,
Sorry,we could not provide a ‚tailor made solution‘ for you at the moment to use the same sound card to play sound from different sources, but what you could try is to configure the ‚multi-channeling‘ on the sound card, please take a look on those resources:
https://support.hifiberry.com/hc/en-us/articles/207397665-Mixing-different-audio-sources
https://www.max2play.com/en/forums/topic/logilink-7-1-configuration-on-latest-234-jessie-image/
Best Regards,
Mohammad Mbydeen7. Februar 2017 at 22:30 #26742Thanks Mohammad
your answer would be better in this topic- https://www.max2play.com/en/forums/topic/iqaudio-multi-output-mixer-not-working/#post-26740
in this topic I would like to know if a fade-in / fade-out script would be possible for the squeezeplayer.
So please forget about the 2 instances (they are working fine) – now we can focus on 1 player.
Do you know if there is a fading option available?
Lets say song A fades out and then song B fades in.Erich
8. Februar 2017 at 13:36 #26756Hello eriche,
We will try to help you to configure the crossfade, but try to take a look on this resourse first:
Also you can use this commands via Telnet:
echo „play 10“ | telnet max2play 9090
echo „sleep 10“ | telnet max2play 9090
for more info please see:
http://max2play:9000/html/docs/help.html
Best Regards,
Mohammad Mbydeen8. Februar 2017 at 19:10 #26761Good to know – the „Command Line Interface“ Documentation from the Server is great.
I had to telnet to PORT 9090 – maybe you are wrong with 9000?
Then the play and sleep command is working – but I don`t get the result I would like to, because it stops the music.
So it doesn`t fade out the music to 30% volume and then fade in to 100%.
It stops the music and then starts it.But let`s see what commands may help me out.
So I would need a fade-in/out to a specific volume level.
Erich
8. April 2017 at 9:23 #28033I’m actually looking for something similar, just a way to fade in and out the music, but possibly simpler than that.
I’m new to coding, and I’d mostly just like to know if there’s a way to tell the squeezebox server to fade in and out (assuming the other squeezelite players will have volume synced, which I have found the setting for). Then, I can figure out the coding for delay time between volume levels to turn it up and down.
The only thing I’ve found so far is by digging through the javascript from the server’s web interface, I’ve found:SqueezeJS.Strings['volumeup'] = "Louder"; SqueezeJS.Strings['volumedown'] = "Softer";
Although I’m just not sure how to implement this as code, or how to basically „send“ commands to the Squeezebox server.
I feel like this is probably a dumb question for any developer, but it’s over my head. -
You must be logged in to reply to this topic.