0
0

Hi everyone,

I was looking for an Audio API, and I found Fmod which seems to satisfy most of the requirements for what I need to do.

I still have some questions though.
I would like to be able to generate a sound and to set different parameters dynamically. I’ve seen that I can generate different wave signals (sine, triangle, …).
Is it possible to play different instrument sounds, and choose the beat?

  • You must to post comments
0
0

Hi,

If you mean "generate some midi music" then it’s not possible with fmod, you can only playback midi files.

But if you mean playback different sound files then yes, but everything won’t be automatic. You can download fmod and take a look at the documentation.

BTW, take a look at guitar pro for example: it generates music with fmod (for everything except midi).

  • You must to post comments
0
0

Thanks for your answer…

I’ll tell what I would like to do, I think it’ll be easier :)
I would like to map sound to the movement of the mouse for example, so let’s say for example, that a horizontal movement changes the pan, and a vertical movement changes the frequency.
But I would also like to change some other parameters.
Let’s say for example that without clicking the mouse, it sounds like a piano, and by clicking or selecting an item, is sounds like a trumpet (or whatever).
Etc.

I don’t know yet which parameters I will use, it will depend on the most significant ones to the human ear.
That’s why I’m looking for an API with which I will be able to change a maximum number of parameters of the sound.

Thanks

  • You must to post comments
0
0

Hi, have you looked at the event system? You can use that in conjunction with FMOD Designer to create sound events with parameters to control various settings, e.g. you could have a parameter controlling pitch, another controlling pan, another switching between samples, etc. (I’m assuming you want to use recorded samples of your instruments here).

Changing the beat is another story, but you could possibly use the spawn intensity effect to achieve your desired result.

Ben

  • You must to post comments
0
0

Thanks

Ok, so correct me if I’m wrong:
I can create an event in Fmod designer, where the sound changes with some defined parameter, like in the car example with RPM.
Then I can import this event in my code and change the parameters from within the code.

But this means that I have to use recorded samples, or simple generated sound like sines or triangles.

So it’s not possible to tell Fmod something like: "play this note, at this moment with this instrument sound"?
If I’m not wrong is what you can do it with MIDI. Would it be possible to link the two then?

  • You must to post comments
0
0

[quote="loub":27sr0pv6]Ok, so correct me if I’m wrong:
I can create an event in Fmod designer, where the sound changes with some defined parameter, like in the car example with RPM.
Then I can import this event in my code and change the parameters from within the code.
[/quote:27sr0pv6]

Yes, that’s correct.

[quote="loub":27sr0pv6]
But this means that I have to use recorded samples, or simple generated sound like sines or triangles.[/quote:27sr0pv6]

Yes, in general. It may be possible for your code to provide more complex generated sounds, but FMOD doesn’t provide predefined instruments or anything like that.

[quote="loub":27sr0pv6]
So it’s not possible to tell Fmod something like: "play this note, at this moment with this instrument sound"?[/quote:27sr0pv6]

No, it’s not possible with basic FMOD. You could perhaps use Designer to make instrument sound events from samples.

[quote="loub":27sr0pv6]
If I’m not wrong is what you can do it with MIDI. Would it be possible to link the two then?[/quote:27sr0pv6]

It may be possible, depending on how your MIDI library works. I have not heard of that being done before.

Ben

  • You must to post comments
0
0

Ok, thanks a lot for all your answers…

I think I’ll start using it, and things will become clearer :)

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.