# Sound Cue radio stations

**URL:** <https://forums.unrealengine.com/t/sound-cue-radio-stations/438820>\
**Category:** Audio\
**Tags:** cue, unreal-engine, blend, Blueprint, question\
**Created:** [December 4, 2018, 8:57am UTC](https://forums.unrealengine.com/t/sound-cue-radio-stations/438820 "2018-12-04T08:57:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Carey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sam\_Carey](https://forums.unrealengine.com/u/Sam_Carey)\
**Post date:** [December 4, 2018, 8:57am UTC](https://forums.unrealengine.com/t/sound-cue-radio-stations/438820/1 "2018-12-04T08:57:43Z")

</div>

I am trying to create a radio within UE4. I have created a sound cue which blends between station with a parmenter which I set though a blueprint. Between each of these stations I would like white noise. How would make white noise the default sound when no station is selected. I plan to have many stations so I don’t want to manually place the white noise between each clip.

Current Setup

 ![261284-current.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/3/4e363f7b9338c8fa2de760d8d27c6d04968ce777.png)

Desired Outcome

![261285-fade.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/f/6ef6be9cf31e41f5610410b2279a9a95c5f7d639.png)

---

<div class="post-metadata">

**Author:** ![Evigmae](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/evigmae/32/1187349_2.png) [@Evigmae](https://forums.unrealengine.com/u/Evigmae)\
**Post date:** [December 9, 2018, 2:28am UTC](https://forums.unrealengine.com/t/sound-cue-radio-stations/438820/2 "2018-12-09T02:28:00Z")

</div>

Hi! so this is the setup i would use for something like this.

 ![261698-captura.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/0/bc01b49370483b0d9670961f32f66991083b97b3.png)

But it all comes together in blueprints.  
I’m assuming the player would have “knob” to control the radio.

The knob would control a float value, the radio frequency. From which I would derive 2 more values: a float for “station accuracy” and an integer for “selected station”.

Those last 2 are what talk with the Sound Cue. “Station accuracy” handles the crossfade: 0.0 = full white noise, 1.0 = full station. “Selected Station” handles the switch; which chooses which station to play.

To get the station I would just % (modulo) the frequency to 1.0, and then round it, so no matter the value it always returns a valid station ID.

 ![261699-captura.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/d/65dd8fc421a562205bca63894ff47a9c55b80bee.png)

Then for the accuracy, I would % the frequency by 1, subtract 0.5, and map that to a 0.0-1.0 range. Which would be your accuracy. (you could lower the inRangeB to get a bigger tolerance).

 ![261700-captura.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/3/dd3f11ca5eea4243b8c6cdda021b83974c3705e4.png)

And that’s it really. You could display the Frequency back to the player for show.

How it helps you =)
