3
$\begingroup$

The database I want to analyze contains hundreds of audio files of 1 minute each and I wanted to process them in PAMGuard as quickly as possible and also to be able to save the result in a single file if possible that can be read in Matlab.

The settings of my sound acquisition module are the following: enter image description here

The module I'm using is the click detector, (the click classification part). enter image description here

I would really appreciate if someone could help me or give me an idea of ​​how to proceed.

Thank you in advance.

$\endgroup$
3
  • 2
    $\begingroup$ Can you be more specific about the difficulty you are facing? Is the challenge with configuring the program, or with getting settings right on a particular module? This is a task that PAMguard is totally capable of, and can save the data as binary files (that can be read into R or Matlab) and/or to a database. $\endgroup$
    – Chloe
    Commented Nov 18, 2022 at 10:05
  • $\begingroup$ Following on @Chloe some helpful info would be: what modules are you using for your processing (click detector, etc?) have you set up the sound aquisition module? $\endgroup$
    – selene
    Commented Nov 18, 2022 at 16:36
  • $\begingroup$ The module I'm using is the click detector. I uploaded a screenshot of my sound acquisition module settings. I'd like to save the resulting data in a structure that can be read in Matlab $\endgroup$
    – Anaa
    Commented Nov 20, 2022 at 21:38

2 Answers 2

3
$\begingroup$

If the issue is just in setting up PAMGuard to do what you need, I think the below should help you. If it is a bug or other issue and you've already done this, then maybe you can share what you have for these settings as well.

STEP 1. To batch process multiple files:

  • Select "Audio file folder or multiple files" as the Data Source Type in the Sound Aquisition settings window. To access that window (which you have shown in your first screenshot, but just for others who might find this helpful) select Settings > Sound Aquisition and then click on "Data Source Type" to access the dropdown menu
  • Then, when you browse for the files, you can either select an entire folder, or select multiple files by holding down ctrl and clicking all the files you want

screenshot showing the options for the Sound Aquisition module, Data Source Type drop down menu

STEP 2.
You also need to set up an output database and binaries folder to save all your results in one place. It saves them as an SQL database, but the tools that @Chloe pointed to in her answer will allow you to read that database into Matlab.

  • Add the Database and Binaries modules:

    • File > Add Modules > Utilities > Database
    • File > Add Modules > Utilities > Binary Storage
  • Set the save locations for the database and binaries:

    • There will now be two additional lines in the File drop down menu
    • Go to Database > Database Selection, click "Browse/Create" and a window will pop up where you can navigate to where you want the database saved and give it a name. If that database does not exist, just type a name in the File Name box and select "Open" and PAMGuard will prompt you to create that database.
    • Go to File > Binary Store Options and then click "Browse" to set the folder where you want all the binary files to be saved. Typically, I have a "databases" folder within my project analysis folder where I save all the database files, then a "binaries" folder where I have a folder for the corresponding binaries for each of the databases that I have in the "databases" folder
$\endgroup$
1
  • $\begingroup$ Thank you very much, now it seems that it works (at least I have the data in those folders). Now I have to open it with Matlab. $\endgroup$
    – Anaa
    Commented Nov 21, 2022 at 21:49
2
$\begingroup$

Not quite enough details to know what the issue specifically is, but go here to download the library for bringing PAMGuard binary files into Matlab: https://github.com/PAMGuard/PAMGuardMatlab. Also, have you played with the Click Detection > Detection Parameters settings so that they'd capture whatever clicks you're interested in?

$\endgroup$
2
  • $\begingroup$ Thank you for the link Chloe, I have downloaded the library. Now I have to figure out how to open the saving results in Matlab. About the detection parameters that you mention... I didn't use them because that module doesn't work for my recordings. I'm using the click classification part, filtering by click length and by frequency range and it works. $\endgroup$
    – Anaa
    Commented Nov 21, 2022 at 21:55
  • $\begingroup$ Hi Anaa, OK glad you've made some progress... though note that the click classification module will only work if the click detection module is also working (because it can't classify things it can't detect). $\endgroup$
    – Chloe
    Commented Nov 24, 2022 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.