Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
User Manual
How to begin 2
GUI structure 2
GUI functions 3
Entering input data . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Linear array . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Circular array . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Regular polygon shaped array . . . . . . . . . . . . . . . . . . 4
Custom array . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Current array (modifications) . . . . . . . . . . . . . . . . . . 5
Data from existing file . . . . . . . . . . . . . . . . . . . . . . 5
Source path . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Executing buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Creating XML/ZIP file . . . . . . . . . . . . . . . . . . . . . . . . 7
1
What is “Microphones positioning GUI”?
“Microphones positioning GUI” is a graphic user interface, designed in Mat-
lab, for positioning microphones in a specified type of array and generat-
ing a XML file, (or a ZIP archive including it with associated audio files)
that encodes these positions, with other information about room size and
source path. Files are structured as requested for their upload on the online
database created by PoliMi for the SCENIC project.
How to begin
The Matlab script for opening the interface is Microphones positioning.m;
the following Matlab functions are called by the script:
• circular array.m
• control limits.m
• generate xml.m
• generate zip.m
• linear array.m
• read xml.m
• rpolygon array.m
• rpolygon array2.m
GUI structure
The GUI is divided in three different sections:
• plot area;
2
GUI functions
Entering input data
Room size can be defined in the top of the input parameters area.
The popup menu select action allows choosing among the following func-
tions:
• creating a linear array;
• creating a circular array;
• creating a regular polygon shaped array;
• creating an array with customized microphones positions;
• modifying the current array;
• reading data from an existing XML file or from the ZIP containing it;
• defining source path.
For each possible choice a different input parameter panel is provided.
Linear array
Input parameters:
• Number of microphones.
• Length of the array or spacing between microphones.
• Center coordinates: the z-coordinate represents the (constant) height
of the array with respect to the floor.
• Line inclination in the xy-plane with respect to x-axis.
Circular array
Input parameters:
• Number of microphones.
• Radius of the circle.
• Center coordinates: the z-coordinate represents the (constant) height
of the array with respect to the floor.
• Offset: rotation of the array; if offeset is zero, the first microphone is
positioned in the x-positive direction with respect to the center; offset
value is normalized to the angular distance between microphones.
3
Regular polygon shaped array
Input parameters:
• Offset: rotation of the polygon; if offset is zero the first edge is drawn
parallel to y-axis, in the x-positive direction with respect to the center;
offset value is normalized to the center angle subtended by an edge.
Custom array
Input parameters:
• Positions of microphones.
Panel elements:
4
Current array (modifications)
Panel elements:
Input parameters:
• Path of the XML file to load or of the ZIP archive that contains it.
Panel elements:
• Load buttons.
Source path
Input parameters:
• Source path positions: one if static source, more if moving source has
been choosen.
1
Except if data are loaded from a file, in which case reference microphone is setted as
in XML.
5
Panel elements:
• Buttons for moving path positions in the list: the order determines
their numbering.
• Number of the reference path position, for static and moving source
(default value2 is 0, that indicates no reference path position).
Executing buttons
Microphones and source path positions are stored/modified/cleared only
when an executing button is pushed. Available executing buttons depend
on the current selected action:
• Add data: available when data from file is selected; adds all micro-
phones and path positions loaded from the file and shown in the re-
spective lists. New data are added to the previously stored ones.
• Clear buttons: clear all microphones positions or all source path po-
sitions or both (depending on the selected action).
2
See footnote 1.
6
When an add button is pushed, an “out of limits” control is provided for
advertising the user if there are microphones or path positions which coordi-
nates are outside the room. In this case a choice is possible between adding
the microphones anyway or cancel them.
Graphs
All the currently stored microphones, and eventually all source path posi-
tions, are shown in the graph (if their positions are inside the room!). It is
possible to:
• change from the bidimensional (XY ) to the 3D view and vice versa;
Blue markers represent microphones, red ones represent source path posi-
tion. Reference microphone (or path position) is marked by a bold number
(if numbering is shown).
• the folder in which the XML file must be saved (if XML is being
created);
• the folder in which the ZIP file must be saved (if ZIP is being created);
• the folder in which audio data are stored (not needed for creating
XML);
• XML file name (if the box is empty file will be named “note.xml”);
• ZIP file name (if the box is empty file will be named “zipfile.zip”; not
needed for creating XML)