You can get the generator head from harbor freight then you would need some steel working knowledge but you could weld up some brackets, and pulleys and get the RPM range you need, you could then make the whole unit a "Bolt Up" to your tractor and use a drive-shaft for the PTO to the generator setup you built.
That's a very simplified version but it's doable

There's no reason to idle down or up... figure out the right pulleys and the "Sweet Spot" for that engine for fuel consumption and power required to turn the head and match the pulleys accordingly. That will run fine.
What you won't have is variable output you will essentially be running at "full throttle" on the gen head...
You could of coarse vary the output by varying the RPM of the engine, but you just make sure your pulley can support "full throttle engine (or sweet spot)" = full power.
Basically it depends on the engine and the genhead requirements... Shouldn't be hard to test / exp with!