Skip to content

Commit

Permalink
search for specific chords
Browse files Browse the repository at this point in the history
  • Loading branch information
zimolzak committed Dec 23, 2014
1 parent 8cfd412 commit d4b2f16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 51 deletions.
50 changes: 0 additions & 50 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,3 @@
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
bin/
build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Rope
.ropeproject

# Django stuff:
*.log
*.pot

# Sphinx documentation
docs/_build/

11 changes: 10 additions & 1 deletion ukulele.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,18 @@ def print_short(self):

#### main loop

find_these = None
find_these = ['A#maj7', 'A#7', 'D#', 'D', 'Gm7', 'C7', 'F7sus', 'D#maj7', 'Daug'] # comment out if no search

for f in product(range(0,Maxfret+1), repeat=len(Tuning)):
c = Chord(f)
c.print_short()
if find_these == None:
c.print_short() # print all
else:
if c.root != None:
for findme in find_these:
if ''.join([c.root, c.chordtype]) == findme:
c.print_short()

#### tests

Expand Down

0 comments on commit d4b2f16

Please sign in to comment.