I must admit that the musical intro from the first Gambas screen freaks me out a bit...I always wonder where it is coming from.
I know it plays on Christmas day and Easter Sunday; has anyone noticed it on other days of the year?
The Gambas Intro Music
- cogier
- Site Admin
- Posts: 1127
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: The Gambas Intro Music
So that was what it was!
- BruceSteers
- Posts: 1578
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: The Gambas Intro Music
i've seen the code.
25 Dec
15 Aug (Assumption day)
Easter and Easter + lent
dNow = Date(Now)
'dNow = Date(2020, 12, 25)
iYear = Year(dNow)
dEaster = Date.EasterDay(iYear)
If dNow = Date(iYear, 12, 25) Then
sPlay = "bells.mp3"
Else If dNow = Date(iYear, 8, 15) Or If dNow = dEaster Or If dNow = dEaster + 39 Then
sPlay = "spiritus.mp3"
bHasTear = True
Else
Return
Endif
If at first you don't succeed , try doing something differently.
BruceS
BruceS
- Technopeasant
- Posts: 144
- Joined: Saturday 13th July 2019 6:50pm
- Location: Stony Plain, Alberta, Canada
- Contact:
Re: The Gambas Intro Music
Yeah, it can be a little startling at times.
Re: The Gambas Intro Music
Jingle Jingle, Merry Christmas all! ![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Was waiting to hear what it was. Now going to wait until Easter to hear the other one. (Yes I could simply find the mp3 but that's cheating.
)
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Was waiting to hear what it was. Now going to wait until Easter to hear the other one. (Yes I could simply find the mp3 but that's cheating.
![Wink ;)](./images/smilies/icon_e_wink.gif)
- BruceSteers
- Posts: 1578
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: The Gambas Intro Music
Did you notice the snow too?
I'd like a switch to turn the audio off. it's nice but my computer is also my music system and the bells play over my music :-\
It's a nice touch though
![Smile :)](./images/smilies/icon_e_smile.gif)
If at first you don't succeed , try doing something differently.
BruceS
BruceS
Re: The Gambas Intro Music
Yep. Wonder if we'll get eggs on Easter.
I hear ya on the switch. Guess you just need to start Gambas up in the morning and keep it running all day.![Wink ;)](./images/smilies/icon_e_wink.gif)
I hear ya on the switch. Guess you just need to start Gambas up in the morning and keep it running all day.
![Wink ;)](./images/smilies/icon_e_wink.gif)
-
- Posts: 1
- Joined: Saturday 4th June 2022 10:11am
Re: The Gambas Intro Music
I was also quite surprised when I heard it app
- BruceSteers
- Posts: 1578
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: The Gambas Intro Music
I have modified my FWelcome.class PlaySound command like this...
So now whenever it plays the sound it makes a note of the month in the settings.
if the stored month matches the day because it's been played once already then it does not play the sound again but it shows the snow.
dNow = Date(Now)
iYear = Year(dNow)
dEaster = Date.EasterDay(iYear)
If dNow = Date(iYear, 12, 25) Then
sPlay = "bells.mp3"
Else If dNow = Date(iYear, 8, 15) Or If dNow = dEaster Or If dNow = dEaster + 39 Then
sPlay = "spiritus.mp3"
bHasTear = True
Else
Return
Endif
' Mod. play the intro sound only once but still show snow if Christmas
If Settings["/MusicPlayed", "-1"] = Month(dnow) Then Return bHasTear
Settings["/MusicPlayed"] = Month(dNow)
So now whenever it plays the sound it makes a note of the month in the settings.
if the stored month matches the day because it's been played once already then it does not play the sound again but it shows the snow.
If at first you don't succeed , try doing something differently.
BruceS
BruceS
- BruceSteers
- Posts: 1578
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: The Gambas Intro Music
Ahh i love the music but my computer is also my music player and it's annoying when the intro music plays over and over again.
So the above mod got a little tweak.
So at about line 136 of FWelcome.class It's these 2 lines i add...
Doing it that way means the snow still shows when it should but the sound will only play once on the days in question.
Merry Christmas![Smile :)](./images/smilies/icon_e_smile.gif)
So the above mod got a little tweak.
So at about line 136 of FWelcome.class It's these 2 lines i add...
' Mod. play the intro sound only once but still show snow if christmas
If Settings["/MusicPlayed", "-1"] = Month(dnow) Then Return bHasTear
Settings["/MusicPlayed"] = Month(dNow)
Doing it that way means the snow still shows when it should but the sound will only play once on the days in question.
Merry Christmas
![Smile :)](./images/smilies/icon_e_smile.gif)
If at first you don't succeed , try doing something differently.
BruceS
BruceS