<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
<X3D profile='Full' version='4.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-4.0.xsd '>
<head>
<meta name='titlecontent='SplitChannels.x3d'/>
<meta name='descriptioncontent='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.'/>
<meta name='infocontent='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.'/>
<meta name='creatorcontent='Efi Lakka, Athanasios Malamos, Dick Puk, Don Brutzman'/>
<meta name='createdcontent='28 October 2020'/>
<meta name='modifiedcontent='23 April 2023'/>
<meta name='referencecontent='CHANGELOG.txt'/>
<meta name=' TODO content=' credit for audio files '/>
<meta name='referencecontent=' http://www.medialab.hmu.gr/minipages/x3domAudio '/>
<meta name='identifiercontent=' https://x3dgraphics.com/examples/X3dForAdvancedModeling/AudioSpatialSound/SplitChannels.x3d '/>
<meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='SplitChannels.x3d'/>
<NavigationInfo id='NAVtype='NONE'/>
<Background skyColor='0.200 0.200 0.210'/>
<Viewpoint orientation='1 0 0 -0.5position='0.0 500.0 600.0retainUserOffsets='true'/>
<Transform DEF='PowerRtranslation='100 400 400'>
<Transform id='pRrotation='1 0 0 -0.5translation='0 40 0'>
<Shape>
<Appearance DEF='audio_emit'>
<Material diffuseColor='0 1 0emissiveColor='0.8 0.8 0.8specularColor='0.01 0.01 0.01'/>
</Appearance>
<Box size='10 80 0.01'/>
</Shape>
</Transform>
<Transform rotation='1 0 0 -0.5translation='-2.7 37 0'>
<Shape>
<Appearance DEF='audio_emit2'>
<Material diffuseColor='0 1 0emissiveColor='0.8 0.8 0.8specularColor='0.01 0.01 0.01'/>
<ImageTexture
  url=' "images/line.png" "https://x3dgraphics.com/examples/X3dForAdvancedModeling/AudioSpatialSound/images/line.png" '/>
</Appearance>
<Box size='25 83 0.01'/>
</Shape>
</Transform>
<Transform DEF='volumeRightrotation='1 0 0 -0.5scale='10 10 10translation='0 -10 0'>
<Shape>
<Appearance>
<Material ambientIntensity='0.0933diffuseColor='0.345 0.345 0.882shininess='0.51specularColor='0.46 0.46 0.46'/>
</Appearance>
<Text string='Right Channel Volume'>
<FontStyle DEF='VolumeFontStylefamily='"Times" "SERIF"style='BOLD'/>
</Text>
</Shape>
</Transform>
</Transform>
<Transform DEF='PowerLtranslation='-100 400 400'>
<Transform id='pLrotation='1 0 0 -0.5translation='0 40 0'>
<Shape>
<Appearance DEF='audio_emit3'>
<Material diffuseColor='0 1 0emissiveColor='0.8 0.8 0.8specularColor='0.01 0.01 0.01'/>
</Appearance>
<Box size='10 80 0.01'/>
</Shape>
</Transform>
<Transform rotation='1 0 0 -0.5translation='13.2 37 0'>
<Shape>
<Appearance DEF='audio_emit4'>
<Material diffuseColor='0 1 0emissiveColor='0.8 0.8 0.8specularColor='0.01 0.01 0.01'/>
<ImageTexture
  url=' "images/line.png" "https://x3dgraphics.com/examples/X3dForAdvancedModeling/AudioSpatialSound/images/line.png" '/>
</Appearance>
<Box size='25 83 0.01'/>
</Shape>
</Transform>
<Transform DEF='volumeLeftrotation='1 0 0 -0.5scale='10 10 10translation='0 -10 0'>
<Shape>
<Appearance>
<Material ambientIntensity='0.0933diffuseColor='0.345 0.345 0.882shininess='0.51specularColor='0.46 0.46 0.46'/>
</Appearance>
<Text string='Left Channel Volume'>
<FontStyle USE='VolumeFontStyle'/>
</Text>
</Shape>
</Transform>
</Transform>
<Transform>
<Shape>
<Appearance DEF='floor'>
<Material diffuseColor='0.1 0.1 0.1shininess='0.8specularColor='0.5 0.6 0.7'/>
</Appearance>
<Box size='1500 10 500'/>
</Shape>
</Transform>
<ListenerPointSource id='ListenerPointSourcetrackCurrentView='true'/>
<StreamAudioDestination id='AudioDestinationchannelCountMode='MAXchannelInterpretation='SPEAKERS'>
<Gain id='Gain3channelCountMode='MAXchannelInterpretation='SPEAKERS'>
<ChannelMerger id='ChannelMergerchannelCountMode='MAXchannelInterpretation='SPEAKERS'>
<ChannelSelector id='ChannelSelector0channelCountMode='MAXchannelInterpretation='SPEAKERS'>
<Gain USE='ChannelSplitter'/>
</ChannelSelector>
<ChannelSelector channelSelection='1id='ChannelSelector1channelCountMode='MAXchannelInterpretation='SPEAKERS'>
<Gain USE='ChannelSplitter'/>
</ChannelSelector>
</ChannelMerger>
</Gain>
</StreamAudioDestination>
<ChannelSplitter DEF='ChannelSplitterchannelCountMode='EXPLICITchannelInterpretation='SPEAKERS'>
<AudioClip containerField='childrendescription='Violin'
  url=' "sound/violin.mp3" "https://x3dgraphics.com/examples/X3dForAdvancedModeling/AudioSpatialSound/sound/violin.mp3" '/>
</ChannelSplitter>
<Transform DEF='Audio3rotation='1 0 0 -0.5translation='0 100 0'>
<Shape>
<Appearance DEF='audio_emit5'>
<Material diffuseColor='0.3 1 0.3emissiveColor='0.8 0.8 0.8specularColor='0.01 0.01 0.01'/>
<ImageTexture
  url=' "images/loudspeaker.png" "https://x3dgraphics.com/examples/X3dForAdvancedModeling/AudioSpatialSound/images/loudspeaker.png" '/>
</Appearance>
<Box size='100 100 0.001'/>
</Shape>
</Transform>
</Scene>
</X3D>
<!--

Index for DEF nodes : audio_emit, audio_emit2, audio_emit3, audio_emit4, audio_emit5, Audio3, ChannelSplitter, floor, PowerL, PowerR, VolumeFontStyle, volumeLeft, volumeRight

Index for Viewpoint image : Viewpoint_1
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->

<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints. -->