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: 1129
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: The Gambas Intro Music
So that was what it was!
- BruceSteers
- Posts: 1603
- 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: 145
- 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!
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. )
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. )
- BruceSteers
- Posts: 1603
- 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
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.
I hear ya on the switch. Guess you just need to start Gambas up in the morning and keep it running all day.
-
- 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: 1603
- 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: 1603
- 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
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
If at first you don't succeed , try doing something differently.
BruceS
BruceS