-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaudio_feedback.launch
31 lines (28 loc) · 1.56 KB
/
audio_feedback.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0"?>
<launch>
<arg name="canvas_size_t" default="5" doc="the size(secs) of canvas for real time visualization of music note detection"/>
<arg name="update_freq" default="5" doc="the frequency(Hz) to update the canvas, higher freq smaller delay"/>
<group ns="audio_node">
<node name="note_audio_capture" pkg="audio_capture" type="audio_capture" output="screen">
<!-- list the devices: arecord -l , and choose the id for [Scarlett 2i2 USB] device -->
<param name="device" value="plughw:4,0" />
<param name="format" value="wave" />
<param name="channels" value="1" />
<param name="depth" value="16" />
<param name="sample_rate" value="44100" />
</node>
<node name="onset_detector" pkg="marimbabot_audio" type="onset_detection.py" output="screen">
<param name="~confidence_threshold" value="0.7"/>
<param name="~amplitude_ref" value="25"/>
</node>
<node name="seq_eval" pkg="marimbabot_audio" type="sequence_evaluation.py" output="screen" />
<node name="onsetviz" pkg="marimbabot_audio" type="onsets_visualization.py" output="screen" >
<param name="~canvas_size_t" value="$(arg canvas_size_t)"/>
<param name="~update_freq" value="$(arg update_freq)"/>
</node>
<node name="evalviz" pkg="marimbabot_audio" type="eval_visualization.py" output="screen" >
<param name="~canvas_size_t" value="$(arg canvas_size_t)"/>
<param name="~update_freq" value="$(arg update_freq)"/>
</node>
</group>
</launch>