<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive'  version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.3.xsd ' >
<head>
<meta name='titlecontent=' SoundFileFormats.x3d '/>
<meta name='descriptioncontent='Provide a test scene for sound files using various audio formats.'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='10 November 2013'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='Imagecontent='SoundFileFormats.png' />
<meta name='Soundcontent='audio/Testing123stereo.wav'/>
<meta name='Soundcontent=' audio/Testing123stereo.aiff '/>
<meta name='Soundcontent=' audio/Testing123stereo.mp3 '/>
<meta name='Soundcontent='audio/Testing123original.wav'/>
<meta name='Soundcontent='Reunion by Marc Sabatella, distributed with MuseScore'/>
<meta name='Soundcontent='audio/Reunion_Example.mid'/>
<meta name='requirescontent=' File type requirements, https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/sound.html#AudioClip '/>
<meta name='subjectcontent='X3D audio formats test'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/SoundFileFormats.x3d '/>
<meta name='generatorcontent='ZOOM H2next Handy Recorder, http://www.zoom.co.jp/products/h2n'/>
<meta name='generatorcontent='Audacity, http://audacity.sourceforge.net'/>
<meta name='generatorcontent='MuseScore, http://musescore.org'/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='SoundFileFormats.x3d'/>
<Background skyColor='0.2 0.2 0.2'/>
<!-- ============================================================ -->
<Transform DEF='WavPlayscale='0.4 0.4 0.4translation='-4 0.5 0'>
<!-- ROUTE information for WavTextClickedSensor node:  [from touchTime to Testing123stereoWavAudioClip.startTime ] -->
<TouchSensor DEF='WavTextClickedSensordescription='Play file via Sound/AudioClip: Testing123stereo.wav'/>

<Sound maxBack='100maxFront='100minBack='20minFront='20'>
<!-- Make sure the sound source AudioClip is audible at the user location -->
<!-- ROUTE information for Testing123stereoWavAudioClip node:  [from WavTextClickedSensor.touchTime to startTime ] -->
<AudioClip DEF='Testing123stereoWavAudioClipdescription='Playing Testing123stereo.wav'
  url=' "audio/Testing123stereo.wav" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/audio/Testing123stereo.wav" ' />
</Sound>
< ROUTE  fromNode=' WavTextClickedSensor' fromField='touchTime' toNode=' Testing123stereoWavAudioClip' toField='startTime'/>
<Shape>
<Text string='"Testing123stereo.wav"'>
<FontStyle DEF='MessageFontfamily='"SANS"justify='"MIDDLE" "MIDDLE"style='BOLD'/>
</Text>
<Appearance DEF='GreenAppearance'>
<Material diffuseColor='0 1 0'/>
</Appearance>
</Shape>
<Transform DEF='TextClickSurfacescale='5 0.5 1translation='0 0.3 0'>
<Shape>
<IndexedFaceSet solid='falsecoordIndex='0 1 2 3 -1'>
<Coordinate point='1 1 0 1 -1 0 -1 -1 0 -1 1 0'/>
</IndexedFaceSet>
<Appearance>
<Material transparency='1'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<Transform DEF='WavLaunchscale='0.4 0.4 0.4translation='-4 -0.1 0'>
<Anchor description='Launch audio file in Web browser: Testing123stereo.wavparameter='"target=_blank"'
  url=' "audio/Testing123stereo.wav" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/audio/Testing123stereo.wav" ' >
<Shape>
<Text string='"(launch)"'>
<FontStyle USE=' MessageFont'/>
</Text>
<Appearance USE=' GreenAppearance'/>
</Shape>
<Transform USE=' TextClickSurface'/>
</Anchor>
</Transform>
<!-- ============================================================ -->
<Transform DEF='Mp3Playscale='0.4 0.4 0.4translation='0 0.5 0'>
<!-- ROUTE information for Mp3TextClickedSensor node:  [from touchTime to Testing123stereoMp3AudioClip.startTime ] -->
<TouchSensor DEF='Mp3TextClickedSensordescription='Play file via Sound/AudioClip: Testing123stereo.mp3'/>

<Sound maxBack='100maxFront='100minBack='20minFront='20'> </Sound>
< ROUTE  fromNode=' Mp3TextClickedSensor' fromField='touchTime' toNode=' Testing123stereoMp3AudioClip' toField='startTime'/>
<Shape>
<Text string='"Testing123stereo.mp3"'>
<FontStyle USE=' MessageFont'/>
</Text>
<Appearance DEF='TurquoiseAppearance'>
<Material diffuseColor='0.156863 0.878431 0.815686'/>
</Appearance>
</Shape>
<Transform USE=' TextClickSurface'/>
</Transform>
<Transform DEF='Mp3Launchscale='0.4 0.4 0.4translation='0 -0.1 0'>
<Anchor description='Launch audio file in Web browser: Testing123stereo.mp3parameter='"target=_blank"'
  url=' audio/Testing123stereo.mp3"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/audio/Testing123stereo.mp3" ' >
