X3D Model Documentation: AllAudioGraphNodesTest.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
  3  <X3D profile='Immersive' version='4.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.0.xsd'>
  4       <head>
  5            <component level='3name='Sound'/>
  6            <meta name='titlecontent=' AllAudioGraphNodesTest.x3d '/>
  7            <meta name='descriptioncontent='List of all X3D4 audio graph nodes to test authoring tools and validation support. Each of the sound nodes shown here receives signal input from its children nodes, and provides signal output to its parent node.'/>
  8            <meta name='creatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='25 October 2020'/>
 10            <meta name='modifiedcontent='27 August 2025'/>
 11            <meta name='infocontent='Developmental test, no actual audio model is produced'/>
 12            <meta name='Soundcontent='sound/saxophone.ogg' />
 13            <meta name='Soundcontent=' sound/saxophone.mp3 ' />
 14            <meta name='Soundcontent=' sound/saxophone.wav ' />
 15            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/AllAudioGraphNodesTest.x3d '/>
 16            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 17            <meta name='licensecontent='../license.html'/>
 18       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: TestAcousticProperties, TestAnalyser, TestAudioClip, TestAudioDestination, TestBiquadFilter, TestBufferAudioSource, TestChannelMerger, TestChannelSelector, TestChannelSplitter, TestConvolver, TestDelay, TestDynamicsCompressor, TestGain, TestListenerPointSource, TestMicrophoneSource, TestOscillatorSource, TestPeriodicWave, TestSound, TestSpatialSound, TestStreamAudioDestination, TestStreamAudioSource, TestTimeSensor, TestWaveShaper
