Sound() volume

Is there any way to adjust the volume of the sound() function, or even of the iPad in general (with in the program)?

Unfortunately I haven’t documented this, but sound can accept a third parameter between 0.0 - 1.0 specifying the volume. So:

-- The third parameter is volume
sound( SOUND_JUMP, 1234, 0.5 )

Thank you @Simeon . This will really let me be able to help make my program less annoying for those people who don’t like my sounds.