Can you add effects to sound?

good day everyone.
i hope you all doing ok.
so.
is there a way to apply somthing like reverb to a sound inside NVGT.
say I change location from a forest to a cave, the footsteps will hve reverb in that case.
i do it by using other sound files that i manualy added reverb to, using reaper.
is that the only way to go about it?
i also have a second question.
how to save a file that i changed its pitch using NVGT.
how to save the file with the changed values to disk.
values like pitch, volume and pan.
is it possible to do it?

thanks a lot.

Hi there. It's not possible to save files with different pitch and pan as far as I am aware. Regarding your question with the effects, you may want to take a look at other/effects.nvgt (
effects.nvgt (7.7 KB)
) and fx.txt (
fx.txt (6.7 KB)
). I hope this helps :slightly_smiling_face:.

1 Like

thank you so mutch.
this seems intrissting, but i sadly, could not figurout how to use it.
could you be so kind to give a simple example on how it works?
something along the lines of:

void main()
{
sound cat;
cat.load("cat.wav");
cat.play();
}

easaly, this would simply play the sound, but how to add an effect to it?
what is the missing line here?
you see, i find it easier to lurn with examples.

thanks again for all the help.

Well, the simplest, really simplest way is just to use cat.set_fx("effect");
feel free to use the fx.txt garo sent to check which options you have. I haven't figured out the fx manager myself, and I also heard the one in the repo isn't up to date at the moment.

thank you for the help..
i'm still trying to make it work.
what i'm at so far is this:

#include "effects.nvgt"
void main()
{
sound cat;
cat.load("cat.wav");
cat.set_fx("freeverb");
cat.play_wait();
// i also tried to write it with some values like this
// cat.set_fx("freeverb", 1, 1, 1, 1, 0);
// but it gave me an error, so how to write it with values i wonder?
}

what do i need?
because when i run it, there is no effect to the sound.

thank you so much.

Look at the effect sintax in the fx.txt in the other folder of the repo again, it's basically described there. Also here's a basic example:
cat.set_fx("lowpass:700:0:0.4");

1 Like

thank you. now i see.
so you separate parameters with colons in this case, just like the music manager.

As the example of post 6 states everything in the quotes is seperated by colons.