<Shape>
<Text string='"(launch)"'>
<FontStyle USE=' MessageFont'/>
</Text>
<Appearance USE=' TurquoiseAppearance'/>
</Shape>
<Transform USE=' TextClickSurface'/>
</Anchor>
</Transform>
<!-- ============================================================ -->
<Transform DEF='MidiPlayscale='0.4 0.4 0.4translation='0 -2 0'>
<!-- ROUTE information for MidiTextClickedSensor node:  [from touchTime to Testing123stereoMidiAudioClip.startTime ] -->
<TouchSensor DEF='MidiTextClickedSensordescription='Play file via Sound/AudioClip: Reunion_Example.mid'/>

<Sound maxBack='100maxFront='100minBack='20minFront='20'> </Sound>
< ROUTE  fromNode=' MidiTextClickedSensor' fromField='touchTime' toNode=' Testing123stereoMidiAudioClip' toField='startTime'/>
<Shape>
<Text string='"Reunion_Example.mid"'>
<FontStyle USE=' MessageFont'/>
</Text>
<Appearance USE=' TurquoiseAppearance'/>
</Shape>
<Transform USE=' TextClickSurface'/>
</Transform>
<Transform DEF='MidiLaunchscale='0.4 0.4 0.4translation='0 -2.6 0'>
<Anchor description='Launch audio file in Web browser: Reunion_Example.midparameter='"target=_blank"'
  url=' "audio/Reunion_Example.mid" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/audio/Reunion_Example.mid" ' >
<Shape>
<Text string='"(launch)"'>
<FontStyle USE=' MessageFont'/>
</Text>
<Appearance USE=' TurquoiseAppearance'/>
</Shape>
<Transform USE=' TextClickSurface'/>
</Anchor>
</Transform>
<!-- ============================================================ -->
<Transform DEF='AiffPlayscale='0.4 0.4 0.4translation='4 0.5 0'>
<!-- ROUTE information for AiffTextClickedSensor node:  [from touchTime to Testing123stereoAiffAudioClip.startTime ] -->
<TouchSensor DEF='AiffTextClickedSensordescription='Play file via Sound/AudioClip: Testing123stereo.aiff'/>

<Sound maxBack='100maxFront='100minBack='20minFront='20'> </Sound>
< ROUTE  fromNode=' AiffTextClickedSensor' fromField='touchTime' toNode=' Testing123stereoAiffAudioClip' toField='startTime'/>
<Shape>
<Text string='"Testing123stereo.aiff"'>
<FontStyle USE=' MessageFont'/>
</Text>
<Appearance DEF='AmberAppearance'>
<Material diffuseColor='1 0.760784 0'/>
</Appearance>
</Shape>
<Transform USE=' TextClickSurface'/>
</Transform>
<Transform DEF='AiffLaunchscale='0.4 0.4 0.4translation='4 -0.1 0'>
<Anchor description='Launch audio file in Web browser: Testing123stereo.aiffparameter='"target=_blank"'
  url=' audio/Testing123stereo.aiff"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/audio/Testing123stereo.aiff" ' >
<Shape>
<Text string='"(launch)"'>
<FontStyle USE=' MessageFont'/>
</Text>
<Appearance USE=' AmberAppearance'/>
</Shape>
<Transform USE=' TextClickSurface'/>
</Anchor>
</Transform>
<!-- ============================================================ -->
<Transform DEF='HeaderBoxtranslation='0 2 -0.1'>
<Shape>
<Box size='12 1 0.1'/>
<Appearance>
<Material diffuseColor='1 1 1transparency='0.75'/>
</Appearance>
</Shape>
</Transform>
<Transform DEF='WavRequiredscale='0.4 0.4 0.4translation='-4 2 0'>
<Shape>
<Text string='"Required Support"'>
<FontStyle USE=' MessageFont'/>
</Text>
<Appearance USE=' GreenAppearance'/>
</Shape>
</Transform>
<Transform DEF='Mp3Recommendedscale='0.4 0.4 0.4translation='0 2 0'>
<Shape>
<Text string='"Recommended Support"'>
<FontStyle USE=' MessageFont'/>
</Text>
<Appearance USE=' TurquoiseAppearance'/>
</Shape>
</Transform>
<Transform DEF='AiffOptionalscale='0.4 0.4 0.4translation='4 2 0'>
<Shape>
<Text string='"Optional Support"'>
<FontStyle USE=' MessageFont'/>
</Text>
<Appearance USE=' AmberAppearance'/>
</Shape>
</Transform>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: AiffLaunch, AiffOptional, AiffPlay, AiffTextClickedSensor, AmberAppearance, GreenAppearance, HeaderBox, MessageFont, MidiLaunch, MidiPlay, MidiTextClickedSensor, Mp3Launch, Mp3Play, Mp3Recommended, Mp3TextClickedSensor, Testing123stereoAiffAudioClip, Testing123stereoMidiAudioClip, Testing123stereoMp3AudioClip, Testing123stereoWavAudioClip, TextClickSurface, TurquoiseAppearance, WavLaunch, WavPlay, WavRequired, WavTextClickedSensor
-->

Event Graph ROUTE Table entries with 4 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

AiffTextClickedSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
Testing123stereoAiffAudioClip
AudioClip
startTime
SFTime


MidiTextClickedSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
Testing123stereoMidiAudioClip
AudioClip
startTime
SFTime


Mp3TextClickedSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
Testing123stereoMp3AudioClip
AudioClip
startTime
SFTime


WavTextClickedSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
Testing123stereoWavAudioClip
AudioClip
startTime
SFTime



-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/SoundFileFormatsIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/SoundFileFormats.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

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