Hey, I've been using this revised code for a while now and it's pretty much perfect! I've played about with changing the range adjustments, but I'm no longer certain it's really "needed". I was able to adjust to correct for the Jimi Hendrix pack and it's off a440 tuning without touching my tuning pegs and am regularly switching around between Estd/dropD to every tuning I want within rocksmith. No idea if using the switch for the tuning lock actually reduces the computational load, but it seems cleaner sounding to me - and that is ultimately the goal.
Just something I'd like to note;
Phaedrus74 wrote: ... but since the potentiometer (or my powersupply) is a bit noisy I think this will help with the soundquality.
I found with my pedal shield that not pushing the pins that connect the shield to the Duo all the way down, but leaving about 5-6mm of the pins showing, reduces noise from the shield drastically. Maybe I goofed on something somewhere, but that "fix" works for me. As does using a non usb based power supply, I'm using a boss style PSU that I've wired up an adapter to go from center-ve to the center+ve that the arduino needs.
I do also run the output from my shield into a DI box and connect my amp to the pass-through and the rocksmith realtone cable with the ground lift feature activated, on the balanced output side. This setup essentially removes ALL extra noise from my setup, but is needed more because I'm using my amp and rocksmith at the same time, rather than anything to do with the PedalShield.