def readWav():

    # Read the sound wave from the input.
    sound_wave = wave.open(sys.argv[1], "r")

    # Get parameters of the sound wave.
    nframes = sound_wave.getnframes()
    framerate = sound_wave.getframerate()
    params = sound_wave.getparams()
    duration = nframes / float(framerate)

    print "frame rate: %d " % (framerate,)
    print "nframes: %d" % (nframes,)
    print "duration: %f seconds" % (duration,)
    print scipy.array(sound_wave)

    return (sound_wave, nframes, framerate, duration, params)
Decorate with this so your function receives a branch object
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/first_peaks_method.py/readWav--crossover with--dataset/ETHPy150Open epsy/clize/examples/deco_provide_arg.py/with_branch