{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"http://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Figure24.4FourKeyKeyboard.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 24.4, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland"
          },
          {
            "@name":"reference",
            "@content":"http://www.wiley.com/legacy/compbooks/vrml2sbk/ch24/24fig04.htm"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"2 October 2000"
          },
          {
            "@name":"modified",
            "@content":"11 January 2014"
          },
          {
            "@name":"description",
            "@content":"Four keys in a keyboard, showing how pitch can vary a single sound source."
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24-Sound/Figure24.4FourKeyKeyboard.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"19 March 2017"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, http://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"warning",
            "@content":"An experimental version of X3D JSON encoding is used for this scene.  Status online at http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "Viewpoint":
            {
              "@description":"Middle C, C#, D, D#",
              "@orientation":[1,0,0,-0.758],
              "@position":[0,2,2]
            }
          },
          { "Group":
            {
              "-children":[
                { "Transform":
                  {
                    "-children":[
                      { "Shape":
                        {
                          "@DEF":"WhiteKey",
                          "-geometry":
                            { "Box":
                              {
                                "@size":[0.23,0.1,1.5]
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0.9,0.9,0.9]
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"C4",
                          "@description":"C4 key"
                        }
                      },
                      { "Sound":
                        {
                          "@minBack":5,
                          "@minFront":5,
                          "-source":
                            { "AudioClip":
                              {
                                "@DEF":"PitchC4",
                                "@description":"Pitch C4",
                                "@url":["tone1.wav","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24-Sound/tone1.wav"]
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@translation":[0.125,0.1,-0.375],
                    "-children":[
                      { "Shape":
                        {
                          "@DEF":"BlackKey",
                          "-geometry":
                            { "Box":
                              {
                                "@size":[0.2,0.1,0.75]
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0.4,0.4,0.4]
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"Cs4",
                          "@description":"Csharp4 key"
                        }
                      },
                      { "Sound":
                        {
                          "@minBack":5,
                          "@minFront":5,
                          "-source":
                            { "AudioClip":
                              {
                                "@DEF":"PitchCs4",
                                "@description":"Pitch Csharp4",
                                "@pitch":1.059,
                                "@url":["tone1.wav","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24-Sound/tone1.wav"]
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@translation":[0.25,0,0],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"WhiteKey"
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"D4",
                          "@description":"D4 key"
                        }
                      },
                      { "Sound":
                        {
                          "@minBack":5,
                          "@minFront":5,
                          "-source":
                            { "AudioClip":
                              {
                                "@DEF":"PitchD4",
                                "@description":"Pitch D4",
                                "@pitch":1.122,
                                "@url":["tone1.wav","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24-Sound/tone1.wav"]
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@translation":[0.375,0.1,-0.375],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"BlackKey"
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"Ds4",
                          "@description":"Dsharp4 key"
                        }
                      },
                      { "Sound":
                        {
                          "@minBack":5,
                          "@minFront":5,
                          "-source":
                            { "AudioClip":
                              {
                                "@DEF":"PitchDs4",
                                "@description":"Pitch Dsharp4",
                                "@pitch":1.189,
                                "@url":["tone1.wav","http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter24-Sound/tone1.wav"]
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"C4",
              "@toField":"set_startTime",
              "@toNode":"PitchC4"
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"Cs4",
              "@toField":"set_startTime",
              "@toNode":"PitchCs4"
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"D4",
              "@toField":"set_startTime",
              "@toNode":"PitchD4"
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"Ds4",
              "@toField":"set_startTime",
              "@toNode":"PitchDs4"
            }
          }
        ]
    }
  }
}