<?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='Immersive' version='3.0 xmlns: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='referencecontent=' http://www.wiley.com/legacy/compbooks/vrml2sbk/ch24/24fig04.htm '/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='2 October 2000'/>
<meta name='modifiedcontent='11 January 2014'/>
<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/Vrml2Sourcebook/Chapter24-Sound/Figure24.4FourKeyKeyboard.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, 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'/>
<Appearance>
<Material diffuseColor='0.9 0.9 0.9'/>
</Appearance>
</Shape>
<!-- C4 ROUTE:  [from touchTime to PitchC4.set_startTime ] -->
<TouchSensor DEF='C4description='C4 key'/>
<Sound minBack='5minFront='5'>
<!-- PitchC4 ROUTE:  [from C4.touchTime to set_startTime ] -->
<AudioClip DEF='PitchC4description='Pitch C4'
  url=' "tone1.wav" "http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24-Sound/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 key'/>
<Sound minBack='5minFront='5'>
<!-- PitchCs4 ROUTE:  [from Cs4.touchTime to set_startTime ] -->
<AudioClip DEF='PitchCs4description='Pitch Csharp4pitch='1.059'
  url=' "tone1.wav" "http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24-Sound/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 key'/>
<Sound minBack='5minFront='5'>
<!-- PitchD4 ROUTE:  [from D4.touchTime to set_startTime ] -->
<AudioClip DEF='PitchD4description='Pitch D4pitch='1.122'
  url=' "tone1.wav" "http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24-Sound/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 key'/>
<Sound minBack='5minFront='5'>
<!-- PitchDs4 ROUTE:  [from Ds4.touchTime to set_startTime ] -->
<AudioClip DEF='PitchDs4description='Pitch Dsharp4pitch='1.189'
  url=' "tone1.wav" "http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24-Sound/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
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/> -->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->