The Gambas Intro Music

Feel free to talk about non programming issues here.
Post Reply
User avatar
stevedee
Posts: 518
Joined: Monday 20th March 2017 6:06pm

The Gambas Intro Music

Post 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?
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: The Gambas Intro Music

Post by cogier »

So that was what it was!
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: The Gambas Intro Music

Post 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



If at first you don't succeed , try doing something differently.
BruceS
User avatar
Technopeasant
Posts: 140
Joined: Saturday 13th July 2019 6:50pm
Location: Stony Plain, Alberta, Canada
Contact:

Re: The Gambas Intro Music

Post by Technopeasant »

Yeah, it can be a little startling at times.
Technical director,
Piga Software
http://icculus.org/piga/
PartierSP
Posts: 57
Joined: Tuesday 30th November 2021 12:14am
Location: Canada
Contact:

Re: The Gambas Intro Music

Post by PartierSP »

Jingle Jingle, Merry Christmas all! :D

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. ;) )
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: The Gambas Intro Music

Post by BruceSteers »

PartierSP wrote: Saturday 25th December 2021 8:12am Jingle Jingle, Merry Christmas all! :D

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 :)
If at first you don't succeed , try doing something differently.
BruceS
PartierSP
Posts: 57
Joined: Tuesday 30th November 2021 12:14am
Location: Canada
Contact:

Re: The Gambas Intro Music

Post 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. ;)
romantaylor
Posts: 1
Joined: Saturday 4th June 2022 10:11am

Re: The Gambas Intro Music

Post by romantaylor »

I was also quite surprised when I heard it app
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: The Gambas Intro Music

Post 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.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: The Gambas Intro Music

Post 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 :)
If at first you don't succeed , try doing something differently.
BruceS
Post Reply