# Disable crossfade?

**URL:** https://qa.fmod.com/t/disable-crossfade/19308
**Category:** FMOD Studio
**Created:** [September 23, 2022, 9:00am UTC](https://qa.fmod.com/t/disable-crossfade/19308 "2022-09-23T09:00:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ElvisSB1991](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/elvissb1991/32/4009_2.png) [@ElvisSB1991](https://qa.fmod.com/u/ElvisSB1991)
#### Post date: [September 23, 2022, 9:00am UTC](https://qa.fmod.com/t/disable-crossfade/19308/1 "2022-09-23T09:00:41Z")

</div>

Is there any way to disable auto-crossfade or edit the crossfade of many audio files at once?

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [September 24, 2022, 9:03am UTC](https://qa.fmod.com/t/disable-crossfade/19308/2 "2022-09-24T09:03:10Z")

</div>

> [@ElvisSB1991](#):
>
> Is there any way to disable auto-crossfade

I don’t think so.

> [@ElvisSB1991](#):
>
> edit the crossfade of many audio files at once

Maybe by scripting?

---

<div class="post-metadata">

### Author: ![ululbuluul](https://avatars.discourse-cdn.com/v4/letter/u/59ef9b/32.png) [@ululbuluul](https://qa.fmod.com/u/ululbuluul)
#### Post date: [July 6, 2023, 11:06am UTC](https://qa.fmod.com/t/disable-crossfade/19308/3 "2023-07-06T11:06:45Z")

</div>

Hello, this bugged me as well.  
Here’s a studio api script that removes:  
selected crossfades in event - shortcut F3  
all crossfades in event - shortcut F4

Sorry for copy-pasting it here, I can’t attach a file since I’m a new user. You have to put it in folder called Scripts under your project or under your fmod installation and name the file RemoveFades.js

You can change the shortcuts to your liking, just edit the lines keySequence: “F3” and “F4” to anything you need to.

studio.menu.addMenuItem({ name: “Remove Selection CrossFades”,  
isEnabled: function() { return studio.window.editorSelection().length; },  
keySequence: “F3”,  
execute: function() {  
studio.window.editorSelection().forEach(function(item) {  
item.setFadeInCurve(0,0);  
item.setFadeOutCurve(0,0);  
});  
}  
});  
studio.menu.addMenuItem({ name: “Remove ALL CrossFades”,  
isEnabled: function() { return studio.window.browserSelection().length; },  
keySequence: “F4”,  
execute: function() {  
studio.project.model.SingleSound.findInstances({ searchContext: studio.window.editorCurrent() }).forEach(function(item) {  
item.setFadeInCurve(0,0);  
item.setFadeOutCurve(0,0);  
});  
}  
});

---

<div class="post-metadata">

### Author: ![ElvisSB1991](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/elvissb1991/32/4009_2.png) [@ElvisSB1991](https://qa.fmod.com/u/ElvisSB1991)
#### Post date: [July 6, 2023, 11:52am UTC](https://qa.fmod.com/t/disable-crossfade/19308/4 "2023-07-06T11:52:28Z")

</div>

Ah that’s amazing, thank you so much for providing the script!

---

<div class="post-metadata">

### Author: ![shawngguitar](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@shawngguitar](https://qa.fmod.com/u/shawngguitar)
#### Post date: [December 8, 2023, 6:13am UTC](https://qa.fmod.com/t/disable-crossfade/19308/5 "2023-12-08T06:13:04Z")

</div>

Hey! I tried to use this script on FMOD on macOS Monterey 12.6.8 and couldn’t get it to work. Does anyone have a functioning .js they could pass along to me? I managed to get the script integrated into FMOD with no errors after some tweaking, it just doesn’t do anything at all.
