Graphics

 View Only
Expand all | Collapse all

Adding audio to a clock/timer widget

  • 1.  Adding audio to a clock/timer widget

    Posted 06-13-2019 14:34

    I am trying to add a sound to a timer down (2 minutes down to 0) to a widget.  I have researched earlier posts but cannot find exactly what I am looking for.  I understand that this can be done through scripting (which is not my strong point at all) or visual logic.  I appreciate any help with this.  Thank you.



  • 2.  RE: Adding audio to a clock/timer widget

    Posted 06-13-2019 15:22

    If the timer will always be a set time, I would just render the round effect into a pre-rendered video file, or place it within the scene director. Not sure if that's what you're going for.


    #XPression


  • 3.  RE: Adding audio to a clock/timer widget

    Posted 06-13-2019 16:01

    It will always start at 2 minutes, but I would like to have the option to start/stop/reset if need be.


    #XPression


  • 4.  RE: Adding audio to a clock/timer widget

    Posted 06-14-2019 02:33

    Set your timer widget to be the data source of your text that is the countdown display

    Set widget to start when online and to reset when offline

    Create a second scene director (not default)

    Add your .WAV audio file to the scene director

    In visual logic editor, use string compare block to compare text of your countdown display and a string value block set to 0:00

    Output the equal node to your scene director.Actions.Play block

    This will only work once for each time you put the scene online, (because the visual logic fires when you put the scene online) but you should be able to reset (or stop) if you haven't reached zero and fired the scene director with the sound effect.

     


    #XPression


  • 5.  RE: Adding audio to a clock/timer widget

    Posted 06-14-2019 15:41

    I use visual logic with a string compare. If the value of the timer widget hits .01, then trigger a scene director with a sound effect.


    #XPression


  • 6.  RE: Adding audio to a clock/timer widget

    Posted 06-18-2019 15:31

    James -

    I tried your example but it doesn't seem to be working for me.  I'm probably missing a small detail somewhere.  How are your Event Properties set up in the audio scene director?  That is the only thing I can think that could be different.  Thank you.


    #XPression


  • 7.  RE: Adding audio to a clock/timer widget

    Posted 06-18-2019 16:45

    Mark, I'm not in front of my machine, but my event was just to cue ahead (jump to) on my audio file...it was not trimmed correctly when I created it. If your sound effect is at the head of your file, you won't need the event. Are you playing this out from the Xpression Sequence? 


    #XPression


  • 8.  RE: Adding audio to a clock/timer widget

    Posted 06-18-2019 19:26

    I am playing this out from the Xpression Sequence.  I took the event out of the audio scene director and am now hearing the sound effect, but it happens immediately when I play the scene online.  I have the string value of the clock text set to 0:00, but it still fires immediately.


    #XPression


  • 9.  RE: Adding audio to a clock/timer widget

    Posted 06-18-2019 19:56

    I think I have it.  The timer setting in the widget I was using was a little off.  Thank you very much for your help.  I wish there was a way I could leave the clock on air and just reset the timer, but this will work for now.


    #XPression


  • 10.  RE: Adding audio to a clock/timer widget

    Posted 06-19-2019 02:25

    Could you make two versions of the clock and alternate between them? ...playing the second clock should look like you just reset it.


    #XPression


  • 11.  RE: Adding audio to a clock/timer widget

    Posted 06-20-2019 13:22

    Yes, that is a possibility, and I may do that.  I was just looking to keep it as simple as possible for any freelancers that may fill in.  Thank you again for your help.


    #XPression