Prototyping 19 November 2012: Difference between revisions
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
</source> | </source> | ||
== Headline scrambler == | == Audio cut-up == | ||
* HTML5 media events (timeupdate, durationchange, seeked) | |||
== Part 2: Headline scrambler == | |||
* Example of "walking the tree" | |||
* [[DOM]] (childNodes, nodeType, nodeValue, nodeName?) | * [[DOM]] (childNodes, nodeType, nodeValue, nodeName?) | ||
* Recursive tree / search | * Recursive tree / search | ||
Revision as of 11:51, 19 November 2012
The origin and theory of the cut-up, annotated audio, essay on ubuweb.
Shuffle
Javascript doesn't include a built-in function to shuffle an array, but there are lots of "recipes" to do it.
For instance: http://stackoverflow.com/questions/6274339/how-can-i-shuffle-an-array-in-javascript
var shuffle = function (o) {
for (var j,x,i=o.length; i; j=parseInt(Math.random()*i), x=o[--i], o[i] = o[j], o[j] = x);
return o;
}
Audio cut-up
- HTML5 media events (timeupdate, durationchange, seeked)
Part 2: Headline scrambler
- Example of "walking the tree"
- DOM (childNodes, nodeType, nodeValue, nodeName?)
- Recursive tree / search