Play Tone Every hour.

Hello,

I'm trying to delegate to the clock a function that alerts you with an audible signal every hour.

Can he ask for help on how to connect the function correctly?

Thank you

    using Toybox.Graphics as Gfx;
    using Toybox.Lang;
    using Toybox.System as Sys;
    using Toybox.WatchUi as Ui;
    using Toybox.Attention as Atn;

    class TONEView extends WatchUi.WatchFace {

    var ToneHour= -1;

 
    function onUpdate(dc as Dc) as Void {
        
        var clockTime = Sys.getClockTime();
        var timeString = Lang.format("$1$:$2$", [clockTime.hour, clockTime.min.format("%02d")])+ToneHour;
        var view = View.findDrawableById("TimeLabel") as Text;
        view.setText(timeString);
        View.onUpdate(dc);
    }



function Beep(ToneHour)
	{                                    
	    if ((ToneHour != -1) && (Att has :playTone))
	        {Atn.playTone(ToneHour % 18);}
	}