Resistor goes across the output from the piezo element - think of it as converting a current into a voltage.