is possible to have hourly,half hour and quarter hour chimes using .wav files?
if so how would you write it in a skin
thanks
steve
It is currently December 6th, 2023, 6:39 am
chimes
-
- Rainmeter Sage
- Posts: 15823
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: chimes
Yes, it is, but for this you don't need a lua script:steve62254 wrote:is possible to have hourly,half hour and quarter hour chimes using .wav files?
if so how would you write it in a skin
thanks
steve
Code: Select all
[MeasureMinutes]
Measure=Time
Format=%#M
IfCondition=((MeasureMinutes%15)=0)
IfTrueAction=[PLAY "#@#YourWAVFile.wav"]
-
- Posts: 15
- Joined: June 8th, 2016, 5:15 am
Re: chimes
tried this didn't work
steve
[Rainmeter]
Update=1000
[MeasureTime]
Measure=Time
Format=%H:%M:%S
[MeasureDate]
Measure=Time
Format=%#d/%B/%Y
[MeterBackground]
Meter=Image
W=120
H=8
SolidColor=60,60,60,0
[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureTime
X=220
Y=80
FontSize=50
[MeterDate]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDate
X=165
Y=0
FontSize=50
[MeasureMinutes]
Measure=Time
Format=%#M
IfCondition=((MeasureMinutes%15)=60)
IfTrueAction=[PLAY "#@#oh-ee-oh.wav.wav"]
steve
[Rainmeter]
Update=1000
[MeasureTime]
Measure=Time
Format=%H:%M:%S
[MeasureDate]
Measure=Time
Format=%#d/%B/%Y
[MeterBackground]
Meter=Image
W=120
H=8
SolidColor=60,60,60,0
[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureTime
X=220
Y=80
FontSize=50
[MeterDate]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDate
X=165
Y=0
FontSize=50
[MeasureMinutes]
Measure=Time
Format=%#M
IfCondition=((MeasureMinutes%15)=60)
IfTrueAction=[PLAY "#@#oh-ee-oh.wav.wav"]
-
- Rainmeter Sage
- Posts: 15823
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: chimes
The IfCondition option of the [MeasureMinutes] measure is wrong. You have to check if the rest of the division is 0, not 60: IfCondition=((MeasureMinutes%15)=0). This rest can't even be equal with 60, its greatest value can be 14.steve62254 wrote:tried this didn't work
Also be sure you have the oh-ee-oh.wav.wav file in the @Resources folder.
-
- Posts: 15
- Joined: June 8th, 2016, 5:15 am
Re: chimes
here is what i would like to do:
on the hour play chime 1
15 minutes after the hour play chime 2
30 minutes after the hour play chime 3
45 minutes after the hour play chime 4
steve
on the hour play chime 1
15 minutes after the hour play chime 2
30 minutes after the hour play chime 3
45 minutes after the hour play chime 4
steve
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: chimes
I'd be tempted to use:
While checking the seconds isn't absolutely necessary, since actions are only fired once when they become "true", it will protect you from having a slightly bogus chime if you refresh the skin, and I recommend it. In a perfect world you don't want it to chime any time it is 10:30, but exactly when it is 10:30. 10:30:27 is not 10:30, it's 10:30:27... This isn't horseshoes or hand-grenades, and close doesn't count.
Having the IfConditions in their own "host" measure isn't really needed either, but it just feels cleaner to me somehow. You might want to "pause" the chimes while you are playing a game or something...
Having said all that, I predict that unless you spent a career listening to ship's bells while on dog watch on a destroyer at sea, you will be sick to death of this nagging, noisy skin within 24 hours... 
Code: Select all
[MeasureMinutes]
Measure=Time
Format=%#M
[MeasureSeconds]
Measure=Time
Format=%#S
[MeasureChime]
Measure=Calc
Formula=1
IfCondition=(MeasureMinutes = 0) && (MeasureSeconds = 0)
IfTrueAction=[Play "#@#HourChime.wav"]
IfCondition2=(MeasureMinutes = 15) && (MeasureSeconds = 0)
IfTrueAction2=[Play "#@#QuarterAfterChime.wav"]
IfCondition3=(MeasureMinutes = 30) && (MeasureSeconds = 0)
IfTrueAction3=[Play "#@#HalfPastChime.wav"]
IfCondition4=(MeasureMinutes = 45) && (MeasureSeconds = 0)
IfTrueAction4=[Play "#@#QuarterTilChime.wav"]
Having the IfConditions in their own "host" measure isn't really needed either, but it just feels cleaner to me somehow. You might want to "pause" the chimes while you are playing a game or something...
Code: Select all
[MeasureMinutes]
Measure=Time
Format=%#M
[MeasureSeconds]
Measure=Time
Format=%#S
[MeasureChime]
Measure=Calc
Formula=1
IfCondition=(MeasureMinutes = 0) && (MeasureSeconds = 0)
IfTrueAction=[Play "#@#HourChime.wav"]
IfCondition2=(MeasureMinutes = 15) && (MeasureSeconds = 0)
IfTrueAction2=[Play "#@#QuarterAfterChime.wav"]
IfCondition3=(MeasureMinutes = 30) && (MeasureSeconds = 0)
IfTrueAction3=[Play "#@#HalfPastChime.wav"]
IfCondition4=(MeasureMinutes = 45) && (MeasureSeconds = 0)
IfTrueAction4=[Play "#@#QuarterTilChime.wav"]
[MeterPauseChime]
Meter=String
FontSize=11
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=Pause Chimes
LeftMouseUpAction=[!TogglePauseMeasure MeasureChime]

-
- Posts: 15
- Joined: June 8th, 2016, 5:15 am
Re: chimes
here is the skin:
[Rainmeter]
Update=1000
[MeasureTime]
Measure=Time
Format=%H:%M:%S
[MeasureDate]
Measure=Time
Format=%#d/%B/%Y
[MeterBackground]
Meter=Image
W=120
H=8
SolidColor=60,60,60,0
[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureTime
X=220
Y=80
FontSize=50
[MeterDate]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDate
X=165
Y=0
FontSize=50
[MeasureMinutes]
Measure=Time
Format=%#M
[MeasureSeconds]
Measure=Time
Format=%#S
[MeasureChime]
Measure=Calc
Formula=1
IfCondition=(MeasureMinutes = 0) && (MeasureSeconds = 0)
IfTrueAction=[Play "#@#oh-ee-oh.wav"]
IfCondition2=(MeasureMinutes = 15) && (MeasureSeconds = 0)
IfTrueAction2=[Play "#@#all_in_good_time.wav"]
IfCondition3=(MeasureMinutes = 30) && (MeasureSeconds = 0)
IfTrueAction3=[Play "#@#my_pretty.wav"]
IfCondition4=(MeasureMinutes = 45) && (MeasureSeconds = 0)
IfTrueAction4=[Play "#@#lollipop_guild.wav"]
========================================================
the first one (IfCondition=(MeasureMinutes = 0) && (MeasureSeconds = 0)
IfTrueAction=[Play "#@#oh-ee-oh.wav"]) worked
the second (IfCondition2=(MeasureMinutes = 15) && (MeasureSeconds = 0)
IfTrueAction2=[Play "#@#all_in_good_time.wav"])one didn't
the .wav filed are located in the same place(C:\Users\6-22-54\Documents\Rainmeter\Skins\Tutorials\@Resources) and are working.
note: the computer does make a single chime on the rest of the IfConditions
steve
[Rainmeter]
Update=1000
[MeasureTime]
Measure=Time
Format=%H:%M:%S
[MeasureDate]
Measure=Time
Format=%#d/%B/%Y
[MeterBackground]
Meter=Image
W=120
H=8
SolidColor=60,60,60,0
[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureTime
X=220
Y=80
FontSize=50
[MeterDate]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDate
X=165
Y=0
FontSize=50
[MeasureMinutes]
Measure=Time
Format=%#M
[MeasureSeconds]
Measure=Time
Format=%#S
[MeasureChime]
Measure=Calc
Formula=1
IfCondition=(MeasureMinutes = 0) && (MeasureSeconds = 0)
IfTrueAction=[Play "#@#oh-ee-oh.wav"]
IfCondition2=(MeasureMinutes = 15) && (MeasureSeconds = 0)
IfTrueAction2=[Play "#@#all_in_good_time.wav"]
IfCondition3=(MeasureMinutes = 30) && (MeasureSeconds = 0)
IfTrueAction3=[Play "#@#my_pretty.wav"]
IfCondition4=(MeasureMinutes = 45) && (MeasureSeconds = 0)
IfTrueAction4=[Play "#@#lollipop_guild.wav"]
========================================================
the first one (IfCondition=(MeasureMinutes = 0) && (MeasureSeconds = 0)
IfTrueAction=[Play "#@#oh-ee-oh.wav"]) worked
the second (IfCondition2=(MeasureMinutes = 15) && (MeasureSeconds = 0)
IfTrueAction2=[Play "#@#all_in_good_time.wav"])one didn't
the .wav filed are located in the same place(C:\Users\6-22-54\Documents\Rainmeter\Skins\Tutorials\@Resources) and are working.
note: the computer does make a single chime on the rest of the IfConditions
steve
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: chimes
If you get a default Windows "bing" sound instead of your .wav file, then the issue is with the location or name of your wav files.
Make sure you fully understand how @Resources works.
https://docs.rainmeter.net/manual/skins/resources-folder/
Make sure you fully understand how @Resources works.
https://docs.rainmeter.net/manual/skins/resources-folder/
-
- Rainmeter Sage
- Posts: 15823
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: chimes
Please pack the whole Tutorials folder and post it here.steve62254 wrote:here is the skin:
the first one (IfCondition=(MeasureMinutes = 0) && (MeasureSeconds = 0)
IfTrueAction=[Play "#@#oh-ee-oh.wav"]) worked
the second (IfCondition2=(MeasureMinutes = 15) && (MeasureSeconds = 0)
IfTrueAction2=[Play "#@#all_in_good_time.wav"])one didn't
the .wav filed are located in the same place(C:\Users\6-22-54\Documents\Rainmeter\Skins\Tutorials\@Resources) and are working.
note: the computer does make a single chime on the rest of the IfConditions
steve
-
- Posts: 15
- Joined: June 8th, 2016, 5:15 am
Re: chimes
C:\Users\6-22-54\Documents\Rainmeter\Skins\Tutorials
two folders in Tutorials:
1)@Resources\Sounds\.wav files
2)Clock\working on.ini
the system will not let me copy and paste the folder "Tutorials" here
steve
two folders in Tutorials:
1)@Resources\Sounds\.wav files
2)Clock\working on.ini
the system will not let me copy and paste the folder "Tutorials" here
steve