Skip to content

Commit

Permalink
add docstring parameter and remove parameter default
Browse files Browse the repository at this point in the history
  • Loading branch information
keithhand committed Feb 19, 2022
1 parent 7a91a03 commit 9094dd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controller_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def OnDirtyMixerTrack(self, index):
def OnUpdateMeters(self): # Intended to be declared by child
raise NotImplementedError()

def adjustMixer(self, knob: int, dataType: str, action: str, selectedTrack: int, sensitivity: int = None):
def adjustMixer(self, knob: int, dataType: str, action: str, selectedTrack: int, sensitivity: int):
""" Dynamically maps the physical knob to the right mixer track depending on the track group the selected track belongs to, and adjusts the parameter.
### Parameters
Expand All @@ -429,6 +429,8 @@ def adjustMixer(self, knob: int, dataType: str, action: str, selectedTrack: int,
- action: Can be INCREASE or DECREASE.
- selectedTrack: The actual selected track that will be used to calculate the track group.
- sensitivity: The speed at which a knob gets turned.
"""
# Calculates which track group the current track belongs to and truncates the value to get the exact number
trackGroup = math.trunc(1/8 * selectedTrack)
Expand Down

0 comments on commit 9094dd1

Please sign in to comment.