<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN"   "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersiveversion='3.0xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='Figure24.4FourKeyKeyboard.x3d'/>
<meta name='creatorcontent='Figure 24.4, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='2 October 2000'/>
<meta name='modifiedcontent='3 September 2004'/>
<meta name='descriptioncontent='Four keys in a keyboard, showing how pitch can vary a single sound source.'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter24-Sound/Figure24.4FourKeyKeyboard.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent='../../license.html'/>
</head>
<!--

Index for DEF nodes: BlackKey, C4, Cs4, D4, Ds4, PitchC4, PitchCs4, PitchD4, PitchDs4, WhiteKey
Index for Viewpoint image: Viewpoint_1
-->
<Scene>
<Viewpoint description='Middle C, C#, D, D#orientation='1 0 0 -0.758position='0 2 2'/>
<Group>
<Transform>
<Shape DEF='WhiteKey'>
<Box size='0.23 0.1 1.5'/>
</Shape>
<!-- C4 ROUTE:  [from touchTime to PitchC4.set_startTime ] -->
<TouchSensor DEF='C4description='C4'/>
<Sound minBack='5minFront='5'>
<!-- PitchC4 ROUTE:  [from C4.touchTime to set_startTime ] -->
<AudioClip DEF='PitchC4description='PitchC4'
  url=' "tone1.wav" "http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/tone1.wav" '/>
</Sound>
</Transform>
<Transform translation='0.125 0.1 -0.375'>
<Shape DEF='BlackKey'>
<Box size='0.2 0.1 0.75'/>
<Appearance>
<Material diffuseColor='0.4 0.4 0.4'/>
</Appearance>
</Shape>
<!-- Cs4 ROUTE:  [from touchTime to PitchCs4.set_startTime ] -->
<TouchSensor DEF='Cs4description='Csharp4'/>
<Sound minBack='5minFront='5'>
<!-- PitchCs4 ROUTE:  [from Cs4.touchTime to set_startTime ] -->
<AudioClip DEF='PitchCs4description='PitchCs4pitch='1.059'
  url=' "tone1.wav" "http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/tone1.wav" '/>
</Sound>
</Transform>
<Transform translation='0.25 0 0'>
<Shape USE='WhiteKey'/>
<!-- D4 ROUTE:  [from touchTime to PitchD4.set_startTime ] -->
<TouchSensor DEF='D4description='D4'/>
<Sound minBack='5minFront='5'>
<!-- PitchD4 ROUTE:  [from D4.touchTime to set_startTime ] -->
<AudioClip DEF='PitchD4description='PitchD4pitch='1.122'
  url=' "tone1.wav" "http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/tone1.wav" '/>
</Sound>
</Transform>
<Transform translation='0.375 0.1 -0.375'>
<Shape USE='BlackKey'/>
<!-- Ds4 ROUTE:  [from touchTime to PitchDs4.set_startTime ] -->
<TouchSensor DEF='Ds4description='Dsharp4'/>
<Sound minBack='5minFront='5'>
<!-- PitchDs4 ROUTE:  [from Ds4.touchTime to set_startTime ] -->
<AudioClip DEF='PitchDs4description='PitchDs4pitch='1.189'
  url=' "tone1.wav" "http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/tone1.wav" '/>
</Sound>
</Transform>
</Group>
<ROUTE fromNode='C4fromField='touchTimetoNode='PitchC4toField='set_startTime'/>
<ROUTE fromNode='Cs4fromField='touchTimetoNode='PitchCs4toField='set_startTime'/>
<ROUTE fromNode='D4fromField='touchTimetoNode='PitchD4toField='set_startTime'/>
<ROUTE fromNode='Ds4fromField='touchTimetoNode='PitchDs4toField='set_startTime'/>
</Scene>
</X3D>
<!--

Index for DEF nodes: BlackKey, C4, Cs4, D4, Ds4, PitchC4, PitchCs4, PitchD4, PitchDs4, WhiteKey
Index for Viewpoint image: Viewpoint_1
-->

<!-- Tag color codes: <Node DEF='idName' attribute='value'/> -->