• We just launched and are currently in beta. Join us as we build and grow the community.

Audio Sequence 0.1 Beta

Mohammad061

Modder
M Rep
0
0
0
Rep
0
M Vouches
0
0
0
Vouches
0
Posts
121
Likes
95
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
jQuery based script that allows you to control, monitor and play multiple audio files in sequences at a time.

Live Demo

audio_sequence.gif

features:

  • Repeat whole: allows you to repeat a list of audio files as whole for a given number of repeats
  • Repeat each: allows you to repeat each file of list of audio files for a certain number of repeats
  • Repeat forever: allows you to repeat a list of audio files as whole forever !
  • Repeat delay: allows you to add a delay in-between repeats
  • Log: gives music player like interface from the console

Setup:

  1. <

    script src=

    'audio_sequence.js'

    type=

    'text/javascript'

    ></

    script>
  2. <

    script type=

    'text/javascript'

    >
  3. var

    player =

    audio_sequence(

    {
  4. files:

    [

    '1.mp3'

    ,

    '2.mp3'

    ,

    '4.mp3'

    ]

    ,
  5. repeat_forever:

    'true'
  6. }

    )
  7. </

    script>

Options:

  1. this

    .options

    =

    {
  2. files:

    [

    ]

    ,

    // audio files inserted will be stored in
  3. repeats:

    0

    ,

    // number of repeats to obey with some adjustments later
  4. repeat_whole:

    'true'

    ,

    // repeat all files as whole for the number of repeats
  5. repeat_each:

    'false'

    ,

    // repeat each file for the number of repeats [You can not select both !]
  6. repeat_forever:

    'false'

    ,

    // to keep repeating endlessly, only works on repeat whole
  7. repeat_delay:

    0

    ,

    // to add a time delay between each repeat in seconds
  8. reverse_order:

    'false'

    ,

    // to reverse the order list of audio files
  9. shuffle_order:

    'false'

    ,

    // to randomly shuffle the order of the files list
  10. volume:

    options.volume

    ||

    0.5

    ,

    // to set the default volume > 0 && < 1
  11. auto_start:

    'true'

    ,

    // to auto start playing as the module loads
  12. cleanup:

    'true'

    // to clean up after existing
  13. }

Full documentation here

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.

2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Download
You must upgrade your account or reply in the thread to view hidden text.
 

442,401

317,942

317,951

Top