1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
3 | <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'> |
4 | <head> |
5 | <meta name='title' content='pitchrange.x3d'/> |
6 | <meta name='MovingImage' content='pitchrange-movie.mpg'/> |
7 | <meta name='reference' content='http://www.nist.gov/vrml.html'/> |
8 | <meta name='reference' content='http://www.itl.nist.gov/div897/ctg/vrml/vrml.html'/> |
9 | <meta name='creator' content='http://www.itl.nist.gov/div897/ctg/vrml/members.html'/> |
10 | <meta name='disclaimer' 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. '/> |
11 | <meta name='reference' 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'/> |
12 | <meta name='info' content='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d'/> |
13 | <meta name='creator' content='Michael Kass NIST'/> |
14 | <meta name='translator' content='Don Brutzman'/> |
15 | <meta name='translated' content='21 January 2001'/> |
16 | <meta name='modified' content='28 August 2023'/> |
17 | <meta name='description' content='This world tests an AudioClip pitch range of 0.5, 1 and 2.0 to determine if the browser correctly alters sound octave as well as sound duration time. Three AudioClip node, each with a different "pitch" value are in this world. Each can be selected by the viewer clicking on the appropriate button at the top of the world. Clicking on "Pitch 0.5" should produce a chime sound that lasts 10 seconds, and is one octave lower than that of "Pitch 1". Selecting "Pitch 1" (the default pitch) should produce a chime sound that lasts 5 seconds, and is one octave higher than "Pitch 0.5". Selecting "Pitch 2" should produce a chime sound that is one octave higher than the default (1), and has a duration of 2.5 seconds.'/> |
18 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/pitchrange.x3d'/> |
19 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
20 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
21 | <meta name='license' content='../../license.html'/> |
22 | </head> |
23 | <Scene> |
24 | <WorldInfo title='pitchrange.x3d'/> |
25 | <Viewpoint description='entry viewpoint' position='0 0 5'/> |
26 |
<!-- ROUTE information for PROX_SENSOR node:
[from position_changed to PITCH_HALF_TRANS.set_translation
]
[from orientation_changed to PITCH_HALF_TRANS.set_rotation
]
[from position_changed to PITCH_DEFAULT_TRANS.set_translation
]
[from orientation_changed to PITCH_DEFAULT_TRANS.set_rotation
]
[from position_changed to TWO_TRANS.set_translation
]
[from orientation_changed to TWO_TRANS.set_rotation
]
-->
<ProximitySensor DEF='PROX_SENSOR' size='1000 1000 1000'/> |
27 | <Sound> |
28 |
<!-- ROUTE information for MYSOUND1 node:
[from TOUCHHALF.touchTime to set_startTime
]
[from isActive to SOUND_SCRIPT.colorPhonograph
]
-->
<AudioClip DEF='MYSOUND1' description='chimes pitch x0.5' pitch='0.5' url=' "chimes.wav" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav" '/> |
29 | </Sound> |
30 | <Sound> |
31 |
<!-- ROUTE information for MYSOUND2 node:
[from TOUCHDEFAULT.touchTime to set_startTime
]
[from isActive to SOUND_SCRIPT.colorPhonograph
]
-->
<AudioClip DEF='MYSOUND2' description='chimes' url=' "chimes.wav" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav" '/> |
32 | </Sound> |
33 | <Sound> |
34 |
<!-- ROUTE information for MYSOUND3 node:
[from TOUCHTWO.touchTime to set_startTime
]
[from isActive to SOUND_SCRIPT.colorPhonograph
]
-->
<AudioClip DEF='MYSOUND3' description='chimes pitch x2' pitch='2' url=' "chimes.wav" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav" '/> |
35 | </Sound> |
36 | <Transform scale='0.5 0.5 0.5'> |
37 | <Transform translation='0 -2.25 0'> |
38 | <Shape> |
39 | <Appearance> |
40 |
<!-- Material
PHONOCOLOR is a DEF node that has 1 USE node: USE_1 --> <Material DEF='PHONOCOLOR'/> |
41 | </Appearance> |
42 | <Box size='3 1.5 3'/> |
43 | </Shape> |
44 | </Transform> |
45 | <Transform rotation='1 0 0 -2.5' translation='0 -0.25 0'> |
46 | <Shape> |
47 | <Appearance> |
48 | |
49 | </Appearance> |
50 | <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'/> |
51 | </Shape> |
52 | </Transform> |
53 | </Transform> |
54 |
<!-- ROUTE information for PITCH_HALF_TRANS node:
[from PROX_SENSOR.position_changed to set_translation
]
[from PROX_SENSOR.orientation_changed to set_rotation
]
-->
<Transform DEF='PITCH_HALF_TRANS'> |
55 | <Transform translation='-3 1.5 -5'> |
56 | <Shape> |
57 | <Appearance> |
58 |
<!-- ROUTE information for HALFMATERIAL node:
[from HALFFLASH.value_changed to set_diffuseColor
]
-->
<Material DEF='HALFMATERIAL' ambientIntensity='1' diffuseColor='0 1 0'/> |
59 | </Appearance> |
60 | <Box DEF='HALF' size='1 1 0.1'/> |
61 | </Shape> |
62 | <Transform translation='-0.35 -0.1 0.2'> |
63 | <Shape> |
64 | <Appearance> |
65 | <Material ambientIntensity='1' diffuseColor='0 0 0'/> |
66 | </Appearance> |
67 | <Text string='"Pitch" "0.5"'> |
68 | <FontStyle size='0.4'/> |
69 | </Text> |
70 | </Shape> |
71 | </Transform> |
72 | </Transform> |
73 |
<!-- ROUTE information for TOUCHHALF node:
[from touchTime to MYSOUND1.set_startTime
]
[from touchTime to HALFTIMER.set_startTime
]
-->
<TouchSensor DEF='TOUCHHALF' description='touch for half-speed pitch'/> |
74 |
<!-- ROUTE information for HALFTIMER node:
[from TOUCHHALF.touchTime to set_startTime
]
[from fraction_changed to HALFFLASH.set_fraction
]
-->
<TimeSensor DEF='HALFTIMER'/> |
75 |
<!-- ROUTE information for HALFFLASH node:
[from HALFTIMER.fraction_changed to set_fraction
]
[from value_changed to HALFMATERIAL.set_diffuseColor
]
-->
<ColorInterpolator DEF='HALFFLASH' key='0 0.5 1' keyValue='0 1 0 1 1 1 0 1 0'/> |
76 | </Transform> |
77 |
<!-- ROUTE information for PITCH_DEFAULT_TRANS node:
[from PROX_SENSOR.position_changed to set_translation
]
[from PROX_SENSOR.orientation_changed to set_rotation
]
-->
<Transform DEF='PITCH_DEFAULT_TRANS'> |
78 | <Transform translation='0 1.5 -5'> |
79 | <Shape> |
80 | <Appearance> |
81 |
<!-- ROUTE information for DEFAULTMATERIAL node:
[from DEFAULTFLASH.value_changed to set_diffuseColor
]
-->
<Material DEF='DEFAULTMATERIAL' ambientIntensity='1' diffuseColor='1 1 0'/> |
82 | </Appearance> |
83 | <Box DEF='DEFAULT' size='1 1 0.1'/> |
84 | </Shape> |
85 | <Transform translation='-0.35 -0.1 0.2'> |
86 | <Shape> |
87 | <Appearance> |
88 | <Material ambientIntensity='1' diffuseColor='0 0 0'/> |
89 | </Appearance> |
90 | <Text string='"Pitch" "1"'> |
91 | <FontStyle size='0.4'/> |
92 | </Text> |
93 | </Shape> |
94 | </Transform> |
95 | </Transform> |
96 |
<!-- ROUTE information for TOUCHDEFAULT node:
[from touchTime to MYSOUND2.set_startTime
]
[from touchTime to DEFAULTTIMER.set_startTime
]
-->
<TouchSensor DEF='TOUCHDEFAULT' description='touch for default-speed pitch'/> |
97 |
<!-- ROUTE information for DEFAULTTIMER node:
[from TOUCHDEFAULT.touchTime to set_startTime
]
[from fraction_changed to DEFAULTFLASH.set_fraction
]
-->
<TimeSensor DEF='DEFAULTTIMER'/> |
98 |
<!-- ROUTE information for DEFAULTFLASH node:
[from DEFAULTTIMER.fraction_changed to set_fraction
]
[from value_changed to DEFAULTMATERIAL.set_diffuseColor
]
-->
<ColorInterpolator DEF='DEFAULTFLASH' key='0 0.5 1' keyValue='1 1 0 1 1 1 1 1 0'/> |
99 | </Transform> |
100 |
<!-- ROUTE information for TWO_TRANS node:
[from PROX_SENSOR.position_changed to set_translation
]
[from PROX_SENSOR.orientation_changed to set_rotation
]
-->
<Transform DEF='TWO_TRANS'> |
101 | <Transform translation='3 1.5 -5'> |
102 | <Shape> |
103 | <Appearance> |
104 |
<!-- ROUTE information for TWOMATERIAL node:
[from TWOFLASH.value_changed to set_diffuseColor
]
-->
<Material DEF='TWOMATERIAL' ambientIntensity='1' diffuseColor='1 0 0'/> |
105 | </Appearance> |
106 | <Box DEF='TWO' size='1 1 0.1'/> |
107 | </Shape> |
108 | <Transform translation='-0.55 -0.1 0.2'> |
109 | <Shape> |
110 | <Appearance> |
111 | <Material ambientIntensity='1' diffuseColor='0 0 0'/> |
112 | </Appearance> |
113 | <Text string='"Pitch" "2"'> |
114 | <FontStyle size='0.4'/> |
115 | </Text> |
116 | </Shape> |
117 | </Transform> |
118 | </Transform> |
119 |
<!-- ROUTE information for TOUCHTWO node:
[from touchTime to MYSOUND3.set_startTime
]
[from touchTime to TWOTIMER.set_startTime
]
-->
<TouchSensor DEF='TOUCHTWO' description='touch for double-speed pitch'/> |
120 |
<!-- ROUTE information for TWOTIMER node:
[from TOUCHTWO.touchTime to set_startTime
]
[from fraction_changed to TWOFLASH.set_fraction
]
-->
<TimeSensor DEF='TWOTIMER'/> |
121 |
<!-- ROUTE information for TWOFLASH node:
[from TWOTIMER.fraction_changed to set_fraction
]
[from value_changed to TWOMATERIAL.set_diffuseColor
]
-->
<ColorInterpolator DEF='TWOFLASH' key='0 0.5 1' keyValue='1 0 0 1 1 1 1 0 0'/> |
122 | </Transform> |
123 |
<!-- ROUTE information for SOUND_SCRIPT node:
[from MYSOUND1.isActive to colorPhonograph
]
[from MYSOUND2.isActive to colorPhonograph
]
[from MYSOUND3.isActive to colorPhonograph
]
-->
<Script DEF='SOUND_SCRIPT' directOutput='true' url=' "pitchrange.js" "https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/pitchrange.js" '> |
124 | <field name='phonoColor' type='SFNode' accessType='initializeOnly'> |
125 | <Material USE='PHONOCOLOR'/> |
126 | </field> |
127 | <field name='hornColor' type='SFNode' accessType='initializeOnly'> |
128 | <Material USE='HORNCOLOR'/> |
129 | </field> |
130 | <field name='yellow' type='SFColor' value='0.75 0.75 0.00' accessType='initializeOnly'/> |
131 | <field name='white' type='SFColor' value='0.80 0.80 0.80' accessType='initializeOnly'/> |
132 | <field name='colorPhonograph' type='SFBool' accessType='inputOnly'/> |
133 | </Script> |
134 | < ROUTE fromNode='TOUCHHALF' fromField='touchTime' toNode='MYSOUND1' toField='set_startTime'/> |
135 | < ROUTE fromNode='TOUCHDEFAULT' fromField='touchTime' toNode='MYSOUND2' toField='set_startTime'/> |
136 | < ROUTE fromNode='TOUCHTWO' fromField='touchTime' toNode='MYSOUND3' toField='set_startTime'/> |
137 | < ROUTE fromNode='PROX_SENSOR' fromField='position_changed' toNode='PITCH_HALF_TRANS' toField='set_translation'/> |
138 | < ROUTE fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='PITCH_HALF_TRANS' toField='set_rotation'/> |
139 | < ROUTE fromNode='PROX_SENSOR' fromField='position_changed' toNode='PITCH_DEFAULT_TRANS' toField='set_translation'/> |
140 | < ROUTE fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='PITCH_DEFAULT_TRANS' toField='set_rotation'/> |
141 | < ROUTE fromNode='PROX_SENSOR' fromField='position_changed' toNode='TWO_TRANS' toField='set_translation'/> |
142 | < ROUTE fromNode='PROX_SENSOR' fromField='orientation_changed' toNode='TWO_TRANS' toField='set_rotation'/> |
143 | < ROUTE fromNode='MYSOUND1' fromField='isActive' toNode='SOUND_SCRIPT' toField='colorPhonograph'/> |
144 | < ROUTE fromNode='MYSOUND2' fromField='isActive' toNode='SOUND_SCRIPT' toField='colorPhonograph'/> |
145 | < ROUTE fromNode='MYSOUND3' fromField='isActive' toNode='SOUND_SCRIPT' toField='colorPhonograph'/> |
146 | < ROUTE fromNode='TOUCHHALF' fromField='touchTime' toNode='HALFTIMER' toField='set_startTime'/> |
147 | < ROUTE fromNode='HALFTIMER' fromField='fraction_changed' toNode='HALFFLASH' toField='set_fraction'/> |
148 | < ROUTE fromNode='HALFFLASH' fromField='value_changed' toNode='HALFMATERIAL' toField='set_diffuseColor'/> |
149 | < ROUTE fromNode='TOUCHDEFAULT' fromField='touchTime' toNode='DEFAULTTIMER' toField='set_startTime'/> |
150 | < ROUTE fromNode='DEFAULTTIMER' fromField='fraction_changed' toNode='DEFAULTFLASH' toField='set_fraction'/> |
151 | < ROUTE fromNode='DEFAULTFLASH' fromField='value_changed' toNode='DEFAULTMATERIAL' toField='set_diffuseColor'/> |
152 | < ROUTE fromNode='TOUCHTWO' fromField='touchTime' toNode='TWOTIMER' toField='set_startTime'/> |
153 | < ROUTE fromNode='TWOTIMER' fromField='fraction_changed' toNode='TWOFLASH' toField='set_fraction'/> |
154 | < ROUTE fromNode='TWOFLASH' fromField='value_changed' toNode='TWOMATERIAL' toField='set_diffuseColor'/> |
155 | </Scene> |
156 | </X3D> |
Event Graph ROUTE Table entries with 21 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.
TOUCHDEFAULT
TouchSensor touchTime SFTime |
MYSOUND2
AudioClip set_startTime SFTime |
then
|
MYSOUND2
AudioClip isActive SFBool |
SOUND_SCRIPT
Script colorPhonograph SFBool |
||||||
TOUCHDEFAULT
TouchSensor touchTime SFTime |
DEFAULTTIMER
TimeSensor set_startTime SFTime |
then
|
DEFAULTTIMER
TimeSensor fraction_changed SFFloat |
DEFAULTFLASH
ColorInterpolator set_fraction SFFloat |
then
|
DEFAULTFLASH
ColorInterpolator value_changed SFColor |
DEFAULTMATERIAL
Material set_diffuseColor SFColor |
TOUCHHALF
TouchSensor touchTime SFTime |
MYSOUND1
AudioClip set_startTime SFTime |
then
|
MYSOUND1
AudioClip isActive SFBool |
SOUND_SCRIPT
Script colorPhonograph SFBool |
||||||
TOUCHHALF
TouchSensor touchTime SFTime |
HALFTIMER
TimeSensor set_startTime SFTime |
then
|
HALFTIMER
TimeSensor fraction_changed SFFloat |
HALFFLASH
ColorInterpolator set_fraction SFFloat |
then
|
HALFFLASH
ColorInterpolator value_changed SFColor |
HALFMATERIAL
Material set_diffuseColor SFColor |
TOUCHTWO
TouchSensor touchTime SFTime |
MYSOUND3
AudioClip set_startTime SFTime |
then
|
MYSOUND3
AudioClip isActive SFBool |
SOUND_SCRIPT
Script colorPhonograph SFBool |
||||||
TOUCHTWO
TouchSensor touchTime SFTime |
TWOTIMER
TimeSensor set_startTime SFTime |
then
|
TWOTIMER
TimeSensor fraction_changed SFFloat |
TWOFLASH
ColorInterpolator set_fraction SFFloat |
then
|
TWOFLASH
ColorInterpolator value_changed SFColor |
TWOMATERIAL
Material set_diffuseColor SFColor |
PROX_SENSOR
ProximitySensor position_changed SFVec3f |
PITCH_HALF_TRANS
Transform set_translation SFVec3f |
|
PROX_SENSOR
ProximitySensor orientation_changed SFRotation |
PITCH_HALF_TRANS
Transform set_rotation SFRotation |
|
PROX_SENSOR
ProximitySensor position_changed SFVec3f |
PITCH_DEFAULT_TRANS
Transform set_translation SFVec3f |
|
PROX_SENSOR
ProximitySensor orientation_changed SFRotation |
PITCH_DEFAULT_TRANS
Transform set_rotation SFRotation |
|
PROX_SENSOR
ProximitySensor position_changed SFVec3f |
TWO_TRANS
Transform set_translation SFVec3f |
|
PROX_SENSOR
ProximitySensor orientation_changed SFRotation |
TWO_TRANS
Transform set_rotation SFRotation |
<!--
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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->