{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"pitchrange.x3d"
          },
          {
            "@name":"MovingImage",
            "@content":"pitchrange-movie.mpg"
          },
          {
            "@name":"reference",
            "@content":"http://www.nist.gov/vrml.html"
          },
          {
            "@name":"reference",
            "@content":"http://www.itl.nist.gov/div897/ctg/vrml/vrml.html"
          },
          {
            "@name":"creator",
            "@content":"http://www.itl.nist.gov/div897/ctg/vrml/members.html"
          },
          {
            "@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."
          },
          {
            "@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"
          },
          {
            "@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"
          },
          {
            "@name":"creator",
            "@content":"Michael Kass NIST"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"translated",
            "@content":"21 January 2001"
          },
          {
            "@name":"modified",
            "@content":"28 August 2023"
          },
          {
            "@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."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/pitchrange.x3d"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"01 September 2025"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"pitchrange.x3d"
            }
          },
          { "Viewpoint":
            {
              "@description":"entry viewpoint",
              "@position":[0,0,5]
            }
          },
          { "ProximitySensor":
            {
              "@DEF":"PROX_SENSOR",
              "@size":[1000,1000,1000]
            }
          },
          { "Sound":
            {
              "-source":
                { "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"]
                  }
                }
            }
          },
          { "Sound":
            {
              "-source":
                { "AudioClip":
                  {
                    "@DEF":"MYSOUND2",
                    "@description":"chimes",
                    "@url":["chimes.wav","https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav"]
                  }
                }
            }
          },
          { "Sound":
            {
              "-source":
                { "AudioClip":
                  {
                    "@DEF":"MYSOUND3",
                    "@description":"chimes pitch x2",
                    "@pitch":2,
                    "@url":["chimes.wav","https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/chimes.wav"]
                  }
                }
            }
          },
          { "Transform":
            {
              "@scale":[0.5,0.5,0.5],
              "-children":[
                { "Transform":
                  {
                    "@translation":[0,-2.25,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@DEF":"PHONOCOLOR"
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[3,1.5,3]
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[1,0,0,-2.5],
                    "@translation":[0,-0.25,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@DEF":"HORNCOLOR"
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "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]
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"PITCH_HALF_TRANS",
              "-children":[
                { "Transform":
                  {
                    "@translation":[-3,1.5,-5],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@DEF":"HALFMATERIAL",
                                      "@ambientIntensity":1,
                                      "@diffuseColor":[0,1,0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@DEF":"HALF",
                                "@size":[1,1,0.1]
                              }
                            }
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[-0.35,-0.1,0.2],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@ambientIntensity":1,
                                            "@diffuseColor":[0,0,0]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Pitch","0.5"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@size":0.4
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "TouchSensor":
                  {
                    "@DEF":"TOUCHHALF",
                    "@description":"touch for half-speed pitch"
                  }
                },
                { "TimeSensor":
                  {
                    "@DEF":"HALFTIMER"
                  }
                },
                { "ColorInterpolator":
                  {
                    "@DEF":"HALFFLASH",
                    "@key":[0,0.5,1],
                    "@keyValue":[0,1,0,1,1,1,0,1,0]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"PITCH_DEFAULT_TRANS",
              "-children":[
                { "Transform":
                  {
                    "@translation":[0,1.5,-5],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@DEF":"DEFAULTMATERIAL",
                                      "@ambientIntensity":1,
                                      "@diffuseColor":[1,1,0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@DEF":"DEFAULT",
                                "@size":[1,1,0.1]
                              }
                            }
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[-0.35,-0.1,0.2],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@ambientIntensity":1,
                                            "@diffuseColor":[0,0,0]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Pitch","1"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@size":0.4
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "TouchSensor":
                  {
                    "@DEF":"TOUCHDEFAULT",
                    "@description":"touch for default-speed pitch"
                  }
                },
                { "TimeSensor":
                  {
                    "@DEF":"DEFAULTTIMER"
                  }
                },
                { "ColorInterpolator":
                  {
                    "@DEF":"DEFAULTFLASH",
                    "@key":[0,0.5,1],
                    "@keyValue":[1,1,0,1,1,1,1,1,0]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"TWO_TRANS",
              "-children":[
                { "Transform":
                  {
                    "@translation":[3,1.5,-5],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@DEF":"TWOMATERIAL",
                                      "@ambientIntensity":1,
                                      "@diffuseColor":[1,0,0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@DEF":"TWO",
                                "@size":[1,1,0.1]
                              }
                            }
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[-0.55,-0.1,0.2],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@ambientIntensity":1,
                                            "@diffuseColor":[0,0,0]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Pitch","2"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@size":0.4
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "TouchSensor":
                  {
                    "@DEF":"TOUCHTWO",
                    "@description":"touch for double-speed pitch"
                  }
                },
                { "TimeSensor":
                  {
                    "@DEF":"TWOTIMER"
                  }
                },
                { "ColorInterpolator":
                  {
                    "@DEF":"TWOFLASH",
                    "@key":[0,0.5,1],
                    "@keyValue":[1,0,0,1,1,1,1,0,0]
                  }
                }
              ]
            }
          },
          { "Script":
            {
              "@DEF":"SOUND_SCRIPT",
              "@directOutput":true,
              "@url":["pitchrange.js","https://www.web3d.org/x3d/content/examples/ConformanceNist/Sounds/AudioClip/pitchrange.js"],
              "field": [
                {
                  "@name":"phonoColor",
                  "@accessType":"initializeOnly",
                  "@type":"SFNode",
                  "-children":[
                    { "Material":
                      {
                        "@USE":"PHONOCOLOR"
                      }
                    }
                  ]
                },
                {
                  "@name":"hornColor",
                  "@accessType":"initializeOnly",
                  "@type":"SFNode",
                  "-children":[
                    { "Material":
                      {
                        "@USE":"HORNCOLOR"
                      }
                    }
                  ]
                },
                {
                  "@name":"yellow",
                  "@accessType":"initializeOnly",
                  "@type":"SFColor",
                  "@value":[0.75,0.75,0.00]
                },
                {
                  "@name":"white",
                  "@accessType":"initializeOnly",
                  "@type":"SFColor",
                  "@value":[0.80,0.80,0.80]
                },
                {
                  "@name":"colorPhonograph",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"TOUCHHALF",
              "@toField":"set_startTime",
              "@toNode":"MYSOUND1"
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"TOUCHDEFAULT",
              "@toField":"set_startTime",
              "@toNode":"MYSOUND2"
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"TOUCHTWO",
              "@toField":"set_startTime",
              "@toNode":"MYSOUND3"
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_translation",
              "@toNode":"PITCH_HALF_TRANS"
            }
          },
          { "ROUTE":
            {
              "@fromField":"orientation_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_rotation",
              "@toNode":"PITCH_HALF_TRANS"
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_translation",
              "@toNode":"PITCH_DEFAULT_TRANS"
            }
          },
          { "ROUTE":
            {
              "@fromField":"orientation_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_rotation",
              "@toNode":"PITCH_DEFAULT_TRANS"
            }
          },
          { "ROUTE":
            {
              "@fromField":"position_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_translation",
              "@toNode":"TWO_TRANS"
            }
          },
          { "ROUTE":
            {
              "@fromField":"orientation_changed",
              "@fromNode":"PROX_SENSOR",
              "@toField":"set_rotation",
              "@toNode":"TWO_TRANS"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"MYSOUND1",
              "@toField":"colorPhonograph",
              "@toNode":"SOUND_SCRIPT"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"MYSOUND2",
              "@toField":"colorPhonograph",
              "@toNode":"SOUND_SCRIPT"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"MYSOUND3",
              "@toField":"colorPhonograph",
              "@toNode":"SOUND_SCRIPT"
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"TOUCHHALF",
              "@toField":"set_startTime",
              "@toNode":"HALFTIMER"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"HALFTIMER",
              "@toField":"set_fraction",
              "@toNode":"HALFFLASH"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"HALFFLASH",
              "@toField":"set_diffuseColor",
              "@toNode":"HALFMATERIAL"
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"TOUCHDEFAULT",
              "@toField":"set_startTime",
              "@toNode":"DEFAULTTIMER"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"DEFAULTTIMER",
              "@toField":"set_fraction",
              "@toNode":"DEFAULTFLASH"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"DEFAULTFLASH",
              "@toField":"set_diffuseColor",
              "@toNode":"DEFAULTMATERIAL"
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"TOUCHTWO",
              "@toField":"set_startTime",
              "@toNode":"TWOTIMER"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"TWOTIMER",
              "@toField":"set_fraction",
              "@toNode":"TWOFLASH"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"TWOFLASH",
              "@toField":"set_diffuseColor",
              "@toNode":"TWOMATERIAL"
            }
          }
        ]
    }
  }
}