Page 1 of 1
The Gambas Intro Music
Posted: Sunday 4th April 2021 9:47am
by stevedee
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?
Re: The Gambas Intro Music
Posted: Sunday 4th April 2021 1:31pm
by cogier
So that was what it was!
Re: The Gambas Intro Music
Posted: Monday 5th April 2021 1:22pm
by BruceSteers
stevedee wrote: ↑Sunday 4th April 2021 9:47am
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?
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
Re: The Gambas Intro Music
Posted: Saturday 10th April 2021 12:37am
by Technopeasant
Yeah, it can be a little startling at times.
Re: The Gambas Intro Music
Posted: Saturday 25th December 2021 8:12am
by PartierSP
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.
)
Re: The Gambas Intro Music
Posted: Saturday 25th December 2021 1:43pm
by BruceSteers
PartierSP wrote: ↑Saturday 25th December 2021 8:12am
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.
)
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
Re: The Gambas Intro Music
Posted: Sunday 26th December 2021 2:50am
by PartierSP
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.
Re: The Gambas Intro Music
Posted: Saturday 25th June 2022 7:54am
by romantaylor
I was also quite surprised when I heard it
app
Re: The Gambas Intro Music
Posted: Sunday 26th June 2022 3:30pm
by BruceSteers
I have modified my FWelcome.class PlaySound command like this...
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.
Re: The Gambas Intro Music
Posted: Saturday 24th December 2022 1:30pm
by BruceSteers
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...
' 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