Skip to content

Instantly share code, notes, and snippets.

@joemarchese
Created April 4, 2017 16:33
Show Gist options
  • Select an option

  • Save joemarchese/4b49227e5b13082503b7586652da1794 to your computer and use it in GitHub Desktop.

Select an option

Save joemarchese/4b49227e5b13082503b7586652da1794 to your computer and use it in GitHub Desktop.
import random
def groupsolo():
grouporsolo = None
while grouporsolo != "1" or grouporsolo != "2":
print "Are you an indie group or an indie solo act?"
print "1. Indie Group"
print "2. Indie Solo Act"
grouporsolo = raw_input("Type 1 or 2: ")
if grouporsolo == "1":
indie_group()
elif grouporsolo == "2":
solo_act()
else:
pass
def indie_group():
instruments = [
'Ukulele', 'Melodica', 'Auxiliary Floor Tom',
'Gong', 'Glockenspiel', 'Kaossilator'
]
print """
You're an Indie group! Good. Find four to six of your friends.
At least one of them should have gone to Art School.
Choose two instruments for your less musically talented friends to play.
1. Ukulele
2. Melodica
3. Auxiliary Floor Tom
4. Gong
5. Glockenspiel
6. Kaossilator
"""
yourinstruments = []
instrumentone = instruments[int(raw_input("Enter number: ")) - 1]
instrumenttwo = instruments[int(raw_input("Enter another number: ")) - 1]
yourinstruments.append(instrumentone)
yourinstruments.append(instrumenttwo)
print "You have selected %s and %s" % (yourinstruments[0], yourinstruments[1])
print "How many of your band mates sing?"
totalsingers = int(raw_input("Enter a number: "))
if totalsingers < 1:
postrock(yourinstruments)
elif totalsingers == 1:
print "Yay, one singer. Let's move to songwriting. \n"
songwriting(yourinstruments)
else:
print "Yay, gang vocals on everything! Let's move to songwriting. \n"
songwriting(yourinstruments)
def solo_act():
instrument = []
print """
You're a solo act. Great! I doesn't matter whether you play guitar, ukulele,
or piano as long as you play one of them. Who are we kidding. You play guitar.
Let's get to the specifics of your act.
"""
print "Do you have a beard?"
beard = raw_input("type yes or no: ")
if beard.lower() == 'no':
print "Do you have a non-traditional haircut?"
haircut = raw_input("type yes or no: ")
if haircut.lower() == 'no':
print "Do you think this is a joke?"
joke = raw_input("type yes or no: ")
if joke.lower() == 'yes':
print """
You're absolutely right. Congratulations, you've finished the Indie Rock Artist
Simulator. You're a beardless, cool haircut-less guitarist called %s.
Feel free to play at open-mics until you grow a beard, acquire a cool haircut,
or join an indie group. Be sure to follow your passion until you run out of
money, then crowd-fund to continue pursuing your passion at the expense of
others. What the music world needs right now is more acoustic
singer-songwriters. And you're just the person for it.
""" % bandname
quit()
else:
pass
else:
pass
else:
pass
print "Awesome, so you're ready to play. Let's get to songwriting. \n"
songwriting(instrument)
def postrock(yourinstruments):
print """
Yay, you're a post-rock band called %s. Prepare to blow people away
with your mind-numbingly slow harmonic rhythm and disregard for melody. Make
sure you really show off the unique sounds of the %s and %s
by letting them get buried in the mix. Since your music is completely
improvisable we can skip songwriting altogether.
Hooray!
Go out and play a show!
""" % (bandname, yourinstruments[0], yourinstruments[1])
quit()
def songwriting(yourinstruments):
notes = ['A', 'Bb', 'B', 'C', 'Db', 'D', 'Eb', 'E', 'F', 'Gb', 'G', 'Ab']
yourinstruments.append("Guitar")
print "Welcome to songwriting. Let's talk about how we can get the best out of"
print "our: "
for instrument in yourinstruments:
print instrument
print "Search your local internet for a minor chord."
firstchord = ""
while firstchord not in notes:
print "What is the root(use flats only) of your minor chord ? Ex: A, Bb"
firstchord = raw_input("Enter note here: ").title()
print firstchord
print "Okay, our first chord is %s Minor." % firstchord
print "Let's find a Major 7th chord two whole steps down from our first chord."
print "Calculating . . . Press Enter.", raw_input()
secondchord = notes[notes.index(firstchord) - 4]
print "Our second chord is going to be %sMaj7" % secondchord
print """
Good, that's all the harmonic variety we're going to need. Have someone play
%s Minor and %sMaj7 back and forth at a moderate tempo. Finger-picking is
crucial.
""" % (firstchord, secondchord)
if len(yourinstruments) > 1:
print "Try adding some %s and %s." % (yourinstruments[0], yourinstruments[1])
else:
pass
print """
Yeah! That sounds great. Keep doing that. Come up with some non-specific
lyrics about a girl. Sing those in a breathy falsetto. That's a song!
"""
print "What do you want to call your first song?"
songname = str(raw_input("Enter song name: ")).title()
print "%s is a great song name." % songname
end(bandname, yourinstruments, songname)
def end(bandname, yourinstruments, songname):
print """
Congratulations. You have all the basic components of a good Indie Rock Band.
With a great name like %s, great instrumentation including:
""" % bandname
for instrument in yourinstruments:
print instrument
print """
you'll be sure to completely blow your fans away with intelligent songwriting,
beards, vocals of some sort, and a song called: %s
featuring all of two chords. You're done!
Hooray!
Go out and play a show!
""" % songname
quit()
animals = ['bear', 'foxes', 'dog', 'goat', 'deer', 'mouse', 'horses']
print "Welcome to the Indie Rock Artist Simulator. \n Let's get started."
bandname = str(raw_input("What is your band name?"))
print "Okay that's pretty good, but let's add a quadrupedal animal to it."
print "Generating indier band name. . . Press Enter.", raw_input()
animal = random.sample(animals, 1)
bandname = (bandname + " " + animal[0]).title()
print "Your improved band name is: %s" % bandname
groupsolo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment