modify sound baked fcurves.

the only way of changing sound baked fcurves, that I can find, is to use fcurve modifiers. I can create a modifier, but can’t figure out how to adjust its settings after I create it.

here is the problem code:

bpy.ops.graph.sound_bake(filepath=r'C:\Users\andga\Desktop\Garrett\Music\Cake - Love You Madly.mp3', release = 1)

bpy.ops.graph.fmodifier_add(type='FNGENERATOR')

bpy.context.object.phase_multiplier = 0
bpy.context.object.value_offset = 1
bpy.context.object.use_influence = True
bpy.context.object.influence = 0.8

I know I need to replace “bpy.context.object” with something else, but I have no idea what.