<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='duration.x3d'/>
<meta name='MovingImagecontent='duration-movie.mpg'/>
<meta name='referencecontent=' http://www.nist.gov/vrml.html '/>
<meta name='referencecontent=' http://www.itl.nist.gov/div897/ctg/vrml/vrml.html '/>
<meta name='creatorcontent=' http://www.itl.nist.gov/div897/ctg/vrml/members.html '/>
<meta name='disclaimercontent=' This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology. This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified. '/>
<meta name='infocontent='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d'/>
<meta name='translatorcontent='Michael Kass NIST, Don Brutzman NPS'/>
<meta name='translatedcontent='21 January 2001'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='descriptioncontent='Test duration_changed field. A world file with an AudioClip node is loaded, and the duration_changed field for for that AudioClip is displayed as Text at the top of the world. Clicking on the "phonograph" geometry with the pointing device loads a different URL, with a different sound file. The result should be, the Text should change from "duration_changed = 5" to "duration_changed = 10" when the geometry is clicked.'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/duration.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='duration.x3d'/>
<Viewpoint description='entry viewpointposition='0 0 5'/>
<!-- ROUTE information for PROX_SENSOR node:  [from position_changed to PITCH_FAST_TRANS.set_translation ] [from orientation_changed to PITCH_FAST_TRANS.set_rotation ] [from position_changed to SLOW_TRANS.set_translation ] [from orientation_changed to SLOW_TRANS.set_rotation ] [from position_changed to TEXT_TRANS.set_translation ] [from orientation_changed to TEXT_TRANS.set_rotation ] -->
<ProximitySensor DEF='PROX_SENSORsize='1000 1000 1000'/>
<Sound>
<!-- ROUTE information for MYSOUND1 node:  [from isActive to SOUND_SCRIPT.colorPhonograph ] [from duration_changed to SOUND_SCRIPT.durationText ] -->
<AudioClip DEF='MYSOUND1description='loaded clip'/>
</Sound>
<Transform scale='0.5 0.5 0.5'>
<Transform translation='0 -2 0'>
<Shape>
<Appearance>
<Material DEF='PHONOCOLOR'/>
</Appearance>
<Box size='3 1.5 3'/>
</Shape>
</Transform>
<Transform rotation='1 0 0 -2.5'>
<Shape>
<Appearance>
<Material DEF='HORNCOLOR'/>
</Appearance>
<Extrusion beginCap='falsecreaseAngle='1.57crossSection='1 0 0.92388 0.382683 0.707107 0.707106 0.382684 0.923879 1.26759e-006 1 -0.382682 0.92388 -0.707105 0.707108 -0.923879 0.382685 -1 2.53518e-006 -0.923881 -0.382681 -0.707109 -0.707105 -0.382687 -0.923878 -3.80277e-006 -1 0.38268 -0.923881 0.707104 -0.70711 0.923878 -0.382688 1 0endCap='falseorientation='0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0scale='2.2 2.2 1.8 1.8 1.4 1.4 1.2 1.2 1 1 0.8 0.8 0.6 0.6 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.2 0.2 0.0001 0.0001solid='falsespine='0 -1.4 0 0 -1.22137 0 0 -1.01245 0 0 -0.819601 0 0 -0.626754 0 0 -0.401765 0 0 -0.204459 0 0 -0.0164327 0 0 0.176777 0 0 0.380511 0 0 0.578542 0 0 0.819601 0 0 0.996378 0 0 1.8 0 0 1.2 0'/>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for PITCH_FAST_TRANS node:  [from PROX_SENSOR.position_changed to set_translation ] [from PROX_SENSOR.orientation_changed to set_rotation ] -->
<Transform DEF='PITCH_FAST_TRANS'>
<Transform translation='-3 1.5 -5'>
<Shape>
<Appearance>
<!-- ROUTE information for FASTMATERIAL node:  [from FASTFLASH.value_changed to set_diffuseColor ] -->
<Material DEF='FASTMATERIALambientIntensity='1diffuseColor='0 1 0'/>
</Appearance>
<Box DEF='FASTsize='1 1 0.1'/>
</Shape>
<Transform translation='-0.4 -0.1 0.2'>
<Shape>
<Appearance>
<Material ambientIntensity='1diffuseColor='0 0 0'/>
</Appearance>
<Text string='"URL1"'>
<FontStyle size='0.4'/>
</Text>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for TOUCHFAST node:  [from touchTime to SOUND_SCRIPT.oldUrl ] [from touchTime to FASTTIMER.set_startTime ] -->
<TouchSensor DEF='TOUCHFASTdescription='touch for fast'/>
<!-- ROUTE information for FASTTIMER node:  [from TOUCHFAST.touchTime to set_startTime ] [from fraction_changed to FASTFLASH.set_fraction ] -->
<TimeSensor DEF='FASTTIMER'/>
<!-- ROUTE information for FASTFLASH node:  [from FASTTIMER.fraction_changed to set_fraction ] [from value_changed to FASTMATERIAL.set_diffuseColor ] -->
<ColorInterpolator DEF='FASTFLASHkey='0 0.5 1keyValue='0 1 0 1 1 1 0 1 0'/>
</Transform>
<!-- ROUTE information for TEXT_TRANS node:  [from PROX_SENSOR.position_changed to set_translation ] [from PROX_SENSOR.orientation_changed to set_rotation ] -->
<Transform DEF='TEXT_TRANS'>
<Transform translation='-2 1.5 -5'>
<Shape>
<Appearance>
<Material DEF='TEXTMATERIALdiffuseColor='1 1 1'/>
</Appearance>
<Text DEF='MYTEXT'>
<FontStyle size='0.4style='BOLD'/>
</Text>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for SLOW_TRANS node:  [from PROX_SENSOR.position_changed to set_translation ] [from PROX_SENSOR.orientation_changed to set_rotation ] -->
<Transform DEF='SLOW_TRANS'>
<Transform translation='3 1.5 -5'>
<Shape>
<Appearance>
<!-- ROUTE information for SLOWMATERIAL node:  [from SLOWFLASH.value_changed to set_diffuseColor ] -->
<Material DEF='SLOWMATERIALambientIntensity='1diffuseColor='1 0 0'/>
</Appearance>
<Box DEF='SLOWsize='1 1 0.1'/>
</Shape>
<Transform translation='-0.65 -0.1 0.2'>
<Shape>
<Appearance>
<Material ambientIntensity='1diffuseColor='0 0 0'/>
</Appearance>
<Text string='"URL2"'>
<FontStyle size='0.4'/>
</Text>
</Shape>
</Transform>
</Transform>
<!-- ROUTE information for TOUCHSLOW node:  [from touchTime to SOUND_SCRIPT.newUrl ] [from touchTime to SLOWTIMER.set_startTime ] -->
<TouchSensor DEF='TOUCHSLOWdescription='touch for slow'/>
<!-- ROUTE information for SLOWTIMER node:  [from TOUCHSLOW.touchTime to set_startTime ] [from fraction_changed to SLOWFLASH.set_fraction ] -->
<TimeSensor DEF='SLOWTIMER'/>
<!-- ROUTE information for SLOWFLASH node:  [from SLOWTIMER.fraction_changed to set_fraction ] [from value_changed to SLOWMATERIAL.set_diffuseColor ] -->
<ColorInterpolator DEF='SLOWFLASHkey='0 0.5 1keyValue='1 0 0 1 1 1 1 0 0'/>
</Transform>
<!-- ROUTE information for SOUND_SCRIPT node:  [from TOUCHFAST.touchTime to oldUrl ] [from TOUCHSLOW.touchTime to newUrl ] [from MYSOUND1.isActive to colorPhonograph ] [from MYSOUND1.duration_changed to durationText ] -->
<Script DEF='SOUND_SCRIPTdirectOutput='true'
  url=' "duration.js" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/duration.js" '>
