Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created February 10, 2019 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/d337d1a6d4f444a0691dab5508e61507 to your computer and use it in GitHub Desktop.
Save hitherejoe/d337d1a6d4f444a0691dab5508e61507 to your computer and use it in GitHub Desktop.
def nav_to_next_chord(self, channel):
if (self.selectedChordPostion == len(self.chords) - 1):
self.selectedChordPostion = 0
else:
self.selectedChordPostion = self.selectedChordPostion + 1
self.display_chord()
def nav_to_previous_chord(self, channel):
if (self.selectedChordPostion == 0):
self.selectedChordPostion = len(self.chords) - 1
else:
self.selectedChordPostion = self.selectedChordPostion - 1
self.display_chord()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment