This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,266 additions
and
319 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
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,2 @@ | ||
# custom imports go after this line. : | ||
from pluginSoundFontPlayer import pluginSoundFontPlayer |
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 |
---|---|---|
|
@@ -239,4 +239,3 @@ def getNonPadLightCtrls(): | |
|
||
FLEFFECTS = 'CHAN FX' | ||
NOSUPPTEXT = "UNSUPPORTED" | ||
|
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,38 @@ | ||
import general | ||
from midi import * | ||
import channels | ||
import mixer | ||
from older.OBS_midi import REC_SetChanged | ||
|
||
def getCurrChanIdx(): # backwards compatibility | ||
return channels.selectedChannel() | ||
|
||
def SetNativeParam(offset, value): | ||
return general.processRECEvent(offset, value, REC_SetAll) # REC_SetAll forces the refresh... | ||
|
||
def GetNativeParam(offset): | ||
return general.processRECEvent(offset, 0, REC_GetValue) | ||
|
||
def SetChannelFXParam(offset, value, chanNum = -1): | ||
if(chanNum == -1): | ||
chanNum = channels.selectedChannel() | ||
recEventID = channels.getRecEventId(chanNum) | ||
return general.processRECEvent(recEventID + offset, value, REC_SetAll) # REC_SetAll forces the refresh... | ||
|
||
def GetChannelFXParam(offset, chanNum = -1): | ||
if(chanNum == -1): | ||
chanNum = channels.selectedChannel() | ||
recEventID = channels.getRecEventId(chanNum) | ||
return general.processRECEvent(recEventID + offset, 0, REC_GetValue) | ||
|
||
def SetMixerParam(offset, value, trkNum = -1): | ||
if(trkNum == -1): | ||
trkNum = mixer.trackNumber() | ||
recEventID = channels.getRecEventId(trkNum) | ||
return general.processRECEvent(recEventID + offset, value, REC_SetAll) # REC_SetAll forces the refresh... | ||
|
||
def GetMixerParam(offset, trkNum = -1): | ||
if(trkNum == -1): | ||
trkNum = getCurrChanIdx() | ||
recEventID = channels.getRecEventId(trkNum) | ||
return general.processRECEvent(recEventID + offset, 0, REC_GetValue) |
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,67 @@ | ||
from midi import * | ||
import transport | ||
import ui | ||
import general | ||
from fireNFX_Classes import TnfxMacro | ||
from fireNFX_Colors import * | ||
from fireNFX_DefaultSettings import Settings | ||
from fireNFX_Utils import getShade, shDark, shDim, shLight, shNorm, NavigateFLMenu | ||
|
||
# code for macros | ||
def Undo(): | ||
if(Settings.UNDO_STYLE == 0): | ||
general.undoUp() | ||
else: | ||
general.undo() | ||
|
||
def ZoomSelection(zoomVal = Settings.DBL_TAP_ZOOM): | ||
zStr = 'DDDDDDDD'[0:zoomVal] | ||
print("[{}]".format(zStr)) | ||
NavigateFLMenu(',DRDDDDDR,DD,{}E'.format(zStr) ) | ||
|
||
def Articulate(): | ||
NavigateFLMenu(',R,DR,DDDE') | ||
|
||
def QuickQuantize(): | ||
NavigateFLMenu(',R,DR,DDDDE') | ||
|
||
def ShowScriptOutputWindow(): | ||
ui.showWindow(widChannelRack) # make CR the active window so it pulls up the main menu | ||
NavigateFLMenu(',LLLLDDDDDDDDDDE') # series of keys to pass | ||
|
||
def CloseAll(): | ||
transport.globalTransport(FPT_F12, 1) # close all... | ||
if(Settings.REOPEN_WINDOWS_AFTER_CLOSE_ALL): | ||
ui.showWindow(widBrowser) | ||
ui.showWindow(widChannelRack) | ||
ui.showWindow(widPlaylist) | ||
ui.showWindow(widMixer) | ||
|
||
# BUILT-IN MACROS DEFINED HERE | ||
# | ||
macCloseAll = TnfxMacro("Close All", getShade(cCyan, shDim), CloseAll) # special | ||
macTogChanRack = TnfxMacro("Chan Rack", cCyan) | ||
macTogPlaylist = TnfxMacro("Playlist", cCyan) | ||
macTogMixer = TnfxMacro("Mixer", cCyan) | ||
# | ||
macUndo = TnfxMacro("Undo", getShade(cYellow, shNorm), Undo ) | ||
macCopy = TnfxMacro("Copy", getShade(cBlue, shLight), ui.copy) | ||
macCut = TnfxMacro("Cut", getShade(cMagenta, shNorm), ui.cut ) | ||
macPaste = TnfxMacro("Paste", getShade(cGreen, shLight), ui.paste) | ||
# | ||
macShowScriptWindow = TnfxMacro("Script Window", cWhite, ShowScriptOutputWindow) | ||
macZoom = TnfxMacro("Zoom", cWhite, ZoomSelection) | ||
macZoom = TnfxMacro("Zoom", cWhite, ZoomSelection) | ||
macZoom = TnfxMacro("Zoom", cWhite, ZoomSelection) | ||
|
||
|
||
# master macro list | ||
_MacroList = [macCloseAll, macTogChanRack, macTogPlaylist, macTogMixer, | ||
macUndo, macCopy, macCut, macPaste ] | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
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
Oops, something went wrong.