-->
 19       <Scene>
 20            <WorldInfo title='AllAudioGraphNodesTest.x3d'/>
 21            <Shape>
 22                 <Box/>
 23                 <Appearance>
 24                      <AcousticProperties DEF='TestAcousticPropertiesabsorption='0.11description='hello AcousticPropertiesdiffuse='0.22enabled='falserefraction='0.33specular='0.44'/>
 25                      <Material/>
 26                 </Appearance>
 27            </Shape>
 28            <Sound DEF='TestSounddescription='hello Sounddirection='0 0 1.2enabled='falseintensity='0.99location='0.1 1.6 0.1maxBack='10.1maxFront='10.2minBack='1.3minFront='1.4priority='0.01spatialize='false'>
 29                 <!-- TODO fix missing canonicalization of gain='1' -->
 30 
               <!-- ROUTE information for TestAudioClip node:  [from TestTimeSensor.cycleTime to startTime ] -->
               <AudioClip DEF='TestAudioClipautoRefresh='100autoRefreshTimeLimit='1000description='hello AudioClipenabled='falsegain='1.2pauseTime='5pitch='3.4resumeTime='6startTime='7stopTime='8'   url=' "sound/saxophone.ogg " "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/sound/saxophone.ogg" "sound/saxophone.mp3" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/sound/saxophone.mp3" "sound/saxophone.wav" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/sound/saxophone.wav" '/>
 31                 <!-- ROUTE connections do not pass validation if provided within a chain of audio nodes. -->
 32            </Sound>
 33            <!-- Any ROUTE connections must follow DEF nodes being connected. -->
 34 
          <!-- ROUTE information for TestTimeSensor node:  [from cycleTime to TestAudioClip.startTime ] -->
          <TimeSensor DEF='TestTimeSensorcycleInterval='2description='hello TimeSensorenabled='falseloop='truepauseTime='3resumeTime='4startTime='5stopTime='6'/>
 35            < ROUTE  fromNode='TestTimeSensor' fromField='cycleTime' toNode='TestAudioClip' toField='startTime'/>
 36            <!-- Each of the following sound nodes receives signal input from its children nodes, and provides signal output to its parent node. -->
 37            <SpatialSound DEF='TestSpatialSoundconeInnerAngle='3.14coneOuterAngle='3.15coneOuterGain='0.5description='hello SpatialSounddirection='2 3 4distanceModel='EXPONENTIALdopplerEnabled='trueenableHRTF='trueenabled='falsegain='1.1intensity='0.5location='6 7 8maxDistance='20000priority='0.9referenceDistance='10rolloffFactor='11spatialize='false'>
 38                 <Analyser DEF='TestAnalyserchannelCountMode='EXPLICITchannelInterpretation='DISCRETEdescription='hello AnalyserfftSize='2049gain='0.99maxDecibels='-31minDecibels='-101pauseTime='6resumeTime='7smoothingTimeConstant='0.88startTime='8stopTime='9'>
 39                      <AudioDestination DEF='TestAudioDestinationchannelCountMode='EXPLICITchannelInterpretation='DISCRETEdescription='hello AudioDestinationenabled='falsegain='1.1mediaDeviceID='ABC345'>
 40                           <BiquadFilter DEF='TestBiquadFilterdescription='hello BiquadFilterdetune='0.5enabled='falsefrequency='1000gain='2pauseTime='3resumeTime='4startTime='5stopTime='6tailTime='7type='ALLPASS'>
 41                                <ChannelMerger DEF='TestChannelMergerchannelCountMode='EXPLICITchannelInterpretation='DISCRETEdescription='hello ChannelMergerenabled='falsegain='123'>
 42                                     <ChannelSelector DEF='TestChannelSelectorchannelCountMode='CLAMPED_MAXchannelInterpretation='DISCRETEchannelSelection='1description='hello ChannelSelectorenabled='falsegain='2'>
 43                                          <ChannelSplitter DEF='TestChannelSplitterchannelCountMode='EXPLICITchannelInterpretation='DISCRETEdescription='hello ChannelSplitterenabled='falsegain='789'>
 44                                               <Convolver DEF='TestConvolverbuffer='0 1 2 3channelCountMode='CLAMPED_MAXchannelInterpretation='DISCRETEdescription='hello Convolverenabled='falsegain='4normalize='truepauseTime='5resumeTime='6startTime='7stopTime='8tailTime='9'>
 45                                                    <Delay DEF='TestDelaychannelCountMode='CLAMPED_MAXdelayTime='2description='hello delayenabled='falsegain='4maxDelayTime='3pauseTime='5resumeTime='6startTime='7stopTime='8tailTime='9'>
 46                                                         <DynamicsCompressor DEF='TestDynamicsCompressorattack='0.00333description='hello DynamicsCompressorenabled='falsegain='2knee='10pauseTime='3ratio='11release='12resumeTime='4startTime='5stopTime='6tailTime='7threshold='-100'>
 47                                                              <Gain DEF='TestGainchannelCountMode='EXPLICITchannelInterpretation='DISCRETEdescription='hello gainenabled='falsegain='-2pauseTime='2resumeTime='3startTime='4stopTime='5tailTime='1'>
 48                                                                   <StreamAudioDestination DEF='TestStreamAudioDestinationchannelCountMode='CLAMPED_MAXchannelInterpretation='DISCRETEdescription='hello StreamAudioDestinationenabled='falsegain='0mediaDeviceID='abc123streamIdentifier='"unique ID" "part 2"'>
 49                                                                        <WaveShaper DEF='TestWaveShaperchannelCountMode='CLAMPED_MAXchannelInterpretation='DISCRETEcurve='1 2 3 4description='hello WaveShaperenabled='falsegain='5pauseTime='6resumeTime='7startTime='8stopTime='9tailTime='10'>
 50                                                                             <!-- The following X3DSoundSourceNode nodes have no allowed audio-graph children nodes as inputs -->
 51                                                                             <BufferAudioSource DEF='TestBufferAudioSourceautoRefresh='1autoRefreshTimeLimit='2buffer='3 4 5bufferDuration='6channelCountMode='CLAMPED_MAXchannelInterpretation='DISCRETEdescription='hello BufferAudioSourcedetune='7enabled='falsegain='8load='falseloop='trueloopEnd='12loopStart='12numberOfChannels='12pauseTime='13playbackRate='14resumeTime='15sampleRate='16startTime='17stopTime='18'   url=' "sound/saxophone.mp3" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/sound/saxophone.mp3" '/>
 52                                                                             <ListenerPointSource DEF='TestListenerPointSourcedescription='hello ListenerPointSourcedopplerEnabled='trueenabled='falsegain='0.1interauralDistance='2orientation='6 7 8 0.9pauseTime='10position='3 4 5resumeTime='11startTime='12stopTime='13trackCurrentView='true'/>
 53                                                                             <MicrophoneSource DEF='TestMicrophoneSourcedescription='hello MicrophoneSourceenabled='falsegain='0.12mediaDeviceID='345XYZpauseTime='6resumeTime='7startTime='8stopTime='9'/>
 54                                                                             <OscillatorSource DEF='TestOscillatorSourcedescription='hello OscillatorSourcedetune='1enabled='falsefrequency='234gain='5pauseTime='6resumeTime='7startTime='8stopTime='9'>
 55                                                                                  <PeriodicWave DEF='TestPeriodicWavedescription='hello PeriodicWaveoptionsImag='0 1 2 3 5optionsReal='5 6 7 8 9type='CUSTOMcontainerField='periodicWave'/>
 56                                                                             </OscillatorSource>
 57                                                                             <StreamAudioSource DEF='TestStreamAudioSourcechannelCountMode='EXPLICITchannelInterpretation='DISCRETEdescription='hello StreamAudioSourceenabled='falsegain='1.2pauseTime='6resumeTime='7startTime='8stopTime='9streamIdentifier='"345 XYZ"'/>
 58                                                                        </WaveShaper>
 59                                                                   </StreamAudioDestination>
 60                                                              </Gain>
 61                                                         </DynamicsCompressor>
 62                                                    </Delay>
 63                                               </Convolver>
 64                                          </ChannelSplitter>
 65                                     </ChannelSelector>
 66                                </ChannelMerger>
 67                           </BiquadFilter>
 68                      </AudioDestination>
 69                 </Analyser>
 70            </SpatialSound>
 71       </Scene>
 72  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: TestAcousticProperties, TestAnalyser, TestAudioClip, TestAudioDestination, TestBiquadFilter, TestBufferAudioSource, TestChannelMerger, TestChannelSelector, TestChannelSplitter, TestConvolver, TestDelay, TestDynamicsCompressor, TestGain, TestListenerPointSource, TestMicrophoneSource, TestOscillatorSource, TestPeriodicWave, TestSound, TestSpatialSound, TestStreamAudioDestination, TestStreamAudioSource, TestTimeSensor, TestWaveShaper
-->
X3D Tooltips element index: AcousticProperties, Analyser, Appearance, AudioClip, AudioDestination, BiquadFilter, Box, BufferAudioSource, ChannelMerger, ChannelSelector, ChannelSplitter, component, Convolver, Delay, DynamicsCompressor, Gain, head, ListenerPointSource, Material, meta, MicrophoneSource, OscillatorSource, PeriodicWave, ROUTE, Scene, Shape, Sound, SpatialSound, StreamAudioDestination, StreamAudioSource, TimeSensor, WaveShaper, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

Event Graph ROUTE Table with 1 ROUTE connection 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.

TestTimeSensor
TimeSensor
cycleTime
SFTime

ROUTE
event to
(1)
TestAudioClip
AudioClip
startTime
SFTime


Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/AllAudioGraphNodesTestIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/AllAudioGraphNodesTest.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='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. -->