Rectangular and Spherical microphone array creation

62 views
Skip to first unread message

Sri Chaitanya Durga Prasad Mojjada

unread,
Aug 18, 2022, 4:58:28 AM8/18/22
to Acoular-users
Hi, 

I want to create and array of 100 or 200 microphones (Rectangular or Spherical)
Can somebody help me with this ?

I tried creating xml files but i am unable to design a rectangular array of so many micro phone.

Thanks,
Chaitanya

simon....@gmail.com

unread,
Aug 19, 2022, 3:06:16 AM8/19/22
to Acoular-users
Hi Chaitanya,
there is no need to change the xml files. You can directly add the positions in your code. Just create an empty micgeom object and set the positions. Example for a rectangular array:

from acoular import MicGeom
from numpy import meshgrid , linspace
#micgeom
m = MicGeom ()
#grid positions
xs = linspace(0, 1, 10)
ys = linspace(0, 1, 10)
zs = linspace(1, 1, 100)
xx, yy = meshgrid(xs, ys)
mpos= array ( ( xx.flatten() , yy.flatten() , zs))
#set positions of the micgeom
m.mpos_tot = mpos

Cheers,
Simon

Sri Chaitanya Durga Prasad Mojjada

unread,
Aug 19, 2022, 5:57:35 AM8/19/22
to Acoular-users
Hi Simon,

Thank you so much  for your help.
I need to have a pre-defined xml files of various sizes so that I do not have to define my microphone positions every time I use.
and also having different arrangements of microphones will help me compare my results with different arrangement of microphones.
But for that I am stuck in creating Spherical arrays or different sizes.

Do you have any suggestion over this?

Thanks,
Chaitanya.

Reply all
Reply to author
Forward
0 new messages