I have a few questions about the circuit. I plan to build the variant described here:
https://potardesign.com/power-sag-for-guitar-efx/
This is the layout provided by Potar Design:

It uses the LM317 voltage regulator. The datasheet (https://www.alldatasheet.com/datasheet- ... LM317.html) suggests as its standard application this circuit here:

...which is basically the same but has a capacitor Cin before the regulator and a resistor R1 between pins 1 and 2.
As far as I understand the Cin capacitor is not necessary but could be depending on the power supply and certainly wouldn't harm, right?
What exactly does R1 do? I understand that it sets a minimum value for the output voltage Vout, so if I fed 9V into the circuit and use the suggested 240ohm resistor, the maximum voltage Vout with the pot fully clockwise would be 9V, the minimum voltage Vout with the pot fully counter clockwise would be about 4V - which would be ideal for the application with fuzz boxes. Is that correct? And if I'm wrong - what value of a resistor would I need and how should it be connected to have the power sag reduce the voltage to about 4V minimum but not less? I feel it makes sense to set minimum output voltage to 4V to utilize the full range of the poti in this application as the fuzz wouldn't do anything useful below half of its range.