<field name='mySound1type='SFNodeaccessType='initializeOnly'>
<AudioClip USE='MYSOUND1'/>
</field>
<field name='myTexttype='SFNodeaccessType='initializeOnly'>
<Text USE='MYTEXT'/>
</field>
<field name='phonoColortype='SFNodeaccessType='initializeOnly'>
<Material USE='PHONOCOLOR'/>
</field>
<field name='hornColortype='SFNodeaccessType='initializeOnly'>
<Material USE='HORNCOLOR'/>
</field>
<field name='yellowtype='SFColorvalue='0.75 0.75 0.00accessType='initializeOnly'/>
<field name='whitetype='SFColorvalue='0.80 0.80 0.80accessType='initializeOnly'/>
<field name='colorPhonographtype='SFBoolaccessType='inputOnly'/>
<field name='durationTexttype='SFTimeaccessType='inputOnly'/>
<field name='newUrltype='SFTimeaccessType='inputOnly'/>
<field name='oldUrltype='SFTimeaccessType='inputOnly'/>
</Script>
<ROUTE fromNode='TOUCHFASTfromField='touchTimetoNode='SOUND_SCRIPTtoField='oldUrl'/>
<ROUTE fromNode='TOUCHSLOWfromField='touchTimetoNode='SOUND_SCRIPTtoField='newUrl'/>
<ROUTE fromNode='PROX_SENSORfromField='position_changedtoNode='PITCH_FAST_TRANStoField='set_translation'/>
<ROUTE fromNode='PROX_SENSORfromField='orientation_changedtoNode='PITCH_FAST_TRANStoField='set_rotation'/>
<ROUTE fromNode='PROX_SENSORfromField='position_changedtoNode='SLOW_TRANStoField='set_translation'/>
<ROUTE fromNode='PROX_SENSORfromField='orientation_changedtoNode='SLOW_TRANStoField='set_rotation'/>
<ROUTE fromNode='PROX_SENSORfromField='position_changedtoNode='TEXT_TRANStoField='set_translation'/>
<ROUTE fromNode='PROX_SENSORfromField='orientation_changedtoNode='TEXT_TRANStoField='set_rotation'/>
<ROUTE fromNode='MYSOUND1fromField='isActivetoNode='SOUND_SCRIPTtoField='colorPhonograph'/>
<ROUTE fromNode='TOUCHFASTfromField='touchTimetoNode='FASTTIMERtoField='set_startTime'/>
<ROUTE fromNode='FASTTIMERfromField='fraction_changedtoNode='FASTFLASHtoField='set_fraction'/>
<ROUTE fromNode='FASTFLASHfromField='value_changedtoNode='FASTMATERIALtoField='set_diffuseColor'/>
<ROUTE fromNode='TOUCHSLOWfromField='touchTimetoNode='SLOWTIMERtoField='set_startTime'/>
<ROUTE fromNode='SLOWTIMERfromField='fraction_changedtoNode='SLOWFLASHtoField='set_fraction'/>
<ROUTE fromNode='SLOWFLASHfromField='value_changedtoNode='SLOWMATERIALtoField='set_diffuseColor'/>
<ROUTE fromNode='MYSOUND1fromField='duration_changedtoNode='SOUND_SCRIPTtoField='durationText'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : FAST, FASTFLASH, FASTMATERIAL, FASTTIMER, HORNCOLOR, MYSOUND1, MYTEXT, PHONOCOLOR, PITCH_FAST_TRANS, PROX_SENSOR, SLOW, SLOW_TRANS, SLOWFLASH, SLOWMATERIAL, SLOWTIMER, SOUND_SCRIPT, TEXT_TRANS, TEXTMATERIAL, TOUCHFAST, TOUCHSLOW

Index for Viewpoint image : Viewpoint_1
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->

<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints. -->