audio fading in and out on scroll position

audio fading in and out on scroll position

hi...

i am stuck on something that is sooo near to working as i want it to...

i have a page that plays audio as you scroll from one div to another - the audio fades in / fades out depending on scoll position. it's working fine.
but.... i want each sound to play only once - not looping to the start of the sound as it is at the moment.

i've tried a few things but to no avail - it just keeps looping :-(


i found and am using this script/code via 
https://forum.jquery.com/topic/j

this is the full code:
http://pastebin.com/fizVzW3B

anyone see or tell me how to say to the js to play the sound when the div is reached and then once it plays once - stop the sound - until the next time the div is visited?

it is pretty much exactly what i want - but i don't want the sounds to keep looping while the div is active - just to play once per visit to the div...

i also tried removing the "loop" from:

    1. <audio loop class="set1" id="soundTour3" src="1.mp3"></audio>

so it reads:

    1. <audio class="set1" id="soundTour3" src="1.mp3"></audio>

 this actually makes the mp3/sound play just the once - but... it plays all mp3s on page load and not as the scroll happens - i need each sound to play once as the scroll triggers them

:-/

here's hoping...