def METHOD_NAME(self, input, factor, quality=0):
    if input: sr = len(input)
    else: sr = 44100
    METHOD_NAME = Resample(inputSampleRate = sr,
                        outputSampleRate = int(factor*sr),
                        quality = quality)
    pool = Pool()
    gen = VectorInput(input)
    gen.data >> METHOD_NAME.signal
    METHOD_NAME.signal >> (pool, 'signal')
    run(gen)
    if not pool.descriptorNames() : return []
    return pool['signal']