{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Full",
    "@version":"4.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-4.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"SplitChannels.x3d"
          },
          {
            "@name":"description",
            "@content":"This X3D scene includes a simple sound source which can be moved right and left. Depending on the position of the sound source, the user can hear the produced sound from the corresponding output speaker. Accordingly, there is a source that can be passed through a SpatialSound for the spatialization of the input audio. The approach is based on the relative position of the source and the listener, in comparison to the panner."
          },
          {
            "@name":"info",
            "@content":"This work presents an innovative solution of the spatial sound in X3DOM framework, that based on a combinational methodology. Specifically, we suggested the enrichment of X3DOM with spatial sound features, using both the X3D sound nodes and the structure of Web Audio API."
          },
          {
            "@name":"creator",
            "@content":"Efi Lakka, Athanasios Malamos, Dick Puk, Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"28 October 2020"
          },
          {
            "@name":"modified",
            "@content":"22 August 2025"
          },
          {
            "@name":"reference",
            "@content":"CHANGELOG.txt"
          },
          {
            "@name":"TODO",
            "@content":"credit for audio files"
          },
          {
            "@name":"reference",
            "@content":"http://www.medialab.hmu.gr/minipages/x3domAudio"
          },
          {
            "@name":"reference",
            "@content":"https://medialab.hmu.gr/minipages/x3domAudio/splitChannels.xhtml"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/SplitChannels.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"16 April 2026"
          },
          {
            "@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":"SplitChannels.x3d"
            }
          },
          { "NavigationInfo":
            {
              "@type":["NONE"]
            }
          },
          { "Background":
            {
              "@skyColor":[0.200,0.200,0.210]
            }
          },
          { "Viewpoint":
            {
              "@orientation":[1,0,0,-0.5],
              "@position":[0.0,500.0,600.0],
              "@retainUserOffsets":true
            }
          },
          { "Transform":
            {
              "@DEF":"PowerR",
              "@translation":[100,400,400],
              "-children":[
                { "Transform":
                  {
                    "@rotation":[1,0,0,-0.5],
                    "@translation":[0,40,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"audio_emit",
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0,1,0],
                                      "@emissiveColor":[0.8,0.8,0.8],
                                      "@specularColor":[0.01,0.01,0.01]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[10,80,0.01]
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[1,0,0,-0.5],
                    "@translation":[-2.7,37,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"audio_emit2",
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0,1,0],
                                      "@emissiveColor":[0.8,0.8,0.8],
                                      "@specularColor":[0.01,0.01,0.01]
                                    }
                                  },
                                "-texture":
                                  { "ImageTexture":
                                    {
                                      "@url":["images/line.png","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/images/line.png"]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[25,83,0.01]
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@DEF":"volumeRight",
                    "@rotation":[1,0,0,-0.5],
                    "@scale":[10,10,10],
                    "@translation":[0,-10,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@ambientIntensity":0.0933,
                                      "@diffuseColor":[0.345,0.345,0.882],
                                      "@shininess":0.51,
                                      "@specularColor":[0.46,0.46,0.46]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Right Channel Volume"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@DEF":"VolumeFontStyle",
                                      "@family":["Times","SERIF"],
                                      "@style":"BOLD"
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"PowerL",
              "@translation":[-100,400,400],
              "-children":[
                { "Transform":
                  {
                    "@rotation":[1,0,0,-0.5],
                    "@translation":[0,40,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"audio_emit3",
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0,1,0],
                                      "@emissiveColor":[0.8,0.8,0.8],
                                      "@specularColor":[0.01,0.01,0.01]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[10,80,0.01]
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[1,0,0,-0.5],
                    "@translation":[13.2,37,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"audio_emit4",
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0,1,0],
                                      "@emissiveColor":[0.8,0.8,0.8],
                                      "@specularColor":[0.01,0.01,0.01]
                                    }
                                  },
                                "-texture":
                                  { "ImageTexture":
                                    {
                                      "@url":["images/line.png","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/images/line.png"]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Box":
                              {
                                "@size":[25,83,0.01]
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@DEF":"volumeLeft",
                    "@rotation":[1,0,0,-0.5],
                    "@scale":[10,10,10],
                    "@translation":[0,-10,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@ambientIntensity":0.0933,
                                      "@diffuseColor":[0.345,0.345,0.882],
                                      "@shininess":0.51,
                                      "@specularColor":[0.46,0.46,0.46]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Left Channel Volume"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@USE":"VolumeFontStyle"
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "@DEF":"floor",
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.1,0.1,0.1],
                                "@shininess":0.8,
                                "@specularColor":[0.5,0.6,0.7]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "Box":
                        {
                          "@size":[1500,10,500]
                        }
                      }
                  }
                }
              ]
            }
          },
          { "ListenerPointSource":
            {
              "@trackCurrentView":true
            }
          },
          { "StreamAudioDestination":
            {
              "-children":[
                { "Gain":
                  {
                    "-children":[
                      { "ChannelMerger":
                        {
                          "-children":[
                            { "ChannelSelector":
                              {
                                "-children":[
                                  { "Gain":
                                    {
                                      "@USE":"ChannelSplitter"
                                    }
                                  }
                                ]
                              }
                            },
                            { "ChannelSelector":
                              {
                                "@channelSelection":1,
                                "-children":[
                                  { "Gain":
                                    {
                                      "@USE":"ChannelSplitter"
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "ChannelSplitter":
            {
              "@DEF":"ChannelSplitter",
              "@channelCountMode":"EXPLICIT",
              "-children":[
                { "AudioClip":
                  {
                    "@description":"Violin",
                    "@enabled":false,
                    "@url":["sound/violin.ogg","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/sound/violin.ogg","sound/violin.mp3","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/sound/violin.mp3","sound/violin.wav","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/sound/violin.wav"]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@DEF":"Audio3",
              "@rotation":[1,0,0,-0.5],
              "@translation":[0,100,0],
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "@DEF":"audio_emit5",
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.3,1,0.3],
                                "@emissiveColor":[0.8,0.8,0.8],
                                "@specularColor":[0.01,0.01,0.01]
                              }
                            },
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["images/loudspeaker.png","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/images/loudspeaker.png"]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "Box":
                        {
                          "@size":[100,100,0.001]
                        }
                      }
                  }
                }
              ]
            }
          }
        ]
    }
  }
}