The Gambas Intro Music

Post

Posted
Rating:
#1 (In Topic #630)
Avatar
Regular
stevedee is in the usergroup ‘Regular’
 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?
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
So that was what it was!
Online now: No Back to the top

Post

Posted
Rating:
#3
Guru
BruceSteers is in the usergroup ‘Guru’

stevedee said

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

Code (gambas)

  1.  
  2.   dNow = Date(Now)
  3.   'dNow = Date(2020, 12, 25)
  4.   iYear = Year(dNow)
  5.   dEaster = Date.EasterDay(iYear)
  6.  
  7.   If dNow = Date(iYear, 12, 25) Then
  8.     sPlay = "bells.mp3"
  9.   Else If dNow = Date(iYear, 8, 15) Or If dNow = dEaster Or If dNow = dEaster + 39 Then
  10.     sPlay = "spiritus.mp3"
  11.     bHasTear = True
  12.   Else
  13.     Return
  14.  
  15.  
  16.  
  17.  
Online now: Yes Back to the top

Post

Posted
Rating:
#4
Avatar
Regular
Technopeasant is in the usergroup ‘Regular’
Yeah, it can be a little startling at times.
Online now: No Back to the top

Post

Posted
Rating:
#5
Regular
PartierSP is in the usergroup ‘Regular’
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.  ;)  )
Online now: No Back to the top

Post

Posted
Rating:
#6
Guru
BruceSteers is in the usergroup ‘Guru’

PartierSP said

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 :)
Online now: Yes Back to the top

Post

Posted
Rating:
#7
Regular
PartierSP is in the usergroup ‘Regular’
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. ;)
Online now: No Back to the top

Post

Posted
Rating:
#8
Guru
BruceSteers is in the usergroup ‘Guru’
I have modified my FWelcome.class PlaySound command like this…

Code (gambas)

  1.   dNow = Date(Now)
  2.  
  3.   iYear = Year(dNow)
  4.   dEaster = Date.EasterDay(iYear)
  5.  
  6.   If dNow = Date(iYear, 12, 25) Then
  7.     sPlay = "bells.mp3"
  8.   Else If dNow = Date(iYear, 8, 15) Or If dNow = dEaster Or If dNow = dEaster + 39 Then
  9.     sPlay = "spiritus.mp3"
  10.     bHasTear = True
  11.   Else
  12.     Return
  13.  
  14. ' Mod. play the intro sound only once but still show snow if Christmas
  15.   If Settings["/MusicPlayed", -1] = Month(dnow) Then Return bHasTear
  16.   Settings["/MusicPlayed"] = Month(dNow)
  17.  
  18.  

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.
Online now: Yes Back to the top

Post

Posted
Rating:
#9
Guru
BruceSteers is in the usergroup ‘Guru’
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…

Code (gambas)

  1. ' Mod. play the intro sound only once but still show snow if christmas
  2.   If Settings["/MusicPlayed", -1] = Month(dnow) Then Return bHasTear
  3.   Settings["/MusicPlayed"] = Month(dNow)
  4.  

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 :)
Online now: Yes Back to the top

Post

Posted
Rating:
#10
Regular
sergioabreu is in the usergroup ‘Regular’
It suprises a little, I think it should have an option in Prefereces to set all off .
Online now: No Back to the top

Post

Posted
Rating:
#11
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
Well, I love it.
It's always a surprise but once you know what it is, it's not a problem.
(Well apart from Mr Grasshopper Speers, I can understand his ire when it interrupts his recording sessions….
"He ordered Chet's guitar course COD
Makes A, E an' he's workin' on B
Digs C and W and R and B"                          ee tee cee,  tee hee  :-) )

Online now: No Back to the top

Post

Posted
Rating:
#12
Guru
BruceSteers is in the usergroup ‘Guru’
haha, It's not recordings that irk it's just playback.

Am currently (right now) using my pc to play a movie on one screen and use gambas on the other.
When doing that the music playing over the movie every time i launch gambas is annoying.

But it has played once today and not played again, because the gambas IDE is awesome, and easy to edit :)
Gambas One - Gambas ONE
Online now: Yes Back to the top

Post

Posted
Rating:
#13
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
Yeahbut. I think what people are asking for is an option.
I suggest "gambas3 –anddontplayanysurprisingmusicatmetwiceayearbutkeepthesnowflakesOK?"
I'm sure you could come up with that mod and submit it to Benoit. :-)

Online now: No Back to the top

Post

Posted
Rating:
#14
Guru
BruceSteers is in the usergroup ‘Guru’

thatbruce said

Yeahbut. I think what people are asking for is an option.
I suggest "gambas3 –anddontplayanysurprisingmusicatmetwiceayearbutkeepthesnowflakesOK?"
I'm sure you could come up with that mod and submit it to Benoit. :-)

aah but then again It plays only once on the day for me.
Somebody else's problem - Wikipedia

;)
Online now: Yes Back to the top

Post

Posted
Rating:
#15
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

BruceSteers said

aah but then again It plays only once on the day for me.
Somebody else's problem - Wikipedia

;)
:lol:

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: Yes Back to the top

Post

Posted
Rating:
#16
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
 Gambas intro music? Is that something new (I'm still on 3.18)?

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#17
Guru
BruceSteers is in the usergroup ‘Guru’

sholzy said

Gambas intro music? Is that something new (I'm still on 3.18)?

It's not new, It's just occasional.
read here…
Gambas One - Gambas ONE

On certain Christian holidays gambas plays music every time you load it.
But my gambas only plays the music once on those days.
Online now: Yes Back to the top

Post

Posted
Rating:
#18
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
 Interesting. I've had Gambas open on those days, including today, and never heard the music. I guess maybe I'm lucky?

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#19
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
Well now... I just opened up Gambas again after having closed it a few hours ago. I heard the music and saw the tears. I thought it was pretty cool that Benoit has done something like that.

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top
1 guest and 0 members have just viewed this.