<?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 content='simultaneous.x3d' name='title'/>
    <meta content='simultaneous-movie.mpg' name='MovingImage'/>
    <meta content='http://www.nist.gov/vrml.html' name='reference'/>
    <meta content='http://www.itl.nist.gov/div897/ctg/vrml/vrml.html' name='reference'/>
    <meta content='http://www.itl.nist.gov/div897/ctg/vrml/members.html' name='creator'/>
    <meta content='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 (NIST). 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.' name='disclaimer'/>
    <meta content='Interactive Conformance Testing for VRML, Mary Brady and Lynn Rosenthal, NIST, created 8 September 2010 and updated 25 August 2016, https://www.nist.gov/itl/ssd/information-systems-group/interactive-conformance-testing-vrml' name='reference'/>
    <meta content='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d' name='info'/>
    <meta content='Michael Kass NIST' name='creator'/>
    <meta content='Don Brutzman' name='translator'/>
    <meta content='21 January 2001' name='translated'/>
    <meta content='28 August 2023' name='modified'/>
    <meta content='Test simultaneous playing sounds. Two Sound node with default parameters, each with a seperate sound source, are located at the origin of the local coordinate system. The initial Viewpoint in this world is 5 meters in front of the origin. Pressing on both of the "Sound 1" and "Sound 2" buttons should produce simultaneously playing "chime" sounds. The "phonograph" geometry should turn yellow while a sound source is playing.' name='description'/>
    <meta content='https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/Sound/simultaneous.x3d' name='identifier'/>
    <meta content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html' name='generator'/>
    <meta content='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit' name='generator'/>
    <meta content='../../license.html' name='license'/>
  </head>
  <Scene>
    <WorldInfo title='simultaneous.x3d'/>
    <Viewpoint description='entry view' position='0 0 5'/>
    <ProximitySensor DEF='PROX_SENSOR' size='1000 1000 1000'/>
    <Sound>
      <AudioClip DEF='SOUND1' description='chimes' url='"chimes10.wav" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav"'/>
    </Sound>
    <Sound>
      <AudioClip DEF='SOUND2' description='long chimes' url='"longchimes.wav" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav"'/>
    </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='false' creaseAngle='1.57' crossSection='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 0' endCap='false' orientation='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 0' scale='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.0001' solid='false' spine='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>
    <Transform DEF='SINGLE_TRANS'>
      <Transform translation='-3 1.5 -8'>
        <Shape>
          <Appearance>
            <Material DEF='SINGLEMATERIAL' ambientIntensity='1' diffuseColor='0 1 0'/>
          </Appearance>
          <Box DEF='SINGLE' size='1.2 1 0.1'/>
        </Shape>
        <Transform translation='-0.45 0 0.2'>
          <Shape>
            <Appearance>
              <Material ambientIntensity='1' diffuseColor='0 0 0'/>
            </Appearance>
            <Text string='"Sound" "1"'>
              <FontStyle size='0.4'/>
            </Text>
          </Shape>
        </Transform>
      </Transform>
      <TouchSensor DEF='TOUCHSINGLE' description='touch to activate single'/>
      <TimeSensor DEF='SINGLETIMER'/>
      <ColorInterpolator DEF='SINGLEFLASH' key='0 0.5 1' keyValue='0 1 0 1 1 1 0 1 0'/>
    </Transform>
    <Transform DEF='MULTI_TRANS'>
      <Transform translation='3 1.5 -8'>
        <Shape>
          <Appearance>
            <Material DEF='MULTIMATERIAL' ambientIntensity='1' diffuseColor='1 0 0'/>
          </Appearance>
          <Box DEF='MULTI' size='1.2 1 0.1'/>
        </Shape>
        <Transform translation='-0.65 0 0.2'>
          <Shape>
            <Appearance>
              <Material ambientIntensity='1' diffuseColor='0 0 0'/>
            </Appearance>
            <Text string='"Sound" "2"'>
              <FontStyle size='0.4'/>
            </Text>
          </Shape>
        </Transform>
      </Transform>
      <TouchSensor DEF='TOUCHMULTI' description='touch to activate multiple'/>
      <TimeSensor DEF='MULTITIMER'/>
      <ColorInterpolator DEF='MULTIFLASH' key='0 0.5 1' keyValue='1 0 0 1 1 1 1 0 0'/>
    </Transform>
    <Script DEF='SOUND_SCRIPT' directOutput='true' url='"simultaneous.js" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/Sound/simultaneous.js"'>
      <field accessType='initializeOnly' name='sound1' type='SFNode'>
        <AudioClip USE='SOUND1'/>
      </field>
      <field accessType='initializeOnly' name='sound2' type='SFNode'>
        <AudioClip USE='SOUND2'/>
      </field>
      <field accessType='initializeOnly' name='phonoColor' type='SFNode'>
        <Material USE='PHONOCOLOR'/>
      </field>
      <field accessType='initializeOnly' name='hornColor' type='SFNode'>
        <Material USE='HORNCOLOR'/>
      </field>
      <field accessType='initializeOnly' name='yellow' type='SFColor' value='0.75 0.75 0.00'/>
      <field accessType='initializeOnly' name='white' type='SFColor' value='0.80 0.80 0.80'/>
      <field accessType='inputOnly' name='colorPhonograph1' type='SFBool'/>
      <field accessType='inputOnly' name='colorPhonograph2' type='SFBool'/>
    </Script>
    <ROUTE fromField='touchTime' fromNode='TOUCHSINGLE' toField='set_startTime' toNode='SOUND1'/>
    <ROUTE fromField='touchTime' fromNode='TOUCHMULTI' toField='set_startTime' toNode='SOUND2'/>
    <ROUTE fromField='isActive' fromNode='SOUND1' toField='colorPhonograph1' toNode='SOUND_SCRIPT'/>
    <ROUTE fromField='isActive' fromNode='SOUND2' toField='colorPhonograph2' toNode='SOUND_SCRIPT'/>
    <ROUTE fromField='touchTime' fromNode='TOUCHSINGLE' toField='set_startTime' toNode='SINGLETIMER'/>
    <ROUTE fromField='fraction_changed' fromNode='SINGLETIMER' toField='set_fraction' toNode='SINGLEFLASH'/>
    <ROUTE fromField='value_changed' fromNode='SINGLEFLASH' toField='set_diffuseColor' toNode='SINGLEMATERIAL'/>
    <ROUTE fromField='touchTime' fromNode='TOUCHMULTI' toField='set_startTime' toNode='MULTITIMER'/>
    <ROUTE fromField='fraction_changed' fromNode='MULTITIMER' toField='set_fraction' toNode='MULTIFLASH'/>
    <ROUTE fromField='value_changed' fromNode='MULTIFLASH' toField='set_diffuseColor' toNode='MULTIMATERIAL'/>
    <ROUTE fromField='position_changed' fromNode='PROX_SENSOR' toField='set_translation' toNode='SINGLE_TRANS'/>
    <ROUTE fromField='orientation_changed' fromNode='PROX_SENSOR' toField='set_rotation' toNode='SINGLE_TRANS'/>
    <ROUTE fromField='position_changed' fromNode='PROX_SENSOR' toField='set_translation' toNode='MULTI_TRANS'/>
    <ROUTE fromField='orientation_changed' fromNode='PROX_SENSOR' toField='set_rotation' toNode='MULTI_TRANS'/>
  </Scene>
</X3D>