Acoustic Horn Design – The Easy Way (Ath4)

mabat REW starts the IR at 1 second when exported

This is what it looks like in CSD mode in REW, I had to have the window be 10ms to see much at all, it is super clean
 

Attachments

  • DE500CSD.png
    DE500CSD.png
    547.8 KB · Views: 317
Here is an REW graph set closer to ARTA's presentation, waterfalls are the easiest graphs to manipulate to change the response but the hardest to interpret due to the time frequency resolution trade off. As seen by the two REW graphs of the same IR with different settings.

attachment.php
 

Attachments

  • DE500REW 2.jpg
    DE500REW 2.jpg
    134 KB · Views: 759
@tmuikku

I have attached the code in a .zip file. There are three files; the main sequencer, a functions file and data container file.

If you look at this code form the sequencer there are two arrays called modLength and modN where the values are put into. Two nested for-loops run through the code. The code is not very dynamic as it is. If you want to run through more/other variables, another layer of for-loop must be added.

Code:
snippet from main file...

athRoot = "C:\\ath-4.7"                         #Define root path where ath.exe is located
varWorker = athABEC_simParameters.varOutput()           #Create class for variables
strWorker = athABEC_simParameters.stringOutput()        #Create class for strings
[B]modLength[/B] = ['100','200']
[B]modN[/B] = ['1','2']

start = time.time()

for i in [B]modLength[/B]:
    for j in [B]modN[/B]:
        loopFid = 'C:\\ath-4.7\input\outputTest_L' + i + '_N' + j + '.cfg'         #Define output file
        varWorker.[B]Length[/B] = [i]                                          #Set new parameter
        varWorker.[B]Term_n[/B] = [j]
        functions.generateScriptContent(loopFid,varWorker,strWorker)    #Generate content for file for ABEC
        functions.executeABEC(loopFid,athRoot)                          #Execute generated file with ABEC through ath.exe
    
...
In order to interface with ABEC I use a library that can execute keyboard commands on programs in the foreground, so when the code is running just step back from the computer :D otherwise it might cause unexpected behaviour.

Code:
code snippet from the functions file ...
    time.sleep(5)
    keyboard.press(Key.f5)
    time.sleep(0.1)
    keyboard.release(Key.f5)
    time.sleep(1)
Luckily the keyboard presses are quite benign just a little F5 & F7 and so on.
View attachment 919184
View attachment 919185
Thanks for sharing!
I'll try this when I find some time.



/Anton
 
@tmuikku

I have attached the code in a .zip file. There are three files; the main sequencer, a functions file and data container file.

...

Thanks, will look into it! Started learning python and here is two little helpers in return :D

One collects .png files from a directory to a designated one, so it is easier to look and compare the result files.

The other makes .gif animations out of images found from a directory. Turns your ATH project folder into gazillion GIFs! (hopefully) :D This requires imageio library though.
 

Attachments

  • result_helpers.zip
    2.5 KB · Views: 38
"Protruding" the walls inward really seems to help. Not quite there yet - some form of knuckles will be needed I guess :) The diagonals start to suffer however.
(Still the same 33 mm throat.)

- This horn I would be satisfied with.

Acoustic Horn Design – The Easy Way (Ath4)

Hello this one looks really well. I have checked the config files (M2 clones and this one) in the thread at around page 98-101 but it seems that the paremters have changed with newer version of ath4.7. Cany ou tell us how the config file now would look like?
 
Last edited:
Fluid, could you please post a screenshot of the REW waterfall settings for Arta-like results !
These are what I used, they could probably be tweaked but this will get you close



What do you think? :scratch2:
You rounded the wrong baffle edge :D I like it, but I like the one with the fifteen at the bottom too, seems more balanced to me somehow.
 

Attachments

  • Waterfall settings.png
    Waterfall settings.png
    77.7 KB · Views: 232
Thanks, will look into it! Started learning python and here is two little helpers in return :D

One collects .png files from a directory to a designated one, so it is easier to look and compare the result files.

The other makes .gif animations out of images found from a directory. Turns your ATH project folder into gazillion GIFs! (hopefully) :D This requires imageio library though.

Here is another Python script that makes the .stl models into .png images. Use with the gif_maker from the previous message to visualize waveguide generations easily. Uses Panda3D library to render the model and then takes a screenshot so only for the nerds :D
 

Attachments

  • models_to_images.zip
    4.1 KB · Views: 38
  • random2.gif
    random2.gif
    250.8 KB · Views: 125