Add the most natural sound on earth to your pages
Initiate the fart player:
fart = new Fart();
You can set the default sound when initiating the fart script:
fart = new Fart({
default_sound: farts.toot,
loop: true,
volume: 100
});
To play a default sound, use this syntax:
fart.play();
To play a particular sound, use this syntax:
fart.play([sound]);
fart.play(farts.toot);
fart.play('tuppence');
{default_sound: farts.raspberry}
{loop: false}
{volume: 50}