# Accessing pitch parameter from mixer groups in code / blueprint

**URL:** <https://qa.fmod.com/t/accessing-pitch-parameter-from-mixer-groups-in-code-blueprint/21267>\
**Category:** Unreal Engine\
**Tags:** ue4\
**Created:** [February 20, 2024, 1:49pm UTC](https://qa.fmod.com/t/accessing-pitch-parameter-from-mixer-groups-in-code-blueprint/21267 "2024-02-20T13:49:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![louietaylorcomposer](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@louietaylorcomposer](https://qa.fmod.com/u/louietaylorcomposer)\
**Post date:** [February 20, 2024, 1:49pm UTC](https://qa.fmod.com/t/accessing-pitch-parameter-from-mixer-groups-in-code-blueprint/21267/1 "2024-02-20T13:49:11Z")

</div>

Hi there,

We’re trying to access the pitch settings on the mixer groups so that we can adjust them in blueprint or code (or both preferably). we’re looking to attach the global time dilation effect in UE4 to the pitch of a group in FMOD. I’ve looked at a lot of stuff online and can’t find anything in the documentation about accessing pitch from groups in the API. The only alternative we can think of is having a global parameter across the events we want but that would be a tiresome and manual task, indeed.

Thanks for any help!

Best wishes,  
Louie

---

<div class="post-metadata">

**Author:** ![louietaylorcomposer](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@louietaylorcomposer](https://qa.fmod.com/u/louietaylorcomposer)\
**Post date:** [February 20, 2024, 1:58pm UTC](https://qa.fmod.com/t/accessing-pitch-parameter-from-mixer-groups-in-code-blueprint/21267/2 "2024-02-20T13:58:50Z")

</div>

Hey, our programmer just figured it out. It turns out we needed to try and access ‘master channel group’. Here is the code he used for anyone interested…

```auto
FMOD::Studio::System* StudioSystem = IFMODStudioModule::Get().GetStudioSystem(EFMODSystemContext::Runtime);
if (StudioSystem != nullptr)
{
	FMOD::System* LowLevelSystem = nullptr;
	verifyfmod(StudioSystem->getCoreSystem(&LowLevelSystem));
	FMOD::ChannelGroup* Group;
	LowLevelSystem->getMasterChannelGroup(&Group);

	//Finally settings the pitch, after all checks passed
	Group->setPitch(TimeDilation);
}

```
