Skip to content

Commit

Permalink
Add missing example
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jan 11, 2017
1 parent 4732788 commit 4057fbf
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<scene
Renderer="ssr_binaural"
BlockSize="4096"
SampleRate="44100"
HRIRs="impulse_responses/qu_kemar_anechoic/QU_KEMAR_anechoic_3m.sofa">
<source Name="Cello"
Type="point"
Position="1 2 1.75">
<buffer ChannelMapping="1"
Type="fifo"
File="stimuli/anechoic/instruments/anechoic_cello.wav"/>
</source>
<sink Name="Head"
Position="0 0 1.75"
UnitX="1 0 0"
UnitZ="0 0 1"/>
</scene>
17 changes: 17 additions & 0 deletions examples/first_steps/setting_up_an_acoustic_scene/brs_renderer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<scene
Renderer="ssr_brs"
BlockSize="4096"
SampleRate="44100"
LengthOfSimulation="5.0">
<source Type="point"
Name="SoundSource"
IRs="impulse_responses/qu_kemar_rooms/auditorium3/QU_KEMAR_Auditorium3_src2_xs+4.30_ys+3.42.sofa">
<buffer ChannelMapping="1"
Type="noise"/>
</source>
<sink Name="Head"
Position="0 0 0"
UnitX="0 1 0"
UnitZ="0 0 1"/>
</scene>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<scene
Renderer="ssr_binaural"
BlockSize="4096"
SampleRate="44100"
LengthOfSimulation = "3"
HRIRs="impulse_responses/qu_kemar_anechoic/QU_KEMAR_anechoic_3m.sofa">
<source Name="Cello"
Type="point"
Position="1 2 1.75">
<buffer ChannelMapping="1"
Type="fifo"
File="stimuli/anechoic/instruments/anechoic_cello.wav"/>
</source>
<sink Name="Head"
Position="0 0 1.75"
UnitX="1 0 0"
UnitZ="0 0 1"/>
</scene>
31 changes: 31 additions & 0 deletions examples/first_steps/setting_up_an_auditory_model/blackboard.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<blackboardsystem>

<dataConnection Type="AuditoryFrontEndKS"/>

<KS Name="loc" Type="GmmLocationKS"/>
<KS Name="dec" Type="LocalisationDecisionKS">
<Param Type="int">1</Param><!-- enable head rotation -->
</KS>
<KS Name="rot" Type="HeadRotationKS">
<Param Type="ref">robotConnect</Param>
</KS>

<Connection Mode="replaceOld" Event="AgendaEmpty">
<source>scheduler</source>
<sink>dataConnect</sink>
</Connection>
<Connection Mode="replaceOld">
<source>dataConnect</source>
<sink>loc</sink>
</Connection>
<Connection Mode="add">
<source>loc</source>
<sink>dec</sink>
</Connection>
<Connection Mode="add" Event="RotateHead">
<source>dec</source>
<sink>rot</sink>
</Connection>

</blackboardsystem>

0 comments on commit 4057fbf

Please sign in to comment.