forked from hundredrabbits/Pilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves hundredrabbits#39 To change effect for a voice: <voice number><effect name><value> If the effect is different than the current one, it's replaced (current one is disconnected and replaced by the new effect)
- Loading branch information
Showing
5 changed files
with
188 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import EffectInterface from './interface.effect.js' | ||
|
||
export default function ChannelEffectInterface (pilot, channelId, id, node) { | ||
EffectInterface.call(this, pilot, id, node) | ||
|
||
this.el.id = `ch${parseInt(channelId).toString(16)}-fx`; | ||
|
||
this.run = function (msg) { | ||
if (!msg || msg.substr(0, 4).toLowerCase() !== `${parseInt(channelId).toString(16)}${id}`) { | ||
return | ||
} | ||
|
||
if (msg.substr(0, 4).toLowerCase() === `${parseInt(channelId).toString(16)}${id}`) { | ||
this.operate(`${msg.substr(1)}`.substr(3)) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters