blog.humaneguitarist.org

less is more, a SAVS update

[Mon, 12 Mar 2012 00:50:33 +0000]
Just a quick post before I find a movie to stream on Netflix and ride out my Sunday ... So, I've been working a tad on SAVS [http://blog.humaneguitarist.org/tag/savs/], aka the "Simple Audio/Verse Synchronizer". And the changes really have to do with the data model for the timed text and for the backend/technical requirements. It's now all done with HTML, CSS, and JavaScript - as it should be. First, the data model for a line of timed text in what I'm calling "st2" or "SAVS timed text" is now like this: <span class="savs-st2" data-startTime="10" data-stopTime="13">My mistress' eyes are nothing like the sun </span> Before, it was much clunkier: <p onclick="seekTo(10)" id="1"> <span class="savs-text">My mistress' eyes are nothing like the sun</span> <span class="savs-time">10</span> </p> That's to say, now - using the HTML5 "data-" attribute - the demands for the HTML markup are far fewer given that the JavsScript file "savs.js" takes care of more. Before, with the older mark up model, there was no support for a stop time value and one also had to take the responsibility for adding several attributes related to calling JavaScript functions and for creating "id" attributes for both the corresponding

COMMENTS

  1. nitin [2013-07-10 13:58:56]

    Hello, Yes, feel free to use it for personal and commercial projects. If you use it for something, I'd love to see the project when it's done. The reason I ask people to contact me first is mainly so you know that it's really a demo, isn't actively maintained, and with Chrome - while it works - the Chrome mouse cursor keeps blinking. This could be a Chrome bug, but's it's something to know about. Thanks, Nitin

  2. verdefeliz [2013-07-10 08:16:57]

    Hi, I just bumped into your solution and it looks great. Your savs.js file states it is MIT license, but prompts to contact you before using the code. Can it be used freely for both personal and commercial projects? I'm working on one that requires showing a transcript of the audio at all times. Thank you.