element Sound
diagram x3d-4.0_diagrams/x3d-4.0_p224.png
type extension of X3DSoundNode
properties
content complex
children IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString Analyser AudioClip AudioDestination BiquadFilter BufferAudioSource ChannelMerger ChannelSelector ChannelSplitter Convolver Delay DynamicsCompressor Gain ListenerPointSource MicrophoneSource MovieTexture OscillatorSource Sound SpatialSound StreamAudioDestination StreamAudioSource WaveShaper ProtoInstance
used by
groups AudioGraphContentModel ChildContentModelImmersive
attributes
Name  Type  Use  Default  Fixed  Annotation
DEF  xs:ID        
appinfo

                    DEF defines a unique ID name for each node, referenceable by other nodes.
               
USE  xs:IDREF        
appinfo

                    USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).
               
class  xs:NMTOKENS        
appinfo

                    The class attribute is a space-separated list of classes, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
id  xs:NMTOKEN        
appinfo

                    The id attribute is a unique identifier, reserved for use by HTML5/DOM pages, independent of DEF labeling and internal X3D node referencing.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
style  SFString        
appinfo

                    The style attribute provides an inline block of CSS for element styling, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
description  SFString        
enabled  SFBool    true    
direction  SFVec3f    0 0 1    
intensity  intensityType    1    
location  SFVec3f    0 0 0    
maxBack  derived by: SFFloat    10    
maxFront  derived by: SFFloat    10    
minBack  derived by: SFFloat    1    
minFront  derived by: SFFloat    1    
priority  intensityType    0    
spatialize  SFBool    true    
containerField  xs:NMTOKEN    children    
annotation
appinfo
<xs:element name="source" type="SFNode" fixed="inputOutputField" default="X3DSoundSourceNode"/>
<xs:attribute name="componentName" type="componentNameChoices" fixed="Sound"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
source <xs:element name="Sound">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:element name="source" type="SFNode" fixed="inputOutputField" default="X3DSoundSourceNode"/>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Sound"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
   
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/sound.html#Sound"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DSoundNode">
       
<xs:group ref="AudioGraphContentModel" minOccurs="0" maxOccurs="unbounded">
         
<xs:annotation>
           
<xs:documentation>children inputs or legacy source (AudioClip, MovieTexture)</xs:documentation>
         
</xs:annotation>
       
</xs:group>
       
<xs:attribute name="direction" type="SFVec3f" default="0 0 1"/>
       
<xs:attribute name="intensity" type="intensityType" default="1"/>
       
<xs:attribute name="location" type="SFVec3f" default="0 0 0"/>
       
<xs:attribute name="maxBack" default="10">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="maxFront" default="10">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="minBack" default="1">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="minFront" default="1">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="priority" type="intensityType" default="0"/>
       
<xs:attribute name="spatialize" type="SFBool" default="true"/>
       
<xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>
     
</xs:extension>
     
<!--<xs:group ref="SoundChildContentModel" minOccurs="0"/>-->
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute Sound/@direction
type SFVec3f
properties
default 0 0 1
facets
Kind Value Annotation
whiteSpace collapse
pattern \s*(([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s+){2}([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="direction" type="SFVec3f" default="0 0 1"/>

attribute Sound/@intensity
type intensityType
properties
default 1
facets
Kind Value Annotation
minInclusive 0
maxInclusive 1
source <xs:attribute name="intensity" type="intensityType" default="1"/>

attribute Sound/@location
type SFVec3f
properties
default 0 0 0
facets
Kind Value Annotation
whiteSpace collapse
pattern \s*(([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s+){2}([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="location" type="SFVec3f" default="0 0 0"/>

attribute Sound/@maxBack
type restriction of SFFloat
properties
default 10
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="maxBack" default="10">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute Sound/@maxFront
type restriction of SFFloat
properties
default 10
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="maxFront" default="10">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute Sound/@minBack
type restriction of SFFloat
properties
default 1
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="minBack" default="1">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute Sound/@minFront
type restriction of SFFloat
properties
default 1
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="minFront" default="1">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute Sound/@priority
type intensityType
properties
default 0
facets
Kind Value Annotation
minInclusive 0
maxInclusive 1
source <xs:attribute name="priority" type="intensityType" default="0"/>

attribute Sound/@spatialize
type SFBool
properties
default true
source <xs:attribute name="spatialize" type="SFBool" default="true"/>

attribute Sound/@containerField
type xs:NMTOKEN
properties
default children
source <xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy