0
0

Hi,
Is it possible to apply effects to audio coming out of the interactive music system, either globally or to individual themes/segments?
Very new to this so apologies if this is an obvious question (have trawled the forum but can only find references to global reverb) .

regards

duncan


http://duncanspeakman.net

  • You must to post comments
0
0

[quote="fares":1bzcudn1]Sorry I was unclear. I meant that I want to apply the DSP to the musicsystem but not the Event system. How can I do that?[/quote:1bzcudn1]
Oh, I see. The music system’s output is routed the music category, so you can make a DSP only affect the music by adding it to the music category’s channelgroup. The following code can be pasted into the musicsystem example that comes with the programmer’s API; I’ve included a few lines of context so you can see where to paste it.

[code:1bzcudn1]
ERRCHECK(result = musicsystem->prepareCue(MUSICCUE_EXAMPLES_COUNTRY_ARENA, &country));
ERRCHECK(result = musicsystem->prepareCue(MUSICCUE_EXAMPLES_STEALTH_ARENA, &stealth));
ERRCHECK(result = musicsystem->prepareCue(MUSICCUE_EXAMPLES_RETRO_ROCK_ARENA, &retrorock));

// set up music system effects
FMOD::EventCategory *music_category;
ERRCHECK(result = eventsystem->getCategory("music", &music_category));

FMOD::ChannelGroup *music_channelgroup;
ERRCHECK(result = music_category->getChannelGroup(&music_channelgroup));

FMOD::System *system;
ERRCHECK(result = eventsystem->getSystemObject(&system));

FMOD::DSP *highpass;
ERRCHECK(result = system->createDSPByType(FMOD_DSP_TYPE_HIGHPASS, &highpass));

ERRCHECK(result = music_channelgroup->addDSP(highpass, 0));

// start an event
FMOD::Event *event;
ERRCHECK(result = eventsystem->getEvent("examples/FeatureDemonstration/SequencingAndStitching/LoopLogic",
                                        FMOD_EVENT_DEFAULT, &event));

ERRCHECK(result = event->start());

/*
    Start off with country cue active
*/
result = country->begin();
ERRCHECK(result);

[/code:1bzcudn1]

  • You must to post comments
0
0

Thanks Ben,
Worked great for me.

  • You must to post comments
0
0

[quote="duncanspeakman":1r6p00hq]Hi,
Is it possible to apply effects to audio coming out of the interactive music system, either globally or to individual themes/segments?
Very new to this so apologies if this is an obvious question (have trawled the forum but can only find references to global reverb) .
[/quote:1r6p00hq]

Hi Duncan,

At the Designer level it is not possible to route themes or segments through effects (without baking them in to the actual samples).

At a low programming level however, you should be able to apply dsp effects to the music category or other channels.

cheers,
Templar

P.S. Welcome to the forum!

  • You must to post comments
0
0

[quote="templar":34hpc84e][quote="duncanspeakman":34hpc84e]Is there a way for me to know which channel a theme is playing through from the designer, or can that only be identified by the programmer (i.e. there’s no mention of channel allocation in the designer documentation)
[/quote:34hpc84e]

No it will be the programmer who needs to do it. Tell him to checkout the MusicSystem as well as the DSP stuff in API docs. He should be able to use the FMOD_MUSIC_CALLBACK to identify particular segments, and hopefully go from there.

Edit: I’ve just spoken to Ben, trying to target the individual segment and its subsequent channel could get messy. You might be limited to applying the effects to the music category (and affecting all music).

We are are discussing a new feature to remedy this. I’ll keep you informed.[/quote:34hpc84e]
In the latest development release, it is now possible to determine the channel a segment is playing on by processing FMOD_MUSIC_CALLBACKTYPE_CHANNEL_CREATED and FMOD_MUSIC_CALLBACKTYPE_CHANNEL_DESTROYED. You can use this feature to apply effects to the music system on a per-theme basis.

  • You must to post comments
0
0

thanks for quick reply!
2 follow up questions!
– does that mean a global dsp for the whole music output?
– can the programmer (who isn’t me) use the dsp effects that are usually used by events or do they have to code their own?

cheers

duncan


http://duncanspeakman.net

  • You must to post comments
0
0

[quote="duncanspeakman":yougdpuk]thanks for quick reply!
2 follow up questions!
– does that mean a global dsp for the whole music output?
– can the programmer (who isn’t me) use the dsp effects that are usually used by events or do they have to code their own?
[/quote:yougdpuk]

  1. You could effect the whole music output by adding a dsp effect to the music category. To add an effect to a particular theme/segment you’d have to identify which channel is playing it, then add the effect to it.

  2. No you wouldn’t use events to add effects. The programmer would use the low level effects and apply them in the DSP network. There are a number of examples of how to add DSP effects in the API examples.

cheers,
Templar

  • You must to post comments
0
0

ok that’s great.. thanks.. i’ve asked our programmer to have a look.
So there’s no way to preview dsp effects on music from the designer.
Is there a way for me to know which channel a theme is playing through from the designer, or can that only be identified by the programmer (i.e. there’s no mention of channel allocation in the designer documentation)

duncan


http://duncanspeakman.net

  • You must to post comments
0
0

[quote="duncanspeakman":3pppl99q]ok that’s great.. thanks.. i’ve asked our programmer to have a look.
So there’s no way to preview dsp effects on music from the designer.
[/quote:3pppl99q]

You are correct, you cannot audition it via Designer.

[quote:3pppl99q]
Is there a way for me to know which channel a theme is playing through from the designer, or can that only be identified by the programmer (i.e. there’s no mention of channel allocation in the designer documentation)
[/quote:3pppl99q]

No it will be the programmer who needs to do it. Tell him to checkout the MusicSystem as well as the DSP stuff in API docs. He should be able to use the FMOD_MUSIC_CALLBACK to identify particular segments, and hopefully go from there.

Edit: I’ve just spoken to Ben, trying to target the individual segment and its subsequent channel could get messy. You might be limited to applying the effects to the music category (and affecting all music).

We are are discussing a new feature to remedy this. I’ll keep you informed.

cheers,
Templar

  • You must to post comments
0
0

[quote="duncanspeakman":3kc4ucaj]Is there a way for me to know which channel a theme is playing through from the designer, or can that only be identified by the programmer (i.e. there’s no mention of channel allocation in the designer documentation)[/quote:3kc4ucaj]
Each segment plays on its own channel, so a particular theme will be played on more than one channel.

What exactly do you need to apply effects to? The entire music system? Individual themes? Individual segments? As Templar said, currently it’s only really feasible to apply effects to the whole music system.

  • You must to post comments
0
0

I would like to apply dsps to the whole musicsystem but not effects. what would be the correct syntax to do that?

Thanks,
fares

  • You must to post comments
0
0

[quote="fares":riuch5j9]I would like to apply dsps to the whole musicsystem but not effects. what would be the correct syntax to do that?[/quote:riuch5j9]
Sorry, but I don’t understand your question. DSPs are the same as effects. Could you explain further what you’re trying to do?

  • You must to post comments
0
0

Sorry I was unclear. I meant that I want to apply the DSP to the musicsystem but not the Event system. How can I do that?

Thanks! Fares

  • You must to post comments
Showing 12 results
Your Answer

Please first to submit.