Max2Play Home › Forums › Max2Play Development (Ideas, Wishes) › [SOLVED] Fade-In-Out script
- This topic has 6 replies, 3 voices, and was last updated 6 years, 2 months ago by Theta premium.
5. Februar 2017 at 12:29 #26680
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 following
Player 1 fade-out music volume
Player 2 voice message
Player 1 fade-in music volume
Like in a Navi in the car where the voice overlays the radio.
Can you guide me to accomplish my goal?
Thanks Erich7. Februar 2017 at 14:42 #26722
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:
Mohammad Mbydeen7. Februar 2017 at 22:30 #26742
your answer would be better in this topic
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.
Erich8. Februar 2017 at 13:36 #26756
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:
Mohammad Mbydeen8. Februar 2017 at 19:10 #26761
Good 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.
Erich8. April 2017 at 9:23 #28033
I’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.
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.