MV Help with Sazanami.js

Hi everyone! I would like to ask for help with this noise detector plugin made by Sazanami. I tried to read the instructions but didn't quite understand how it works. My apologies of having not experience with JavaScript at all!

Basically, say, if I want to detect a level 5 sound (80db, as the plugin says) and it activate a certain switch (this part can be configurated in the plugin parameter and I understand). How could the detection be done with plugin command?

Also, if I understand correctly, this plugin will only turn on/off one variable - is this correct? Is it possible to make it work with multiple variables according to different sound levels? (say, level 4 - variable 1, level 5, variable 2... etc)

Thank you very much for your help in advance!

Here is the plugin:

Here is the original post of this plugin: https://forums.rpgmakerweb.com/index.php?threads/noisemater-sazanami.67052/

It is a pretty old post and I thought it might be better to start a new thread here? If this is not correct, please let me know!
so far I get it, you need the plugin command: Sazanami start
to start the noise maker, the variable you use, control the decibell.
0 = 30dB and 9 the hardest.

so there is eventing required to make this work.
as for multiple variables, you need to modify the plugin and I dont know
how it works or does work with the latest version and probably
need to be modified to make it work correctly.

it seems interesting plugin, not sure for the purpose yet, maybe for
distance, but there are other ways for it by than.
so far I get it, you need the plugin command: Sazanami start
to start the noise maker, the variable you use, control the decibell.
0 = 30dB and 9 the hardest.

so there is eventing required to make this work.
as for multiple variables, you need to modify the plugin and I dont know
how it works or does work with the latest version and probably
need to be modified to make it work correctly.

it seems interesting plugin, not sure for the purpose yet, maybe for
distance, but there are other ways for it by than.
Thank you so much!
I really appreciated. You are the best!
Are there any chance that you could modify this plugin for multiple variables? I would be willing to pay.
I could stick to the version that can make this plugin work, if necessary.
it seems interesting plugin, not sure for the purpose yet, maybe for
distance, but there are other ways for it by than.
Seems like you'd use it to detect noises from the player's microphone like some older DS games did, e.g. Zelda Spirit Tracks

Also, it seems pretty straightforward to me. In the plugin parameters you tell it the number of frames you want to check, whether you want the value in decibels or levels, and what variable you want it stored in. Then in your event page you would just check the value of that variable.

To run it you just use plugin command Sazanami start and Sazanami stop
so far I check, level 9 = air port
and the levels go lower depending where, I can try to make more variables
for use, but than I need to see if I can get it to work on my end and understand
the code what it exactly does.

so I require time to study before making adjustment, but also need more details
why you need more variables and for what so it can be adjusted to that as well.

but it seems that the plugin is also on the very early stages, and not all details
are set in the helpfile so it's missing content on that side too.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-sazanami-js.166770/