1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <xsl:stylesheet version="1.0"
|
---|
3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
4 | xmlns:java="http://xml.apache.org/xslt/java"
|
---|
5 | xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
|
---|
6 | xmlns:gslib="http://www.greenstone.org/skinning"
|
---|
7 | xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
|
---|
8 | xmlns:xlink="http://www.w3.org/1999/xlink"
|
---|
9 | extension-element-prefixes="java util"
|
---|
10 | exclude-result-prefixes="java util gsf">
|
---|
11 |
|
---|
12 |
|
---|
13 | <!-- *** -->
|
---|
14 | <!-- Document header -->
|
---|
15 | <!-- *** -->
|
---|
16 |
|
---|
17 | <xsl:template name="soundmanager2-header">
|
---|
18 |
|
---|
19 | <!-- soundManager2 API -->
|
---|
20 | <gsf:style src="ext/sound-manager2/css/flashblock.css" />
|
---|
21 | <gsf:script src="ext/sound-manager2/script/soundmanager2-nodebug.js"/>
|
---|
22 |
|
---|
23 | <!-- The Page player (variant of SoundManger) main script -->
|
---|
24 | <gsf:script src="ext/sound-manager2/script/page-player.js"/>
|
---|
25 | <gsf:style src="ext/sound-manager2/css/page-player.css" />
|
---|
26 |
|
---|
27 | <!-- optional: annotations/sub-tracks/notes, and alternate themes -->
|
---|
28 | <gsf:style src="ext/sound-manager2/css/optional-annotations.css" />
|
---|
29 | <gsf:style src="ext/sound-manager2/css/optional-themes.css" />
|
---|
30 |
|
---|
31 | <!-- optional: Metadata UI prototype (not needed unless you want the bottom-most demo bits) -->
|
---|
32 | <gsf:script src="ext/sound-manager2/script/optional-page-player-metadata.js"/>
|
---|
33 |
|
---|
34 | <gsf:style>
|
---|
35 | ul.playlist li .comment {font-size:0.65em;opacity:0.5}
|
---|
36 | </gsf:style>
|
---|
37 |
|
---|
38 | <!-- Customization of page-player for this collection -->
|
---|
39 |
|
---|
40 | <gsf:script>
|
---|
41 |
|
---|
42 | soundManager.flashVersion = 9;
|
---|
43 | soundManager.preferFlash = true; /* for visualization effects */
|
---|
44 | soundManager.useHighPerformance = true; /* keep flash on screen, boost performance */
|
---|
45 | soundManager.wmode = "transparent"; /* transparent SWF, if possible */
|
---|
46 | soundManager.useFastPolling = true; /* increased JS callback frequency */
|
---|
47 | soundManager.url = "ext/sound-manager2/swf/";
|
---|
48 |
|
---|
49 | /* custom page player configuration */
|
---|
50 |
|
---|
51 | var PP_CONFIG = {
|
---|
52 | autoStart: false, /* begin playing first sound when page loads */
|
---|
53 | playNext: false, /* stop after one sound, or play through list until end */
|
---|
54 | useThrottling: false, /* try to rate-limit potentially-expensive calls (eg. dragging position around) */
|
---|
55 | usePeakData: true, /* [Flash 9 only] whether or not to show peak data (left/right channel values) - nor noticable on CPU */
|
---|
56 | useWaveformData: false, /* [Flash 9 only] show raw waveform data - WARNING: LIKELY VERY CPU-HEAVY */
|
---|
57 | useEQData: false, /* [Flash 9 only] show EQ (frequency spectrum) data */
|
---|
58 | useFavIcon: false, /* try to apply peakData to address bar (Firefox + Opera) - performance note: appears to make Firefox 3 do some temporary, heavy disk access/swapping/garbage collection at first(?) - may be too heavy on CPU */
|
---|
59 | useMovieStar: true /* Flash 9.0r115+ only: Support for a subset of MPEG4 formats. */
|
---|
60 | }
|
---|
61 | </gsf:script>
|
---|
62 | </xsl:template>
|
---|
63 |
|
---|
64 |
|
---|
65 | <!-- CAA = Content Analysis Algorithm -->
|
---|
66 | <xsl:variable name="cgiargCAAlgorithm">
|
---|
67 | <xsl:choose>
|
---|
68 | <xsl:when test="/page/pageRequest/paramList/param[@name='p.caAlgorithm']/@value != ''"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.caAlgorithm']/@value"/></xsl:when>
|
---|
69 | <xsl:otherwise>1</xsl:otherwise>
|
---|
70 | </xsl:choose>
|
---|
71 | </xsl:variable>
|
---|
72 |
|
---|
73 | <!-- *** -->
|
---|
74 | <!-- The Javascript DSP files for computing chroma features in the browser -->
|
---|
75 | <!-- *** -->
|
---|
76 |
|
---|
77 | <xsl:template name="javascript-dsp-header">
|
---|
78 |
|
---|
79 | <gsf:script src="ext/js-dsp/dsp-custom.js"/>
|
---|
80 | <gsf:script src="ext/js-dsp/dsp.js"/>
|
---|
81 | <gsf:script src="ext/js-dsp/chroma-transform.js"/>
|
---|
82 | <gsf:script src="ext/js-dsp/frequency-plotter.js"/>
|
---|
83 | <gsf:script src="ext/js-dsp/frequency-player.js"/>
|
---|
84 |
|
---|
85 |
|
---|
86 | <gsf:script src="ext/js-dsp/component/crockford-inheritance.js"/>
|
---|
87 | <gsf:script src="ext/js-dsp/component/workflow-core.js"/>
|
---|
88 | <gsf:script src="ext/js-dsp/component/audio-mixer.js"/>
|
---|
89 | <gsf:script src="ext/js-dsp/component/wf-freq-spectrum.js"/>
|
---|
90 | <gsf:script src="ext/js-dsp/component/wf-filter-bank.js"/>
|
---|
91 | <gsf:script src="ext/js-dsp/component/wf-chroma-transform.js"/>
|
---|
92 | <gsf:script src="ext/js-dsp/component/active-workflow.js"/>
|
---|
93 |
|
---|
94 | </xsl:template>
|
---|
95 |
|
---|
96 | <xsl:template name="processingPopup">
|
---|
97 | <div>
|
---|
98 | <style type="text/css">
|
---|
99 | #processing {
|
---|
100 | width: 100%;
|
---|
101 | height: 100%;
|
---|
102 | position: absolute;
|
---|
103 | z-index: 10000;
|
---|
104 | left: 0px;
|
---|
105 | top: 0px;
|
---|
106 | background-color: rgba(255,255,255,0.75);
|
---|
107 | opacity: 1;
|
---|
108 | display: none;
|
---|
109 | }
|
---|
110 |
|
---|
111 | #processingMessage {
|
---|
112 | position: absolute;
|
---|
113 | padding: 10px;
|
---|
114 | border-radius: 10px;
|
---|
115 | margin-left: 50%;
|
---|
116 | width: 380px;
|
---|
117 | height: 105px;
|
---|
118 | left: -250px; top: 200px;
|
---|
119 | background-color: rgba(255,255,255,1);
|
---|
120 | box-shadow: 0px 0px 30px rgba(0,0,0,0.8);
|
---|
121 | }
|
---|
122 |
|
---|
123 | #processingMessage p {
|
---|
124 | font-size: 18px;
|
---|
125 | text-align: center;
|
---|
126 | font-family:
|
---|
127 | sans-serif;
|
---|
128 | font-weight: bold;
|
---|
129 | color: #666;
|
---|
130 | }
|
---|
131 | </style>
|
---|
132 |
|
---|
133 | <div id="processing">
|
---|
134 | <div id="processingMessage">
|
---|
135 | <h2 id="processingTitle" class="ui-state-default ui-corner-all" style="padding: 8px; font-size: 110%; width: auto;">
|
---|
136 | Heading
|
---|
137 | </h2>
|
---|
138 | <p id="processingText">text</p>
|
---|
139 | </div>
|
---|
140 | </div>
|
---|
141 | </div>
|
---|
142 |
|
---|
143 | </xsl:template>
|
---|
144 |
|
---|
145 | <!-- *** -->
|
---|
146 | <!-- * Discovery -->
|
---|
147 | <!-- *** -->
|
---|
148 |
|
---|
149 | <xsl:template name="discovery-block">
|
---|
150 |
|
---|
151 | <div id="fingerprint-turnstyle">
|
---|
152 |
|
---|
153 | <div style="background-image: none; background-color: #2E52A4;">
|
---|
154 | Discovery: <xsl:call-template name="choose-title"/>
|
---|
155 | </div>
|
---|
156 |
|
---|
157 | <div class="documenttext" style="display: none;">
|
---|
158 | <xsl:call-template name="fingerprintMetadataBlock" />
|
---|
159 | </div>
|
---|
160 |
|
---|
161 | </div>
|
---|
162 |
|
---|
163 | <script>
|
---|
164 | <xsl:text disable-output-escaping="yes">
|
---|
165 | $(function(){
|
---|
166 | transformToTurnstyleBlock("fingerprint");
|
---|
167 | });
|
---|
168 | </xsl:text>
|
---|
169 | </script>
|
---|
170 |
|
---|
171 | </xsl:template>
|
---|
172 |
|
---|
173 |
|
---|
174 |
|
---|
175 | <xsl:template name="fingerprintMetadataBlock">
|
---|
176 |
|
---|
177 | <xsl:variable name="httpCollection"><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/></xsl:variable>
|
---|
178 | <xsl:variable name="assocFilePath"><gsf:metadata name="assocfilepath" select="root"/></xsl:variable>
|
---|
179 |
|
---|
180 |
|
---|
181 | <xsl:variable name="musicbrainzsongid">
|
---|
182 | <gsf:metadata name="dc.Identifier.musicbrainzsongid"/>
|
---|
183 | </xsl:variable>
|
---|
184 |
|
---|
185 | <xsl:variable name="musicbrainzalbumid">
|
---|
186 | <gsf:metadata name="dc.Source.musicbrainzalbumid"/>
|
---|
187 | </xsl:variable>
|
---|
188 |
|
---|
189 | <xsl:variable name="musicbrainzartistid">
|
---|
190 | <gsf:metadata name="dc.Creator.musicbrainzartistid"/>
|
---|
191 | </xsl:variable>
|
---|
192 |
|
---|
193 | <xsl:variable name="lastfmtrackurl">
|
---|
194 | <gsf:metadata name="dc.Identifier.lastfmtrackurl"/>
|
---|
195 | </xsl:variable>
|
---|
196 |
|
---|
197 | <xsl:variable name="echonestsongid">
|
---|
198 | <gsf:metadata name="dc.Identifier.echonestsongid"/>
|
---|
199 | </xsl:variable>
|
---|
200 |
|
---|
201 | <table class="metadata-stripes">
|
---|
202 | <tbody>
|
---|
203 | <tr>
|
---|
204 | <td>
|
---|
205 | Title
|
---|
206 | </td>
|
---|
207 | <td>
|
---|
208 | <gsf:metadata name="dc.Title"/>
|
---|
209 | </td>
|
---|
210 | </tr>
|
---|
211 |
|
---|
212 | <tr>
|
---|
213 | <td>Album Title</td>
|
---|
214 | <td><gsf:metadata name="dc.Title.albumtitle"/></td>
|
---|
215 | </tr>
|
---|
216 |
|
---|
217 | <tr>
|
---|
218 | <td>Artist</td>
|
---|
219 | <td><gsf:metadata name="dc.Creator"/></td>
|
---|
220 | </tr>
|
---|
221 |
|
---|
222 | <tr valign="top">
|
---|
223 | <td>Artist Summary</td>
|
---|
224 | <td>
|
---|
225 | <i>
|
---|
226 | <gsf:script>
|
---|
227 | var summary = gs.documentMetadata["LastFM_LastFMArtistWikiSummary"];
|
---|
228 |
|
---|
229 | if (summary) {
|
---|
230 | document.write(summary.replace("\n","<br />"));
|
---|
231 | }
|
---|
232 |
|
---|
233 | </gsf:script>
|
---|
234 | </i>
|
---|
235 | </td>
|
---|
236 | </tr>
|
---|
237 |
|
---|
238 | <!--
|
---|
239 | dc.Identifier.echonestsongid
|
---|
240 | dc.Identifier.echonestartistid
|
---|
241 |
|
---|
242 | dc.Identifier.lastfmtrackurl
|
---|
243 | dc.Identifier.lastfmalbumurl
|
---|
244 | dc.Identifier.lastfmartisturl
|
---|
245 |
|
---|
246 | //dc.Identifier
|
---|
247 | dc.Identifier.musicbrainzalbumid
|
---|
248 | dc.Identifier.musicbrainzartistid
|
---|
249 | dc.Identifier.musicbrainzsongid
|
---|
250 | dc.Identifier.playmeartistid
|
---|
251 |
|
---|
252 | -->
|
---|
253 |
|
---|
254 | <tr>
|
---|
255 | <td colspan="2">
|
---|
256 |
|
---|
257 | <xsl:for-each select="/page/pageResponse/document/metadataList/metadata[@name = 'dc.Relation.artistrelatedimage']">
|
---|
258 | <xsl:if test="position() <= 6">
|
---|
259 | <a target="_blank">
|
---|
260 | <xsl:attribute name='href'>
|
---|
261 | <xsl:value-of disable-output-escaping="yes" select="."/>
|
---|
262 | </xsl:attribute>
|
---|
263 |
|
---|
264 | <img width="150">
|
---|
265 | <xsl:attribute name='src'>
|
---|
266 | <xsl:value-of disable-output-escaping="yes" select="."/>
|
---|
267 | </xsl:attribute>
|
---|
268 | </img>
|
---|
269 | </a>
|
---|
270 | </xsl:if>
|
---|
271 | </xsl:for-each>
|
---|
272 | </td>
|
---|
273 | </tr>
|
---|
274 |
|
---|
275 | <tr>
|
---|
276 | <td>Linked Data</td>
|
---|
277 | <td>
|
---|
278 | <!--
|
---|
279 | <gsf:metadata name="dc.Identifier"/><br />
|
---|
280 | -->
|
---|
281 |
|
---|
282 | <table style="width: 100%;">
|
---|
283 | <tr>
|
---|
284 | <td style="width: 200px;">
|
---|
285 | MusicBrainz song id:
|
---|
286 | </td>
|
---|
287 | <td>
|
---|
288 | <a href="http://dbtune.org/musicbrainz/resource/track/{$musicbrainzsongid}" target="#musicbrainz" class="external">
|
---|
289 | <xsl:copy-of select="$musicbrainzsongid"/>
|
---|
290 | </a>
|
---|
291 | </td>
|
---|
292 | </tr>
|
---|
293 |
|
---|
294 | <tr>
|
---|
295 | <td>
|
---|
296 | MusicBrainz album id:
|
---|
297 | </td>
|
---|
298 | <td>
|
---|
299 | <a href="http://dbtune.org/musicbrainz/resource/record/{$musicbrainzalbumid}" target="#musicbrainz" class="external">
|
---|
300 | <xsl:copy-of select="$musicbrainzalbumid"/>
|
---|
301 | </a>
|
---|
302 | </td>
|
---|
303 | </tr>
|
---|
304 |
|
---|
305 | <tr>
|
---|
306 | <td>
|
---|
307 | MusicBrainz artist id:
|
---|
308 | </td>
|
---|
309 | <td>
|
---|
310 | <a href="http://dbtune.org/musicbrainz/page/artist/{$musicbrainzartistid}" target="#musicbrainz" class="external">
|
---|
311 | <xsl:copy-of select="$musicbrainzartistid"/>
|
---|
312 | </a>
|
---|
313 | </td>
|
---|
314 | </tr>
|
---|
315 | <tr>
|
---|
316 | <td>
|
---|
317 | EchoNest song id:
|
---|
318 | </td>
|
---|
319 | <td>
|
---|
320 | <a href="http://developer.echonest.com/api/v4/song/profile?api_key=8WNR9XTGCODO9G4YG&format=xml&id={$echonestsongid}" target="#echonestsongid" class="external">
|
---|
321 |
|
---|
322 |
|
---|
323 |
|
---|
324 | <xsl:copy-of select="$echonestsongid"/>
|
---|
325 | </a>
|
---|
326 | </td>
|
---|
327 | </tr>
|
---|
328 | <tr>
|
---|
329 | <td colspan="2">
|
---|
330 | <i>
|
---|
331 | <a href="{$lastfmtrackurl}" target="#lastfm" class="external">
|
---|
332 | <xsl:copy-of select="$lastfmtrackurl"/>
|
---|
333 | </a>
|
---|
334 | </i>
|
---|
335 | </td>
|
---|
336 | </tr>
|
---|
337 | </table>
|
---|
338 |
|
---|
339 | </td>
|
---|
340 | </tr>
|
---|
341 |
|
---|
342 |
|
---|
343 | </tbody>
|
---|
344 | </table>
|
---|
345 | </xsl:template>
|
---|
346 |
|
---|
347 |
|
---|
348 |
|
---|
349 | <!-- *** -->
|
---|
350 | <!-- * Audio Player -->
|
---|
351 | <!-- *** -->
|
---|
352 |
|
---|
353 | <xsl:template name="js-mad-header">
|
---|
354 |
|
---|
355 | <gsf:script src="ext/js-mad/script/mad.js"/>
|
---|
356 | <gsf:script src="ext/js-mad/script/rq_table.js"/>
|
---|
357 | <gsf:script src="ext/js-mad/script/imdct_s.js"/>
|
---|
358 | <gsf:script src="ext/js-mad/script/huffman.js"/>
|
---|
359 | <gsf:script src="ext/js-mad/script/bit.js"/>
|
---|
360 | <gsf:script src="ext/js-mad/script/stream.js"/>
|
---|
361 | <gsf:script src="ext/js-mad/script/layer3.js"/>
|
---|
362 | <gsf:script src="ext/js-mad/script/frame.js"/>
|
---|
363 | <gsf:script src="ext/js-mad/script/synth.js"/>
|
---|
364 |
|
---|
365 | <gsf:script src="ext/js-mad/script/arraybuffer/bytestream.js"/>
|
---|
366 | <gsf:script src="ext/js-mad/script/arraybuffer/filestream.js"/>
|
---|
367 | <gsf:script src="ext/js-mad/script/arraybuffer/substream.js"/>
|
---|
368 | <gsf:script src="ext/js-mad/script/arraybuffer/arraystream.js"/>
|
---|
369 | <gsf:script src="ext/js-mad/script/arraybuffer/ajaxstream.js"/>
|
---|
370 |
|
---|
371 | <gsf:script src="ext/js-mad/script/binarystring/bytestream.js"/>
|
---|
372 | <gsf:script src="ext/js-mad/script/binarystring/filestream.js"/>
|
---|
373 | <gsf:script src="ext/js-mad/script/binarystring/substream.js"/>
|
---|
374 | <gsf:script src="ext/js-mad/script/binarystring/stringstream.js"/>
|
---|
375 | <gsf:script src="ext/js-mad/script/binarystring/ajaxstream.js"/>
|
---|
376 |
|
---|
377 | <gsf:script src="ext/js-mad/script/id3v22stream.js"/>
|
---|
378 | <gsf:script src="ext/js-mad/script/id3v23stream.js"/>
|
---|
379 | <gsf:script src="ext/js-mad/script/mp3file.js"/>
|
---|
380 |
|
---|
381 | <!--
|
---|
382 | <gsf:script src="ext/js-mad/script/player.js"/>
|
---|
383 | -->
|
---|
384 |
|
---|
385 | <gsf:script src="ext/js-mad/script/sink.min.js"/>
|
---|
386 |
|
---|
387 | <!--
|
---|
388 | <gsf:script src="ext/js-mad/script/require.js"/>
|
---|
389 | -->
|
---|
390 | <!--
|
---|
391 | <gsf:script src="ext/js-mad/script/sink-light.js"/>
|
---|
392 | -->
|
---|
393 |
|
---|
394 | <gsf:script src="ext/js-mad/script/browser-detect.js"/>
|
---|
395 | <gsf:script src="ext/js-mad/script/main-jsmad.js"/>
|
---|
396 |
|
---|
397 | </xsl:template>
|
---|
398 |
|
---|
399 |
|
---|
400 |
|
---|
401 | <xsl:template name="audio-icon-cache">
|
---|
402 | <div style="display:none;">
|
---|
403 | <!-- pre-load various play/pause images to help with speed of interface update -->
|
---|
404 | <img src="ext/diy-audio-player/images/play32Highlight.png" />
|
---|
405 | <img src="ext/diy-audio-player/images/pause32.png" />
|
---|
406 | <img src="ext/diy-audio-player/images/pause32Highlight.png" />
|
---|
407 | <img src="ext/diy-audio-player/images/play20Highlight.png" />
|
---|
408 | <img src="ext/diy-audio-player/images/stop32.png" />
|
---|
409 | <img src="ext/diy-audio-player/images/stop32Highlight.png" />
|
---|
410 | <img src="ext/diy-audio-player/images/search20Highlight.png" />
|
---|
411 | </div>
|
---|
412 | </xsl:template>
|
---|
413 |
|
---|
414 |
|
---|
415 | <!-- *** -->
|
---|
416 | <!-- * Workflow control -->
|
---|
417 | <!-- *** -->
|
---|
418 |
|
---|
419 | <xsl:template name="workflow-block">
|
---|
420 | <xsl:variable name="httpCollection">
|
---|
421 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
422 | </xsl:variable>
|
---|
423 |
|
---|
424 | <div id="workflow-turnstyle">
|
---|
425 |
|
---|
426 | <div style="background-image: none; background-color: rgb(80%,80%,20%);">
|
---|
427 | Workflow
|
---|
428 | </div>
|
---|
429 |
|
---|
430 | <div class="documenttext hide" style="color: white; background-color: rgb(40%,40%,20%); padding: 8px;">
|
---|
431 |
|
---|
432 | <!--
|
---|
433 | <form style="padding-left: 8px;">
|
---|
434 | <span class="vis-heading">Input Selection:</span>
|
---|
435 | <input type="radio" name="inputSelection" onclick="setInputSelectionMode(this)" value="left"/>Left only
|
---|
436 | <input type="radio" name="inputSelection" onclick="setInputSelectionMode(this)" value="right"/>Right only
|
---|
437 | <input type="radio" name="inputSelection" onclick="setInputSelectionMode(this)" value="diff"/>Average
|
---|
438 | <input type="radio" name="inputSelection" onclick="setInputSelectionMode(this)" value="mix" checked="checked"/>Difference
|
---|
439 | </form>
|
---|
440 | <hr/>
|
---|
441 | -->
|
---|
442 |
|
---|
443 | <form style="padding-left: 8px; height: 48px;">
|
---|
444 | <span class="vis-heading" style="padding-right: 10px" >Meandre Workflow:</span>
|
---|
445 |
|
---|
446 | <select id="meandre-workflow-pos" onChange="loadSelectedWorkflow(this)" style="font-size: 90%; padding 8px;">
|
---|
447 | <option value="0" selected="selected">Chromagram</option>
|
---|
448 | <option value="1" >Dynamic Javascript Mixer</option>
|
---|
449 | </select>
|
---|
450 |
|
---|
451 | <div style="float: right;" id="meandre-buttons">
|
---|
452 |
|
---|
453 | <button type="button" id="meandre-run-button"
|
---|
454 | onclick="selectedMeandreWorkflow.runThisMeandreFlow(this)">
|
---|
455 | <img id="meandre-run-button" src="ext/diy-audio-player/images/play32.png"
|
---|
456 | width="32"
|
---|
457 | height="32"
|
---|
458 | XXonmouseover="playHighlightOn(this)"
|
---|
459 | XXonmouseout="playHighlightOff(this)"
|
---|
460 | XXonclick="runThisMeandreFlow(this)"
|
---|
461 | style="vertical-align: middle;"/>
|
---|
462 | Run
|
---|
463 | </button>
|
---|
464 |
|
---|
465 | <button type="button" id="meandre-stop-button" onclick="selectedMeandreWorkflow.stopThisMeandreFlow(this)" disabled="disabled">
|
---|
466 | <img id="meandre-stop-button" src="ext/diy-audio-player/images/stop32.png"
|
---|
467 | width="32"
|
---|
468 | height="32"
|
---|
469 | XXonmouseover="stopHighlightOn(this)"
|
---|
470 | XXonmouseout="stopHighlightOff(this)"
|
---|
471 | XXonclick="stopThisMeandreFlow(this)"
|
---|
472 | style="vertical-align: middle;"/>
|
---|
473 | Stop
|
---|
474 | </button>
|
---|
475 |
|
---|
476 | <!--
|
---|
477 | <button type="button" id="meandre-run-button" onclick="runThisMeandreFlow(this)" >Run</button>
|
---|
478 | <button type="button" id="meandre-stop-button" onclick="stopThisMeandreFlow(this)" disabled="disabled">Stop</button>
|
---|
479 | -->
|
---|
480 |
|
---|
481 | </div>
|
---|
482 |
|
---|
483 | </form>
|
---|
484 |
|
---|
485 | <style>
|
---|
486 | #meandre-buttons button:hover:enabled {
|
---|
487 | background-color: #CCCC33;
|
---|
488 | color: #FFFFFF;
|
---|
489 | }
|
---|
490 | </style>
|
---|
491 |
|
---|
492 |
|
---|
493 | <div style="position: relative;">
|
---|
494 | <iframe id="workbenchFrame"
|
---|
495 | style="width: 100%; height: 400px;" >
|
---|
496 | If you see this, then your browser does not support the iframe element.
|
---|
497 | </iframe>
|
---|
498 |
|
---|
499 | </div>
|
---|
500 |
|
---|
501 | <gsf:script src="{$httpCollection}/script/meandre-workflow/chromagram.js"/>
|
---|
502 | <gsf:script src="{$httpCollection}/script/meandre-workflow/js-dynamic-mix.js"/>
|
---|
503 |
|
---|
504 | <gsf:script>
|
---|
505 | var chromagramMeandreWorkflow = new ChromagramMeandreWorkflow();
|
---|
506 | var jsDynamicMixMeandreWorkflow = new JSDynamicMixMeandreWorkflow();
|
---|
507 |
|
---|
508 | var meandreWorkflows = [ chromagramMeandreWorkflow, jsDynamicMixMeandreWorkflow ];
|
---|
509 |
|
---|
510 | var selectedMeandreWorkflowPos =$('#meandre-workflow-pos option:selected').val();
|
---|
511 | var selectedMeandreWorkflow = meandreWorkflows[selectedMeandreWorkflowPos];
|
---|
512 |
|
---|
513 | selectedMeandreWorkflow.meandreController.loadWorkbench( "workbenchFrame",selectedMeandreWorkflowPos);
|
---|
514 |
|
---|
515 | function loadSelectedWorkflow(elem) {
|
---|
516 | selectedMeandreWorkflowPos = elem.value;
|
---|
517 | selectedMeandreWorkflow = meandreWorkflows[selectedMeandreWorkflowPos];
|
---|
518 |
|
---|
519 | if (selectedMeandreWorkflowPos==1) {
|
---|
520 | $('#jsdynamic-turnstyle').show();
|
---|
521 | }
|
---|
522 | else {
|
---|
523 | $('#jsdynamic-turnstyle').hide();
|
---|
524 | }
|
---|
525 |
|
---|
526 | console.info("Loading in new Meandre workbench flow (pos=" + selectedMeandreWorkflowPos+ ")");
|
---|
527 | selectedMeandreWorkflow.meandreController.loadWorkbench("workbenchFrame",selectedMeandreWorkflowPos);
|
---|
528 |
|
---|
529 | }
|
---|
530 | </gsf:script>
|
---|
531 |
|
---|
532 |
|
---|
533 |
|
---|
534 |
|
---|
535 | <div id="jsdynamic-turnstyle" style="display:none">
|
---|
536 |
|
---|
537 | <div style="background-image: none; background-color: rgb(80%,80%,20%);">
|
---|
538 | Dynamic Javascript Meandre Component
|
---|
539 | </div>
|
---|
540 |
|
---|
541 | <div class="documenttext hide" style="color: white; background-color: rgb(40%,40%,20%); padding: 8px;">
|
---|
542 |
|
---|
543 | <textarea id="js-dynamic-code" style="width:100%; height: 520px; font-size: 60%">
|
---|
544 | <xsl:text disable-output-escaping="yes">
|
---|
545 |
|
---|
546 |
|
---|
547 | var arrayBinding = new JavaImporter(java.lang.reflect.Array);
|
---|
548 |
|
---|
549 | var JSDynamicComponent = function() {
|
---|
550 | this.frameCount = 0;
|
---|
551 | }
|
---|
552 |
|
---|
553 | JSDynamicComponent.prototype.executeCallBack = function(cc) {
|
---|
554 |
|
---|
555 | with(arrayBinding) {
|
---|
556 |
|
---|
557 | if ((this.frameCount % 1000)==0) {
|
---|
558 | print("JSDynamicComponent: " + this.frameCount + "\n");
|
---|
559 | }
|
---|
560 |
|
---|
561 | var inputObject = cc.getDataComponentFromInput("input");
|
---|
562 | var rawInput1DArray = inputObject;
|
---|
563 |
|
---|
564 | var rawOutput1DArray = Array.newInstance(java.lang.Double.TYPE, rawInput1DArray.length);
|
---|
565 |
|
---|
566 | for (var i=1; i<rawOutput1DArray.length; i++) {
|
---|
567 | var diff = Array.getDouble(rawInput1DArray,i) - Array.getDouble(rawInput1DArray, i-1);
|
---|
568 | Array.setDouble(rawOutput1DArray,i,diff);
|
---|
569 | }
|
---|
570 |
|
---|
571 | cc.pushDataComponentToOutput("output", rawOutput1DArray);
|
---|
572 |
|
---|
573 | this.frameCount++;
|
---|
574 | }
|
---|
575 |
|
---|
576 | }
|
---|
577 |
|
---|
578 | var jsDynamicComponent = new JSDynamicComponent();
|
---|
579 |
|
---|
580 | </xsl:text>
|
---|
581 | </textarea>
|
---|
582 | </div> <!-- end of Dynamic JS turnstyle block -->
|
---|
583 | </div>
|
---|
584 |
|
---|
585 | </div>
|
---|
586 |
|
---|
587 | </div>
|
---|
588 |
|
---|
589 | <script>
|
---|
590 | <xsl:text disable-output-escaping="yes">
|
---|
591 | $(function(){
|
---|
592 | transformToTurnstyleBlock("workflow");
|
---|
593 | transformToTurnstyleBlock("jsdynamic");
|
---|
594 | });
|
---|
595 | </xsl:text>
|
---|
596 | </script>
|
---|
597 | </xsl:template>
|
---|
598 |
|
---|
599 |
|
---|
600 | <!-- *** -->
|
---|
601 | <!-- * Structured audio player -->
|
---|
602 | <!-- *** -->
|
---|
603 |
|
---|
604 | <xsl:template name="structuredAudioPlayerBlock">
|
---|
605 |
|
---|
606 | <gsf:script src="ext/diy-audio-player/script/structured-audio-play.js"/>
|
---|
607 |
|
---|
608 | <div style="background-color: rgb(40%,40%,20%)">
|
---|
609 | <svg xmlns="http://www.w3.org/2000/svg"
|
---|
610 | xmlns:xlink="http://www.w3.org/1999/xlink"
|
---|
611 | version="1.1"
|
---|
612 | id="svgGroundTruthSegments"
|
---|
613 | width="100%" height="24"
|
---|
614 | onLoadXX="svgGTStructuredInit()">
|
---|
615 | </svg>
|
---|
616 | </div>
|
---|
617 |
|
---|
618 | <div style="background-color: rgb(40%,40%,20%)">
|
---|
619 | <svg xmlns="http://www.w3.org/2000/svg"
|
---|
620 | xmlns:xlink="http://www.w3.org/1999/xlink"
|
---|
621 | version="1.1"
|
---|
622 | id="svgContentAnalysisSegments"
|
---|
623 | width="100%" height="24"
|
---|
624 | onLoadXX="svgCAStructuredInit({$cgiargCAAlgorithm})">
|
---|
625 | </svg>
|
---|
626 | </div>
|
---|
627 | </xsl:template>
|
---|
628 |
|
---|
629 | <xsl:template name="visualization-mode-block">
|
---|
630 |
|
---|
631 | <div class="documenttext" style="color: white; background-color: rgb(40%,40%,20%); padding-top: 4px;">
|
---|
632 |
|
---|
633 | <span class="vis-heading">Max Values:</span>
|
---|
634 | <div style="padding-left: 8px">
|
---|
635 | <style>
|
---|
636 | span.mv-fixed { display: inline-block; width: 30pt; }
|
---|
637 | </style>
|
---|
638 | <table width="100%">
|
---|
639 | <tr>
|
---|
640 | <td><span class="mv-fixed" id="freqSpectrumMax" >0.000</span>(Freq Spectrum) </td>
|
---|
641 | <td><span class="mv-fixed" id="freqPowerSpectrumMax">0.000</span>(Freq Power Spectrum) </td>
|
---|
642 | <td><span class="mv-fixed" id="filterBankMax" >0.000</span>(Filter Bank) </td>
|
---|
643 | <td><span class="mv-fixed" id="chromaFeaturesMax" >0.000</span>(Chroma Features) </td>
|
---|
644 | </tr>
|
---|
645 | </table>
|
---|
646 | </div>
|
---|
647 | <hr/>
|
---|
648 |
|
---|
649 | <form style="padding-left: 8px; padding-right: 8px; padding-bottom: 0px;">
|
---|
650 | <div style="float: left;">
|
---|
651 | <span class="vis-heading">Visualization:</span>
|
---|
652 | <!--
|
---|
653 | <input type="radio" name="visualization" onclick="setTransformMode(this)" value="freqSpectrum" />Frequency Spectrum
|
---|
654 | <input type="radio" name="visualization" onclick="setTransformMode(this)" value="freqPowerSpectrum"/>Frequency Power Spectrum
|
---|
655 | -->
|
---|
656 |
|
---|
657 | <input type="radio" name="visualization" onclick="setTransformMode(this)" value="filterBank"/>Filter Bank
|
---|
658 | <input type="radio" name="visualization" onclick="setTransformMode(this)" value="chromaFeatures" checked="checked"/>Chroma Features
|
---|
659 | </div>
|
---|
660 |
|
---|
661 | <div style="float: left; padding-left: 140px;">
|
---|
662 | <span class="vis-heading">Colour Mapping:</span>
|
---|
663 | <input type="radio" name="colorMapping" onclick="setColorMappingMode(this)" value="rgb"/>RGB Intensity
|
---|
664 | <input type="radio" name="colorMapping" onclick="setColorMappingMode(this)" value="hsl" checked="checked"/>HSL Heat
|
---|
665 | </div>
|
---|
666 | </form>
|
---|
667 |
|
---|
668 | <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
|
---|
669 |
|
---|
670 | <!--
|
---|
671 | <form style="padding-left: 8px;">
|
---|
672 | <span class="vis-heading">Colour Mapping:</span>
|
---|
673 | <input type="radio" name="colorMapping" onclick="setColorMappingMode(this)" value="rgb"/>RGB Intensity
|
---|
674 | <input type="radio" name="colorMapping" onclick="setColorMappingMode(this)" value="hsl" checked="checked"/>HSL Heat Map
|
---|
675 | </form>
|
---|
676 | <hr/>
|
---|
677 | -->
|
---|
678 |
|
---|
679 |
|
---|
680 |
|
---|
681 | <form style="padding-left: 8px; padding-bottom: 0px;">
|
---|
682 | <div style="float: left;">
|
---|
683 | <input type="checkbox" name="similarityMatrix" onclick="plotSimilarityMatrixWhenPaused(this)"/>Show Similarity Matrix
|
---|
684 | </div>
|
---|
685 | <div style="float: left; padding-left: 140px;">
|
---|
686 | <span class="vis-heading">Accelerated Processing:</span>
|
---|
687 | <input type="checkbox" name="acceleratedProcessingInput" onclick="acceleratedProcessingCheckbox(this)"/>> realtime
|
---|
688 | <span id="accProcStatus"></span>
|
---|
689 | </div>
|
---|
690 |
|
---|
691 | </form>
|
---|
692 | <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
|
---|
693 |
|
---|
694 | <hr/>
|
---|
695 |
|
---|
696 | </div>
|
---|
697 |
|
---|
698 | <xsl:call-template name="graphic-equalizers"/>
|
---|
699 | </xsl:template>
|
---|
700 |
|
---|
701 |
|
---|
702 | <xsl:template name="graphic-equalizers">
|
---|
703 |
|
---|
704 |
|
---|
705 | <gsf:style >
|
---|
706 | .control {
|
---|
707 | padding: 5px;
|
---|
708 | border: 1px solid #CCC;
|
---|
709 | background-color: #EEE;
|
---|
710 | float: left;
|
---|
711 | margin-right: 5px;
|
---|
712 |
|
---|
713 | }
|
---|
714 |
|
---|
715 | .inner-control {
|
---|
716 | background-color: #DDD;
|
---|
717 | }
|
---|
718 |
|
---|
719 | .control div {
|
---|
720 | max-width: 400px;
|
---|
721 | }
|
---|
722 |
|
---|
723 | .control table td {
|
---|
724 | padding: 5px;
|
---|
725 | width: 25px;
|
---|
726 | color: #999;
|
---|
727 | font-size: 12px;
|
---|
728 | }
|
---|
729 | .control h3 {
|
---|
730 | margin: 0;
|
---|
731 | padding:0;
|
---|
732 | font-size: 12px;
|
---|
733 | margin-bottom: 10px;
|
---|
734 | }
|
---|
735 | .control #debug {
|
---|
736 | border: 1px inset #ccc;
|
---|
737 | background-color: #FFF;
|
---|
738 | font-size: 12px;
|
---|
739 | width: 300px;
|
---|
740 | padding: 10px;
|
---|
741 | }
|
---|
742 | .slider {
|
---|
743 | margin-bottom: 16px;
|
---|
744 | width: 8px;
|
---|
745 | }
|
---|
746 | /*
|
---|
747 | .geq-bar {
|
---|
748 | width: 34px;
|
---|
749 | }
|
---|
750 | */
|
---|
751 |
|
---|
752 | /*
|
---|
753 | .ui-button {
|
---|
754 | font-size: xx-small;
|
---|
755 | }
|
---|
756 | */
|
---|
757 | .ui-slider .ui-slider-handle {
|
---|
758 | width: 8px;
|
---|
759 | margin-left: 3px;
|
---|
760 | }
|
---|
761 | </gsf:style>
|
---|
762 |
|
---|
763 |
|
---|
764 |
|
---|
765 | <gsf:script>
|
---|
766 | <![CDATA[
|
---|
767 |
|
---|
768 | var grapheqL;
|
---|
769 | var grapheqR;
|
---|
770 |
|
---|
771 | $(function() {
|
---|
772 | var geqSampleRate = 44100;
|
---|
773 | console.log("*** hardwiring Graphic Equalizer sampleRate to be: " + geqSampleRate);
|
---|
774 |
|
---|
775 | grapheqL = new GraphicalEq(geqSampleRate);
|
---|
776 | grapheqR = new GraphicalEq(geqSampleRate);
|
---|
777 | grapheqL.recalculateFilters();
|
---|
778 | grapheqR.recalculateFilters();
|
---|
779 |
|
---|
780 | var minPropL = { orientation: 'vertical', range: 'min', min: 10, max: 22000, step: 1, value: 40,
|
---|
781 | slide: function() { changeMinFreq(grapheqL,"L")} };
|
---|
782 | var minPropR = { orientation: 'vertical', range: 'min', min: 10, max: 22000, step: 1, value: 40,
|
---|
783 | slide: function() { changeMinFreq(grapheqR,"R")} };
|
---|
784 |
|
---|
785 | var maxPropL = { orientation: 'vertical', range: 'min', min: 10, max: 22000, step: 1, value: 16000,
|
---|
786 | slide: function() { changeMaxFreq(grapheqL,"L") } };
|
---|
787 | var maxPropR = { orientation: 'vertical', range: 'min', min: 10, max: 22000, step: 1, value: 16000,
|
---|
788 | slide: function() { changeMaxFreq(grapheqR,"R") } };
|
---|
789 |
|
---|
790 | var bpoPropL = { orientation: 'vertical', range: 'min', min: 0.1, max: 2, step: 0.1, value: 1,
|
---|
791 | slide: function() { changeBandsPerOctave(grapheqL,"L")} };
|
---|
792 | var bpoPropR = { orientation: 'vertical', range: 'min', min: 0.1, max: 2, step: 0.1, value: 1,
|
---|
793 | slide: function() { changeBandsPerOctave(grapheqR,"R")} };
|
---|
794 |
|
---|
795 | $('#minFreqL').slider(minPropL);
|
---|
796 | $('#maxFreqL').slider(maxPropL);
|
---|
797 | $('#minFreqR').slider(minPropR);
|
---|
798 | $('#maxFreqR').slider(maxPropR);
|
---|
799 |
|
---|
800 | $('#bandsPerOctaveL').slider(bpoPropL);
|
---|
801 | $('#bandsPerOctaveR').slider(bpoPropR);
|
---|
802 |
|
---|
803 | //$('#input').attr('volume', 0);
|
---|
804 |
|
---|
805 | createSliders(grapheqL,"L");
|
---|
806 | createSliders(grapheqR,"R");
|
---|
807 | });
|
---|
808 |
|
---|
809 |
|
---|
810 |
|
---|
811 | var changeMinFreq = function(grapheq,side) {
|
---|
812 | grapheq.setMinimumFrequency($('#minFreq'+side).slider('option', 'value'));
|
---|
813 | //plotCoeffs();
|
---|
814 | createSliders(grapheq,side);
|
---|
815 | }
|
---|
816 |
|
---|
817 | var changeMaxFreq = function(grapheq,side) {
|
---|
818 | grapheq.setMaximumFrequency($('#maxFreq'+side).slider('option', 'value'));
|
---|
819 | //plotCoeffs();
|
---|
820 | createSliders(grapheq,side);
|
---|
821 | }
|
---|
822 |
|
---|
823 | var changeBandsPerOctave = function(grapheq,side) {
|
---|
824 | grapheq.setBandsPerOctave($('#bandsPerOctave'+side).slider('option', 'value'));
|
---|
825 | //plotCoeffs();
|
---|
826 | createSliders(grapheq,side);
|
---|
827 | }
|
---|
828 |
|
---|
829 | function positionGrapheqControl(grapheq,side) {
|
---|
830 |
|
---|
831 | var numSliders = grapheq.filters.length;
|
---|
832 | var offset = (35 * numSliders) + 12;
|
---|
833 | if (side == "L") {
|
---|
834 | $('#grapheqControlL').css("left","-" + offset + "px");
|
---|
835 | }
|
---|
836 | else if (side == "R") {
|
---|
837 | offset += 5; // fudge factor
|
---|
838 | $('#grapheqControlR').css("right","-" + offset + "px");
|
---|
839 | }
|
---|
840 | else {
|
---|
841 | console.error("positionGrapheqControl(): unrecognized side '" + side + "'");
|
---|
842 | }
|
---|
843 | }
|
---|
844 |
|
---|
845 | var createSliders = function(grapheq,side) {
|
---|
846 | $('#bandSliders'+side).empty();
|
---|
847 | positionGrapheqControl(grapheq,side);
|
---|
848 | for (var i=0; i<grapheq.filters.length; i++) {
|
---|
849 |
|
---|
850 | var freq = grapheq.filters[i].f0;
|
---|
851 | var units = "Hz";
|
---|
852 | if (freq>=1000000) {
|
---|
853 | freq = (freq/1000000).toFixed(2);
|
---|
854 | units = " MHz";
|
---|
855 | }
|
---|
856 | else if (freq>=1000) {
|
---|
857 | freq = (freq/1000).toFixed(2);
|
---|
858 | units = " KHz";
|
---|
859 | }
|
---|
860 | else if (freq>=100) {
|
---|
861 | freq = freq.toFixed(0);
|
---|
862 | }
|
---|
863 | else {
|
---|
864 | freq = freq.toFixed(0);
|
---|
865 | freq = " " + freq;
|
---|
866 | }
|
---|
867 |
|
---|
868 | $('#bandSliders'+side).append('<td class="geq-bar"><div id="band'+side+'_'+i+'" class="slider"></div>'
|
---|
869 | +freq + ' ' + units + '</td>');
|
---|
870 |
|
---|
871 | $('#band'+side+'_'+i).slider({ orientation: 'vertical', range: 'min', min: -10, max: 3, step: 0.1, value: 0,
|
---|
872 | slide: function(event,ui) { changeBandGain(event,ui,grapheq)} });
|
---|
873 | }
|
---|
874 | }
|
---|
875 |
|
---|
876 | var changeBandGain = function(event, ui, grapheq) {
|
---|
877 | grapheq.setBandGain(ui.handle.parentNode.id.split("_")[1], ui.value);
|
---|
878 | //plotCoeffs();
|
---|
879 | }
|
---|
880 | /*
|
---|
881 | var plotCoeffs = function() {
|
---|
882 | freqz = new Float32Array(grapheq.freqzs[0].length);
|
---|
883 |
|
---|
884 | for (var i=0; i<freqz.length; i++) {
|
---|
885 | for (var j=0; j<grapheq.freqzs.length; j++) {
|
---|
886 | freqz[i] += grapheq.freqzs[j][i];
|
---|
887 | }
|
---|
888 | }
|
---|
889 | }
|
---|
890 | */
|
---|
891 |
|
---|
892 | /*
|
---|
893 | function audioWritten(event) {
|
---|
894 | signal = event.mozFrameBuffer;
|
---|
895 |
|
---|
896 | // Apply the filter to the signal
|
---|
897 | signal = grapheq.processStereo(signal);
|
---|
898 |
|
---|
899 | output.mozWriteAudio([]); // flush
|
---|
900 | output.mozWriteAudio(signal);
|
---|
901 | writeCount++;
|
---|
902 | }
|
---|
903 | */
|
---|
904 |
|
---|
905 | //plotCoeffs();
|
---|
906 |
|
---|
907 |
|
---|
908 | ]]>
|
---|
909 | </gsf:script>
|
---|
910 |
|
---|
911 |
|
---|
912 | <gsf:script>
|
---|
913 | function minimizeTurnstyle(suffix) {
|
---|
914 | $('#turnstyleMaximizeButton'+suffix).show();
|
---|
915 | $('#turnstyleMinimizeButton'+suffix).hide();
|
---|
916 | $('#turnstyleContentsArea'+suffix).slideUp('fast');
|
---|
917 | }
|
---|
918 |
|
---|
919 | function maximizeTurnstyle(suffix) {
|
---|
920 | $('#turnstyleMaximizeButton'+suffix).hide();
|
---|
921 | $('#turnstyleMinimizeButton'+suffix).show();
|
---|
922 | $('#turnstyleContentsArea'+suffix).slideDown('fast');
|
---|
923 | }
|
---|
924 |
|
---|
925 | </gsf:script>
|
---|
926 |
|
---|
927 | <!--
|
---|
928 | <div class="control" style="float: left; height: 200px">
|
---|
929 | -->
|
---|
930 |
|
---|
931 |
|
---|
932 | <div id="grapheqControlL" class="control" style="position: absolute; top: 0px; left: -132px; heightXX: 200px">
|
---|
933 |
|
---|
934 | <h3 style="float: left;">Graphic Equalizer (left channel)</h3>
|
---|
935 | <div style="float: right;">
|
---|
936 | <span style="font-size: 75%; padding-right: 5px;">(advanced)</span>
|
---|
937 | <a id="turnstyleMinimizeButtonL" style="float: right; font-size: 0.6em; display: none;" href="javascript:minimizeTurnstyle('L');">
|
---|
938 | <img class="icon" style="padding-top:3px;" src="interfaces/{$interface_name}/images/collapse.png"/>
|
---|
939 | </a>
|
---|
940 | <a id="turnstyleMaximizeButtonL" style="float: right; font-size: 0.6em; display: block;" href="javascript:maximizeTurnstyle('L');">
|
---|
941 | <img style="padding-top:3px;" src="interfaces/{$interface_name}/images/expand.png" class="icon"/>
|
---|
942 | </a>
|
---|
943 | </div>
|
---|
944 |
|
---|
945 | <hr style="clear: both;"/>
|
---|
946 |
|
---|
947 | <div id="turnstyleContentsAreaL" style="display: none; float: right;">
|
---|
948 |
|
---|
949 | <table class="inner-control" style="margin-bottom: 5px;">
|
---|
950 | <tr>
|
---|
951 | <td><div id="minFreqL" class="slider"><xsl:comment/></div>Min Freq</td>
|
---|
952 | <td><div id="maxFreqL" class="slider"><xsl:comment/></div>Max Freq</td>
|
---|
953 | <td><div id="bandsPerOctaveL" class="slider"><xsl:comment/></div>Bands/ Octave</td>
|
---|
954 | </tr>
|
---|
955 | </table>
|
---|
956 | </div>
|
---|
957 |
|
---|
958 | <div style="clear: both; height: 0px;"><xsl:comment></xsl:comment></div>
|
---|
959 |
|
---|
960 | <table class="inner-control">
|
---|
961 | <tr id="bandSlidersL">
|
---|
962 | </tr>
|
---|
963 | </table>
|
---|
964 |
|
---|
965 |
|
---|
966 |
|
---|
967 | </div>
|
---|
968 |
|
---|
969 | <!--
|
---|
970 | <div class="control" style="float: right; height: 200px">
|
---|
971 | -->
|
---|
972 |
|
---|
973 | <div id="grapheqControlR" class="control" style="position: absolute; top: 0px; right: -330px; heightXX: 200px">
|
---|
974 | <h3 style="float: left;">Graphic Equalizer (right channel)</h3>
|
---|
975 |
|
---|
976 | <div style="float: right;">
|
---|
977 | <span style="font-size: 75%; padding-right: 5px;">(advanced)</span>
|
---|
978 | <a id="turnstyleMinimizeButtonR" style="float: right; font-size: 0.6em; display: none;" href="javascript:minimizeTurnstyle('R');">
|
---|
979 | <img class="icon" style="padding-top:3px;" src="interfaces/{$interface_name}/images/collapse.png"/>
|
---|
980 | </a>
|
---|
981 | <a id="turnstyleMaximizeButtonR" style="float: right; font-size: 0.6em; display: block;" href="javascript:maximizeTurnstyle('R');">
|
---|
982 | <img style="padding-top:3px;" src="interfaces/{$interface_name}/images/expand.png" class="icon"/>
|
---|
983 | </a>
|
---|
984 | </div>
|
---|
985 |
|
---|
986 | <hr style="clear: both;"/>
|
---|
987 |
|
---|
988 | <div id="turnstyleContentsAreaR" style="display: none; float: left;">
|
---|
989 | <table class="inner-control" style="margin-bottom: 5px;">
|
---|
990 | <tr>
|
---|
991 | <td><div id="minFreqR" class="slider"><xsl:comment/></div>Min Freq</td>
|
---|
992 | <td><div id="maxFreqR" class="slider"><xsl:comment/></div>Max Freq</td>
|
---|
993 | <td><div id="bandsPerOctaveR" class="slider"><xsl:comment/></div>Bands/ Octave</td>
|
---|
994 | </tr>
|
---|
995 | </table>
|
---|
996 | </div>
|
---|
997 |
|
---|
998 | <div style="clear: both; height: 0px;"><xsl:comment></xsl:comment></div>
|
---|
999 |
|
---|
1000 | <table class="inner-control">
|
---|
1001 | <tr id="bandSlidersR">
|
---|
1002 | </tr>
|
---|
1003 | </table>
|
---|
1004 |
|
---|
1005 | </div>
|
---|
1006 |
|
---|
1007 | </xsl:template>
|
---|
1008 |
|
---|
1009 |
|
---|
1010 | <!-- *** -->
|
---|
1011 | <!-- * Settings form -->
|
---|
1012 | <!-- *** -->
|
---|
1013 |
|
---|
1014 | <xsl:template name="settings-form">
|
---|
1015 | <xsl:param name="cgiargYScaleSimImg"/>
|
---|
1016 |
|
---|
1017 | <xsl:variable name="httpCollection">
|
---|
1018 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
1019 | </xsl:variable>
|
---|
1020 |
|
---|
1021 | <!--
|
---|
1022 | <gsf:variable-array name="overlayNote2">
|
---|
1023 | <gsf:metadata multiple="true" name="salami.overlayNote" separator=", "/>
|
---|
1024 | </gsf:variable-array>
|
---|
1025 |
|
---|
1026 | <span id="overlayNewNotes2" class="ui-state-default ui-corner-top" style="font-size:90%; padding: 3px; cursor:pointer;">
|
---|
1027 | New Annotation 2
|
---|
1028 | </span>
|
---|
1029 |
|
---|
1030 | <div id="noteOverlay2" style="width: 100%; height: 300px; background-color: #cccccc;">
|
---|
1031 | </div>
|
---|
1032 |
|
---|
1033 | <gsf:script>
|
---|
1034 | $(window).load(function(){
|
---|
1035 | var overlayNotes2 = new OverlayNotes("noteOverlay2","salami.overlayNote");
|
---|
1036 | $('#overlayNewNotes2').click(function() {overlayNotes2.AddNote() });
|
---|
1037 | });
|
---|
1038 |
|
---|
1039 | </gsf:script>
|
---|
1040 | -->
|
---|
1041 |
|
---|
1042 | <div style="display: none;"><!-- wrapped div to force display to none -->
|
---|
1043 |
|
---|
1044 | <div id="settings-turnstyle" style="margin: 6px;">
|
---|
1045 | <div style="background-image: none; background-color: rgb(80%,80%,20%);">
|
---|
1046 | Audio Content Search
|
---|
1047 | </div>
|
---|
1048 | <div class="documenttext" style="display: none;">
|
---|
1049 |
|
---|
1050 |
|
---|
1051 | <form id="QueryForm" name="QueryForm" method="get" action="{$library_name}">
|
---|
1052 | <input type="hidden" name="a" value="q"/>
|
---|
1053 | <input type="hidden" name="sa"><xsl:attribute name="value"><xsl:value-of select="/page/pageRequest/@subaction"/></xsl:attribute></input>
|
---|
1054 | <input type="hidden" name="rt" value="rd"/>
|
---|
1055 |
|
---|
1056 | <input type="hidden" name="s" value="AudioQuery"/>
|
---|
1057 | <input type="hidden" name="c" value="{$collName}"/>
|
---|
1058 | <xsl:if test="not(paramList/param[@name='startPage'])">
|
---|
1059 | <input type="hidden" name="startPage" value="1"/>
|
---|
1060 | </xsl:if>
|
---|
1061 | <xsl:choose>
|
---|
1062 | <xsl:when test="/page/pageRequest/paramList/param[@name = 's1.maxDocs']">
|
---|
1063 | <input type="hidden" name="s1.maxDocs">
|
---|
1064 | <xsl:attribute name="value">
|
---|
1065 | <xsl:value-of select="/page/pageRequest/paramList/param[@name = 's1.maxDocs']/@value"/>
|
---|
1066 | </xsl:attribute>
|
---|
1067 | </input>
|
---|
1068 | </xsl:when>
|
---|
1069 | <xsl:otherwise>
|
---|
1070 | <input type="hidden" name="s1.maxDocs" value="100"/>
|
---|
1071 | </xsl:otherwise>
|
---|
1072 | </xsl:choose>
|
---|
1073 | <xsl:choose>
|
---|
1074 | <xsl:when test="/page/pageRequest/paramList/param[@name = 's1.hitsPerPage']">
|
---|
1075 | <input type="hidden" name="s1.hitsPerPage">
|
---|
1076 | <xsl:attribute name="value">
|
---|
1077 | <xsl:value-of select="/page/pageRequest/paramList/param[@name = 's1.hitsPerPage']/@value"/>
|
---|
1078 | </xsl:attribute>
|
---|
1079 | </input>
|
---|
1080 | </xsl:when>
|
---|
1081 | <xsl:otherwise>
|
---|
1082 | <input type="hidden" name="s1.hitsPerPage" value="20"/>
|
---|
1083 | </xsl:otherwise>
|
---|
1084 | </xsl:choose>
|
---|
1085 |
|
---|
1086 | <input type="hidden" name="q">
|
---|
1087 | <xsl:attribute name="value"><xsl:value-of select="/page/pageResponse/document/documentNode/@nodeID"/>.dir</xsl:attribute>
|
---|
1088 | </input>
|
---|
1089 |
|
---|
1090 |
|
---|
1091 | <input type="hidden" name="s1.query">
|
---|
1092 | <!--
|
---|
1093 | <xsl:attribute name="value"><xsl:value-of select="/page/pageResponse/document/documentNode/@nodeID"/>.dir</xsl:attribute>
|
---|
1094 | -->
|
---|
1095 | <xsl:attribute name="value"><xsl:value-of select="/page/pageResponse/document/@nodeID"/>.dir</xsl:attribute>
|
---|
1096 | </input>
|
---|
1097 |
|
---|
1098 | <input type="hidden" name="s1.offset" value="0" />
|
---|
1099 | <input type="hidden" name="s1.length" value="200" />
|
---|
1100 |
|
---|
1101 | <div style="font-style: italics;">Start new query @ offset
|
---|
1102 | <span id="mysongCurrentPos">0 secs</span>,
|
---|
1103 | with excerpt lasting
|
---|
1104 |
|
---|
1105 | <input type="text" name="mysongWindowDuration" size="4" value="6" />
|
---|
1106 | <!--
|
---|
1107 | <span id="mysongWindowDuration" class="editable-offset"
|
---|
1108 | style="cursor: pointer; border: 1px solid black; padding: 3px; width: 200px; min-width: 200px;">6.0</span>
|
---|
1109 | -->
|
---|
1110 | secs:
|
---|
1111 |
|
---|
1112 | <input type="submit" value="Search" onclick="preSubmit(this.form);" />
|
---|
1113 | </div>
|
---|
1114 |
|
---|
1115 |
|
---|
1116 | <ul style="font-size: 80%; margin-top: 8px; font-style: italics;" >
|
---|
1117 | <li>Use the <b>Play all of</b> bar to get to the part of the song you are interested in.</li>
|
---|
1118 | <li>... the <b>query @ offset</b> value will change accordingly as the song progresses.</li>
|
---|
1119 | <li>Click <b>pause</b> (anywhere outside of the time-line) to mark the spot you want to start the new music query.</li>
|
---|
1120 | <li>Optionally click on the <b>excerpt lasting</b> value and edit, if you want to change the length of excerpt used in the match.</li>
|
---|
1121 | <li>Finally, click the <b>Search</b> button to initiate the new query.</li>
|
---|
1122 | </ul>
|
---|
1123 |
|
---|
1124 | </form>
|
---|
1125 |
|
---|
1126 | <hr/>
|
---|
1127 |
|
---|
1128 | <!--
|
---|
1129 | <form id="RescaleForm" name="RescaleForm" method="get" action="{$library_name}">
|
---|
1130 | <div style="font-style: italics;">
|
---|
1131 | Make the scale factor for the y-dimension of the self-similarity
|
---|
1132 | image be
|
---|
1133 | <input type="text" name="ResizeScale" value="{$cgiargYScaleSimImg}"
|
---|
1134 | size="3" /> then
|
---|
1135 | <input type="button" name="ResizeImage" value="Resize Image"
|
---|
1136 | onclick="javascript:rescaleImage()" />
|
---|
1137 |
|
---|
1138 | </div>
|
---|
1139 | </form>
|
---|
1140 |
|
---|
1141 | <hr/>
|
---|
1142 | -->
|
---|
1143 |
|
---|
1144 | <!-- **** currently not displayed -->
|
---|
1145 |
|
---|
1146 | <form id="UpdateCAForm" name="UpdateCAForm" method="get" action="{$library_name}" style="display: none;">
|
---|
1147 | <div style="font-style: italics;">
|
---|
1148 |
|
---|
1149 | Show the song structure automatically computed by analyzing
|
---|
1150 | the audio data using algorithm
|
---|
1151 |
|
---|
1152 | <select id="caaMenu" name="caAlgorithm">
|
---|
1153 | <option value="1">BV1</option>
|
---|
1154 | <option value="2">BV2</option>
|
---|
1155 | <option value="3">GP7</option>
|
---|
1156 | <option value="4">MHRAG2</option>
|
---|
1157 | <option value="5">MND1</option>
|
---|
1158 | <option value="6">WB1</option>
|
---|
1159 |
|
---|
1160 | <!--
|
---|
1161 | <option value="-1">or hide</option>
|
---|
1162 | -->
|
---|
1163 |
|
---|
1164 | </select>:
|
---|
1165 |
|
---|
1166 | <input type="button" name="Reload" value="Reload"
|
---|
1167 | onclick="updateCAAlgorithm()" />
|
---|
1168 |
|
---|
1169 | </div>
|
---|
1170 | </form>
|
---|
1171 |
|
---|
1172 | <script>
|
---|
1173 | <xsl:text disable-output-escaping="yes">
|
---|
1174 | if (hasStructuredAudio) {
|
---|
1175 | var caaMenu = document.getElementById("caaMenu");
|
---|
1176 | caaMenu.options[caAlgorithm-1].selected = 1;
|
---|
1177 | }
|
---|
1178 | </xsl:text>
|
---|
1179 | </script>
|
---|
1180 |
|
---|
1181 |
|
---|
1182 | </div>
|
---|
1183 | </div>
|
---|
1184 | <script>
|
---|
1185 | <xsl:text disable-output-escaping="yes">
|
---|
1186 | $(function(){
|
---|
1187 | transformToTurnstyleBlock("settings");
|
---|
1188 | });
|
---|
1189 | </xsl:text>
|
---|
1190 | </script>
|
---|
1191 |
|
---|
1192 | </div><!-- wrapped div to force display to none -->
|
---|
1193 |
|
---|
1194 | </xsl:template>
|
---|
1195 |
|
---|
1196 |
|
---|
1197 | <!-- *** -->
|
---|
1198 | <!-- * Computed Data -->
|
---|
1199 | <!-- *** -->
|
---|
1200 |
|
---|
1201 |
|
---|
1202 | <xsl:template name="computed-data">
|
---|
1203 | <xsl:param name="httpCollection"/>
|
---|
1204 | <xsl:param name="assocFilePath"/>
|
---|
1205 |
|
---|
1206 | <div id="computed-turnstyle" style="margin: 6px;">
|
---|
1207 | <div style="background-image: none; background-color: rgb(80%,80%,20%);">
|
---|
1208 | Computed Data
|
---|
1209 | </div>
|
---|
1210 |
|
---|
1211 | <div class="documenttext" style="display: none;">
|
---|
1212 | <table class="metadata-stripes" style="width: 100%">
|
---|
1213 | <tbody>
|
---|
1214 | <tr>
|
---|
1215 | <td>jAudio Features</td><td><a href="{$httpCollection}/index/assoc/{$assocFilePath}/jaudio.xml">download ACE XML feature values file</a></td>
|
---|
1216 | </tr>
|
---|
1217 |
|
---|
1218 | <tr>
|
---|
1219 | <td>jSongMiner Metadata</td><td><a href="{$httpCollection}/index/assoc/{$assocFilePath}/jsongminer.xml">download ACE XML classifications file</a></td>
|
---|
1220 | </tr>
|
---|
1221 |
|
---|
1222 | </tbody>
|
---|
1223 | </table>
|
---|
1224 | </div>
|
---|
1225 | </div>
|
---|
1226 |
|
---|
1227 | <gsf:script>
|
---|
1228 | $(function(){
|
---|
1229 | transformToTurnstyleBlock("computed");
|
---|
1230 | });
|
---|
1231 | </gsf:script>
|
---|
1232 |
|
---|
1233 | </xsl:template>
|
---|
1234 |
|
---|
1235 |
|
---|
1236 |
|
---|
1237 | <xsl:template name="original-audio">
|
---|
1238 | <xsl:param name="httpCollection"/>
|
---|
1239 | <xsl:param name="assocFilePath"/>
|
---|
1240 | <xsl:param name="Audio"/>
|
---|
1241 | <xsl:param name="streamableaudio"/>
|
---|
1242 |
|
---|
1243 | <div id="original-turnstyle" style="margin: 6px;">
|
---|
1244 | <div style="background-image: none; background-color: rgb(80%,80%,20%);">
|
---|
1245 | The Original Audio
|
---|
1246 | </div>
|
---|
1247 |
|
---|
1248 | <div style="display: none;">
|
---|
1249 |
|
---|
1250 | <div>
|
---|
1251 | <audio style="width: 100%;" id="original-audio" controls="controls" >
|
---|
1252 | <!--
|
---|
1253 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.ogg" />
|
---|
1254 | -->
|
---|
1255 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/{$streamableaudio}" />
|
---|
1256 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/{$Audio}" />
|
---|
1257 | </audio>
|
---|
1258 | </div>
|
---|
1259 |
|
---|
1260 | </div>
|
---|
1261 | </div>
|
---|
1262 |
|
---|
1263 | <gsf:script>
|
---|
1264 | $(function(){
|
---|
1265 | transformToTurnstyleBlock("original");
|
---|
1266 | });
|
---|
1267 | </gsf:script>
|
---|
1268 |
|
---|
1269 |
|
---|
1270 |
|
---|
1271 | </xsl:template>
|
---|
1272 |
|
---|
1273 |
|
---|
1274 | <xsl:template name="documentContent">
|
---|
1275 | <!--
|
---|
1276 | <xsl:call-template name="init-document-xsl-vars"/>
|
---|
1277 | -->
|
---|
1278 | <!--
|
---|
1279 | declare $httpCollection = $httpPath (for better consistency with other places in Greenstone XSL files)
|
---|
1280 | -->
|
---|
1281 |
|
---|
1282 | <xsl:variable name="httpCollection">
|
---|
1283 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
1284 | </xsl:variable>
|
---|
1285 | <xsl:variable name="assocFilePath">
|
---|
1286 | <gsf:metadata name="assocfilepath" select="root"/>
|
---|
1287 | </xsl:variable>
|
---|
1288 | <xsl:variable name="Source">
|
---|
1289 | <gsf:metadata name="Source" select="root"/>
|
---|
1290 | </xsl:variable>
|
---|
1291 | <xsl:variable name="Audio">
|
---|
1292 | <gsf:switch>
|
---|
1293 | <gsf:metadata name="Audio" select="root"/>
|
---|
1294 | <gsf:when test="exists">
|
---|
1295 | <gsf:metadata name="Audio" select="root"/>
|
---|
1296 | </gsf:when>
|
---|
1297 | <gsf:otherwise>doc.ogg</gsf:otherwise>
|
---|
1298 | </gsf:switch>
|
---|
1299 | </xsl:variable>
|
---|
1300 | <xsl:variable name="streamableaudio">
|
---|
1301 | <gsf:switch>
|
---|
1302 | <gsf:metadata name="streamableaudio" select="root"/>
|
---|
1303 | <gsf:when test="exists">
|
---|
1304 | <gsf:metadata name="streamableaudio" select="root"/>
|
---|
1305 | </gsf:when>
|
---|
1306 | <gsf:otherwise>doc.mp3</gsf:otherwise>
|
---|
1307 | </gsf:switch>
|
---|
1308 | </xsl:variable>
|
---|
1309 |
|
---|
1310 | <xsl:variable name="streamablevideo">
|
---|
1311 | <gsf:metadata name="SourceFile"/>
|
---|
1312 | </xsl:variable>
|
---|
1313 |
|
---|
1314 | <div class="documenttext" id="gs-document">
|
---|
1315 |
|
---|
1316 | <div>
|
---|
1317 | <div id='media-player' style="width: 96%">
|
---|
1318 |
|
---|
1319 |
|
---|
1320 | <div class="video-player-bar">
|
---|
1321 | <div id="video-titlebar" style="background-image: none; background-color: #2E52A4; width: 97%; float: left; margin-bottom: 10px;">
|
---|
1322 | Video Display
|
---|
1323 | </div>
|
---|
1324 |
|
---|
1325 | <div id="video-area" class="documenttext"
|
---|
1326 | style="display: none; position: absolute: left: 0px; top: 0px;">
|
---|
1327 | <center>
|
---|
1328 | <video id="video" width="60%" controls="true">
|
---|
1329 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/{$streamablevideo}" />
|
---|
1330 | Your browser does not support the video tag.
|
---|
1331 | </video>
|
---|
1332 | </center>
|
---|
1333 | </div>
|
---|
1334 | </div>
|
---|
1335 |
|
---|
1336 | <div id='media-controls'>
|
---|
1337 | <div>
|
---|
1338 | <input id="progress-bar" type="range"
|
---|
1339 | min='0' max='100' step='0.01' value='0'
|
---|
1340 | style="width: 100%"/>
|
---|
1341 |
|
---|
1342 | </div>
|
---|
1343 | <div style="width: 100%;">
|
---|
1344 | <div style="float:left; padding: 8px; ">
|
---|
1345 | <button id='replay-button' class='buttonx2 replay' title='replay' onclick='replayMedia();'>Replay</button>
|
---|
1346 | <button id='play-pause-button' class='buttonx2 play' title='play/pause (or press space-bar on keyboard)' onclick='togglePlayPause();'>Play</button>
|
---|
1347 | <button id='stop-button' class='buttonx2 stop' title='stop' onclick='stopPlayer();'>Stop</button>
|
---|
1348 | </div>
|
---|
1349 | <div style="float:right; padding: 8px; ">
|
---|
1350 | <div style="display: inline; font-family: Arial,Helvetica,sans-serif; color: white">
|
---|
1351 | <span id="mediaPlayerCurrentTime">0:00.0</span>/
|
---|
1352 | <span id="mediaPlayerTotalTime">0:00.0</span>
|
---|
1353 | </div>
|
---|
1354 | <button id='volume-dec-button' class='button volume-minus' title='decrease volume' onclick="changeVolume('-');">Decrease volume</button>
|
---|
1355 | <button id='volume-inc-button' class='button volume-plus' title='increase volume' onclick="changeVolume('+');">Increase volume</button>
|
---|
1356 | <button id='mute-button' class='button mute' title='mute' onclick="toggleMute('true');">Mute</button>
|
---|
1357 | </div>
|
---|
1358 | </div>
|
---|
1359 | </div>
|
---|
1360 |
|
---|
1361 |
|
---|
1362 | <div style="clear: both;"><xsl:comment>clear floats</xsl:comment></div>
|
---|
1363 |
|
---|
1364 | <div class="playlist-bar">
|
---|
1365 | <div id="playlist-titlebar" style="background-image: none; background-color: #2E52A4; width: 97%; float: left; margin-bottom: 10px;">
|
---|
1366 | Layer Controls: Create, Edit, View
|
---|
1367 | </div>
|
---|
1368 |
|
---|
1369 | <div style="clear: both;"><xsl:comment>clear floats</xsl:comment></div>
|
---|
1370 |
|
---|
1371 | <div id="playlist-area" class="documenttext"
|
---|
1372 | style="display: none; position: absolute: left: 0px; top: 0px;">
|
---|
1373 | <!--
|
---|
1374 | <div id='media-play-list'>
|
---|
1375 | <h2>Play list</h2>
|
---|
1376 | <ul id='play-list'>
|
---|
1377 | <li><span class='play-item' onclick="loadVideo('parrots.webm', 'parrots.mp4');">Parrots</span></li>
|
---|
1378 | <li><span class='play-item' onclick="loadVideo('paddle-wheel.webm', 'paddle-wheel.mp4');">Paddle Steamer Wheel</span></li>
|
---|
1379 | <li><span class='play-item' onclick="loadVideo('grass.webm', 'grass.mp4');">Grass</span></li>
|
---|
1380 | </ul>
|
---|
1381 | </div>
|
---|
1382 | -->
|
---|
1383 |
|
---|
1384 | <div id="save-recording-popup" title="Save Recording">
|
---|
1385 | <p>Do you want to name and save this recording?</p>
|
---|
1386 |
|
---|
1387 | <form>
|
---|
1388 | <fieldset>
|
---|
1389 | <label for="name">Name</label>
|
---|
1390 | <input type="text"
|
---|
1391 | name="save-recording-name" id="save-recording-name" value="My Recording"
|
---|
1392 | class="text ui-widget-content ui-corner-all"/>
|
---|
1393 | </fieldset>
|
---|
1394 |
|
---|
1395 | <!-- Allow form submission with keyboard without duplicating the dialog button -->
|
---|
1396 | <input type="submit" tabindex="-1" style="position:absolute; top:-1000px"/>
|
---|
1397 |
|
---|
1398 | </form>
|
---|
1399 | </div>
|
---|
1400 |
|
---|
1401 | <div style="color: white;">
|
---|
1402 |
|
---|
1403 | <form style="width: 99%; margin-top: 10px; margin-bottom: 10px;">
|
---|
1404 | <fieldset>
|
---|
1405 | <legend id="mpm-legend">Popup Layers</legend>
|
---|
1406 | <input type="checkbox" name="PopupTrivia" value="PopupTrivia" />Popup Trivia<br />
|
---|
1407 | <input type="checkbox" name="Lyrics" value="Lyrics" />Lyrics<br />
|
---|
1408 | <input type="checkbox" name="MisheardLyrics" value="MisheardLyrics" />Misheard Lyrics<br />
|
---|
1409 | <input type="checkbox" name="GuitarChords" value="GuitarChords" />Play-along Guitar Chords<br />
|
---|
1410 |
|
---|
1411 | <div style="padding: 8px;">
|
---|
1412 | <button id="mpm-new-overlay"
|
---|
1413 | classXX="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary"
|
---|
1414 | style="background-color:#2E52A4; color:#CCC; width:19%; text-align: center; margin-right: 8px;">
|
---|
1415 | New Layer
|
---|
1416 | </button>
|
---|
1417 | <button id="mpm-merge-overlay"
|
---|
1418 | classXX="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary"
|
---|
1419 | style="background-color:#2E52A4; color:#CCC; width:19%; text-align: center; margin-right: 8px;">
|
---|
1420 | Merge Selected
|
---|
1421 | </button>
|
---|
1422 | <button id="mpm-split-overlay"
|
---|
1423 | classXX="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary"
|
---|
1424 | style="background-color:#2E52A4; color:#CCC; width:19%; text-align: center; margin-right: 8px;">
|
---|
1425 | Split Selected
|
---|
1426 | </button>
|
---|
1427 | <button id="mpm-edit-overlay"
|
---|
1428 | classXX="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary"
|
---|
1429 | style="background-color:#2E52A4; color:#CCC; width:19%; text-align: center; margin-right: 8px;">
|
---|
1430 | Edit Selected
|
---|
1431 | </button>
|
---|
1432 | <button id="mpm-delete-overlay"
|
---|
1433 | classXX="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary"
|
---|
1434 | style="background-color:#2E52A4; color:#CCC; width:19%; text-align: center;">
|
---|
1435 | Delete Selected
|
---|
1436 | </button>
|
---|
1437 | </div>
|
---|
1438 | </fieldset>
|
---|
1439 | </form>
|
---|
1440 |
|
---|
1441 | <form id="mpmForm" style="width:99%;">
|
---|
1442 | <fieldset>
|
---|
1443 | <legend id="mpm-legend">Video Player Mode</legend>
|
---|
1444 |
|
---|
1445 | <div id="mpm-div" class="radio-div">
|
---|
1446 |
|
---|
1447 | <div class="radio-label-combo" style="display:inline-block; width: 32%">
|
---|
1448 | <span>
|
---|
1449 | <input type="radio" id="mpm-record" name="mpm-radio" onchange="setPlaybackMode()" value="record"/>
|
---|
1450 | </span>
|
---|
1451 | <label for="mpm-record" class="radio-label">
|
---|
1452 | <span style="color: red;" title="The notes/beat you play on the instruments get recorded, and form a new layer">
|
---|
1453 | Lay down new track
|
---|
1454 | </span>
|
---|
1455 | </label>
|
---|
1456 | </div>
|
---|
1457 |
|
---|
1458 | <div class="radio-label-combo" style="display:inline-block; width: 32%">
|
---|
1459 | <span>
|
---|
1460 | <input type="radio" id="mpm-neutral" name="mpm-radio" onchange="setPlaybackMode()" value="neutral" checked="checked"/>
|
---|
1461 | </span>
|
---|
1462 | <label for="mpm-neutral" class="radio-label">
|
---|
1463 | <span style="color: orange;" title="Sit back and relax listening to the video">
|
---|
1464 | Put into Neutral
|
---|
1465 | </span>
|
---|
1466 | </label>
|
---|
1467 | </div>
|
---|
1468 |
|
---|
1469 | <div class="radio-label-combo" style="display:inline-block; width: 32%">
|
---|
1470 | <span>
|
---|
1471 | <input type="radio" id="mpm-game-on" name="mpm-radio" onchange="setPlaybackMode()" value="overlay"/>
|
---|
1472 | </span>
|
---|
1473 | <label for="mpm-game-on" class="radio-label">
|
---|
1474 | <span style="color: green;" title="When you play the video, try to play one of the instruments below to match the notes in the chosen layers on display. Get it right, and a rich rendition of the pop song is played, otherwise it sounds quite and tinny">
|
---|
1475 | Game on!
|
---|
1476 | </span>
|
---|
1477 | </label>
|
---|
1478 | </div>
|
---|
1479 |
|
---|
1480 | </div>
|
---|
1481 | </fieldset>
|
---|
1482 | </form>
|
---|
1483 |
|
---|
1484 |
|
---|
1485 | <form id="pamForm" style="width: 99%; margin-top: 10px; margin-bottom: 10px; ">
|
---|
1486 | <fieldset>
|
---|
1487 | <legend id="pam-legend">Play Along Layers: Game On!</legend>
|
---|
1488 | <input type="checkbox" name="PianoHero" value="PianoHero" />Piano Hero<br />
|
---|
1489 | <input type="checkbox" name="DrumHero" value="DrumHero" />Drum-beat Hero<br />
|
---|
1490 |
|
---|
1491 | <div style="padding: 8px;">
|
---|
1492 | <button id="pam-display-overlay" style="background-color:#2E52A4; color:#CCC; width:19%; text-align: center; margin-right: 8px;">
|
---|
1493 | Display Selected
|
---|
1494 | </button>
|
---|
1495 | <button id="pam-merge-overlay" style="background-color:#2E52A4; color:#CCC; width:19%; text-align: center; margin-right: 8px;">
|
---|
1496 | Merge Selected
|
---|
1497 | </button>
|
---|
1498 | <button id="pam-split-overlay" style="background-color:#2E52A4; color:#CCC; width:19%; text-align: center; margin-right: 8px;">
|
---|
1499 | Split Selected
|
---|
1500 | </button>
|
---|
1501 | <button id="pam-edit-overlay" style="background-color:#2E52A4; color:#CCC; width:19%; text-align: center; margin-right: 8px;">
|
---|
1502 | Edit Selected
|
---|
1503 | </button>
|
---|
1504 | <button id="pam-delete-overlay"
|
---|
1505 | style="background-color:#2E52A4; color:#CCC; width:19%; text-align: center;"
|
---|
1506 | onclick="return pamDelete()">
|
---|
1507 | Delete Selected
|
---|
1508 | </button>
|
---|
1509 | </div>
|
---|
1510 | </fieldset>
|
---|
1511 | </form>
|
---|
1512 |
|
---|
1513 |
|
---|
1514 | </div>
|
---|
1515 |
|
---|
1516 | </div>
|
---|
1517 | </div>
|
---|
1518 |
|
---|
1519 |
|
---|
1520 | <div style="clear: both;"><xsl:comment>clear floats</xsl:comment></div>
|
---|
1521 |
|
---|
1522 | <div class="analysis-bar">
|
---|
1523 | <div id="analysis-titlebar" style="background-image: none; background-color: #2E52A4; width: 97%; float: left; margin-bottom: 10px;">
|
---|
1524 | Game On
|
---|
1525 | </div>
|
---|
1526 |
|
---|
1527 | <div id="analysis-area" class="documenttext"
|
---|
1528 | style="display: none; position: absolute: left: 0px; top: 0px;">
|
---|
1529 | <div style="width:97.7%; height: 500px; margin: 6px; background-colorXX: white">
|
---|
1530 | <div id="gameOnPaper" width="100%" height="445"><xsl:comment>filler</xsl:comment></div>
|
---|
1531 | <!--
|
---|
1532 | <svg id="gameOnPaper" xmlns="http://www.w3.org/2000/svg" version="1.1"
|
---|
1533 | width="100%" height="445"
|
---|
1534 | XXviewBox="0 0 100 100" XXpreserveAspectRatio="xMidYMid slice"
|
---|
1535 | XXstyle="width:100%; height:100%;" styleXX="position:absolute; top:0; left:0; z-index:-1;">
|
---|
1536 |
|
---|
1537 | <rect x="0" y="0" width="100" height="100" style="fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)" />
|
---|
1538 | <xsl:comment>filler</xsl:comment>
|
---|
1539 | </svg>
|
---|
1540 | -->
|
---|
1541 | </div>
|
---|
1542 |
|
---|
1543 | </div>
|
---|
1544 | </div>
|
---|
1545 |
|
---|
1546 |
|
---|
1547 | <div style="clear: both;"><xsl:comment>clear floats</xsl:comment></div>
|
---|
1548 |
|
---|
1549 | <div class="turnstyle-bar">
|
---|
1550 |
|
---|
1551 | <div id="piano-titlebar"
|
---|
1552 | style="background-image: none; background-color: #2E52A4; width: 30%; float: left; margin-right: 14px;">
|
---|
1553 | Piano
|
---|
1554 | </div>
|
---|
1555 |
|
---|
1556 | <div id="drumkit-titlebar"
|
---|
1557 | style="background-image: none; background-color: #2E52A4; width: 30%; float: left; margin-right: 14px;">
|
---|
1558 | Drums
|
---|
1559 | </div>
|
---|
1560 |
|
---|
1561 | <div id="guitar-titlebar" style="background-image: none; background-color: #2E52A4; width: 30%; float: left;">
|
---|
1562 | Guitar
|
---|
1563 | </div>
|
---|
1564 |
|
---|
1565 |
|
---|
1566 | <div style="clear: both;"><xsl:comment>clear floats</xsl:comment></div>
|
---|
1567 |
|
---|
1568 | <div style="position: relative;">
|
---|
1569 |
|
---|
1570 | <div id="piano-area" class="documenttext" style="display: none; position: absolute: left: 0px; top: 0px;">
|
---|
1571 | <div id='jquery-piano'>
|
---|
1572 | <div ID="keyboard" class="keyboard-holder"><xsl:comment>div for piano keyboard</xsl:comment></div>
|
---|
1573 |
|
---|
1574 | <div class="keyboard-options" style="color: white">
|
---|
1575 |
|
---|
1576 | <div style="float: left;">
|
---|
1577 | General Midi:
|
---|
1578 | <select ID="midi-sound" onchange="changeGMInstrument(this[selectedIndex].value)">
|
---|
1579 | <option value="0" selected="selected">Acoustic Grand Piano</option>
|
---|
1580 | <option value="19">Church Organ</option>
|
---|
1581 | <option value="24">Acoustic Guitar Nylon</option>
|
---|
1582 | <option value="30">Distortion Guitar</option>
|
---|
1583 | </select>
|
---|
1584 | </div>
|
---|
1585 |
|
---|
1586 | <div style="float: left;">
|
---|
1587 | Range [C<span ID="OCTAVE_LOWER">3</span>-B<span ID="OCTAVE_UPPER">5</span>]
|
---|
1588 | <input type="button" ID="-_OCTAVE" value="-" />
|
---|
1589 | <input type="button" ID="+_OCTAVE" value="+" /><br />
|
---|
1590 | <i>(Use left/right arrows to adjust with keyboard)</i>
|
---|
1591 | </div>
|
---|
1592 |
|
---|
1593 | <div style="clear: both;"><xsl:comment>clear floats</xsl:comment></div>
|
---|
1594 |
|
---|
1595 | <!--
|
---|
1596 | Sound
|
---|
1597 | <select ID="sound">
|
---|
1598 | <option value="0" selected="selected">Keyboard</option>
|
---|
1599 | <option value="1" selected="selected">Organ</option>
|
---|
1600 | <option value="2">Acoustic Guitar</option>
|
---|
1601 | <option value="3">EDM, bro!</option>
|
---|
1602 | </select>
|
---|
1603 | -->
|
---|
1604 | </div>
|
---|
1605 |
|
---|
1606 |
|
---|
1607 | </div>
|
---|
1608 |
|
---|
1609 | </div>
|
---|
1610 |
|
---|
1611 | <style>
|
---|
1612 | .drumcontainer {
|
---|
1613 | position: absolute;
|
---|
1614 | top: 50%;
|
---|
1615 | left: 50%;
|
---|
1616 | transform: translateX(-50%) translateY(-50%);
|
---|
1617 | -webkit-transform: translateX(-50%) translateY(-50%);
|
---|
1618 | font-size: 100%;
|
---|
1619 | color: #888888;
|
---|
1620 | pointer-events: none;
|
---|
1621 | }
|
---|
1622 | </style>
|
---|
1623 | <div id="drumkit-area" class="documenttext" style="display: none; position: absolute: left: 0px; top: 0px;">
|
---|
1624 | <div id='jquery-drums' style="padding: 8px;">
|
---|
1625 | <center>
|
---|
1626 | <div style="display:inline-block;">
|
---|
1627 | <div style="position: relative;">
|
---|
1628 | <img style="position: relative;" width="148" height="148"
|
---|
1629 | src="{$httpCollection}/images/cymbal-overview.png" class="drum" id="drum1" border="0" />
|
---|
1630 | <div class="drumcontainer" style="color: #555555">
|
---|
1631 | <span style="white-space: nowrap;"><Shift-C></span>
|
---|
1632 | </div>
|
---|
1633 | </div>
|
---|
1634 | </div>
|
---|
1635 | <div style="display:inline-block;">
|
---|
1636 | <div style="position: relative;">
|
---|
1637 | <img style="position: relative;" width="148" height="144"
|
---|
1638 | src="{$httpCollection}/images/drum-overview.png" class="drum" id="drum3" border="0" />
|
---|
1639 | <div class="drumcontainer" >
|
---|
1640 | <span style="white-space: nowrap;"><Shift-V></span>
|
---|
1641 | </div>
|
---|
1642 | </div>
|
---|
1643 | </div>
|
---|
1644 | <div style="display:inline-block;">
|
---|
1645 | <div style="position: relative;">
|
---|
1646 | <img style="position: relative;" width="167" height="163"
|
---|
1647 | src="{$httpCollection}/images/drum-overview.png" class="drum" id="drum2" border="0" />
|
---|
1648 | <div class="drumcontainer" >
|
---|
1649 | <span style="white-space: nowrap;"><Shift-B></span>
|
---|
1650 | </div>
|
---|
1651 | </div>
|
---|
1652 | </div>
|
---|
1653 | <div style="display:inline-block;">
|
---|
1654 | <div style="position: relative;">
|
---|
1655 | <img style="position: relative;" width="197" height="192"
|
---|
1656 | src="{$httpCollection}/images/drum-overview.png" class="drum" id="drum4" border="0" />
|
---|
1657 | <div class="drumcontainer" >
|
---|
1658 | <span style="white-space: nowrap;"><Shift-N></span>
|
---|
1659 | </div>
|
---|
1660 | </div>
|
---|
1661 | </div>
|
---|
1662 | <div style="display:inline-block;">
|
---|
1663 | <div style="position: relative;">
|
---|
1664 | <img style="position: relative;" width="216" height="211"
|
---|
1665 | src="{$httpCollection}/images/drum-overview.png" class="drum" id="drum5" border="0" />
|
---|
1666 | <div class="drumcontainer" >
|
---|
1667 | <span style="white-space: nowrap;"> <Space-M></span>
|
---|
1668 | </div>
|
---|
1669 | </div>
|
---|
1670 | </div>
|
---|
1671 | </center>
|
---|
1672 | </div>
|
---|
1673 |
|
---|
1674 | </div>
|
---|
1675 |
|
---|
1676 |
|
---|
1677 | <div id="guitar-area" class="documenttext" style="display: none; position: absolute: left: 0px; top: 0px;">
|
---|
1678 | <div style="color: white;">
|
---|
1679 | <div id="jamWrapper">
|
---|
1680 | <div id="jamStage">
|
---|
1681 | <xsl:comment><!--jamStage--></xsl:comment>
|
---|
1682 | </div>
|
---|
1683 | <div id="jamPlate">
|
---|
1684 | <xsl:comment><!--jamPlate--></xsl:comment>
|
---|
1685 | </div>
|
---|
1686 | <canvas id="jamStrings" width="750px" height="200px">
|
---|
1687 | Your browser does not support the Canvas element
|
---|
1688 | </canvas>
|
---|
1689 | </div>
|
---|
1690 | </div>
|
---|
1691 |
|
---|
1692 |
|
---|
1693 | <div style="position: relative; background-color: white;">
|
---|
1694 | <div style="display:inline-block; width: 150px; height: 200px;">
|
---|
1695 | <form style="position: absolute; top: 60px; left: 10px;">
|
---|
1696 |
|
---|
1697 | <fieldset>
|
---|
1698 | <legend id="clm-legend">Show Chords</legend>
|
---|
1699 |
|
---|
1700 | <div id="clm-div" class="radio-div">
|
---|
1701 |
|
---|
1702 | <div class="radio-label-combo">
|
---|
1703 | <span>
|
---|
1704 | <input type="radio" id="clm-maj" name="clm-radio" onchange="setChordLineupMode()" value="Maj"
|
---|
1705 | checked="checked"/>
|
---|
1706 | </span>
|
---|
1707 | <label for="clm-maj" class="radio-label">
|
---|
1708 | <span>
|
---|
1709 | Major
|
---|
1710 | </span>
|
---|
1711 | </label>
|
---|
1712 | </div>
|
---|
1713 |
|
---|
1714 | <div class="radio-label-combo">
|
---|
1715 | <span>
|
---|
1716 | <input type="radio" id="clm-maj" name="clm-radio" onchange="setChordLineupMode()" value="Maj"/>
|
---|
1717 | </span>
|
---|
1718 | <label for="clm-maj" class="radio-label">
|
---|
1719 | <span>
|
---|
1720 | Minor
|
---|
1721 | </span>
|
---|
1722 | </label>
|
---|
1723 | </div>
|
---|
1724 | </div>
|
---|
1725 | </fieldset>
|
---|
1726 | </form>
|
---|
1727 | </div>
|
---|
1728 |
|
---|
1729 | <div id="mytab" style="display:inline-block; height: 160px; width: 780px;">
|
---|
1730 | <svg class="graph" xmlns = "http://www.w3.org/2000/svg" width="100%" height="100%">
|
---|
1731 | <g id="scaled-mytab-group" transform="scale(0.5,0.6)">
|
---|
1732 | <foreignobject id="scaled-mytab" width="2000px" height="300px"><xsl:comment>filler</xsl:comment></foreignobject>
|
---|
1733 | </g>
|
---|
1734 | </svg>
|
---|
1735 | </div>
|
---|
1736 | </div>
|
---|
1737 |
|
---|
1738 |
|
---|
1739 | </div>
|
---|
1740 |
|
---|
1741 | </div>
|
---|
1742 |
|
---|
1743 | <div style="position: absolute; top: -300px; background-color: white;">
|
---|
1744 | <style>
|
---|
1745 | .chordLineup {
|
---|
1746 | -webkit-transform-style: preserve-3d;
|
---|
1747 | -moz-transform-style: preserve-3d;
|
---|
1748 | transform-style: preserve-3d;
|
---|
1749 | }
|
---|
1750 |
|
---|
1751 | .chordLineupBlock {
|
---|
1752 | display: inline-block;
|
---|
1753 | }
|
---|
1754 |
|
---|
1755 | .chordLineupBlockVerticalCenter {
|
---|
1756 | position: relative;
|
---|
1757 | top: 50%;
|
---|
1758 | transform: translataeY(-50%);
|
---|
1759 | -webkit-transform: translataeY(-50%);
|
---|
1760 | -ms-transform: translataeY(-50%);
|
---|
1761 | }
|
---|
1762 |
|
---|
1763 | </style>
|
---|
1764 | <div id="offscreen-jtab-chord-lineup">
|
---|
1765 |
|
---|
1766 | <div id="offscreen-jtab-chord-C" class="chordLineupBlock">
|
---|
1767 | <xsl:comment>filler</xsl:comment>
|
---|
1768 | </div>
|
---|
1769 |
|
---|
1770 | <div class="chordLineupBlock">
|
---|
1771 | <div id="offscreen-jtab-chord-Db">
|
---|
1772 | <xsl:comment>filler</xsl:comment>
|
---|
1773 | </div>
|
---|
1774 | <div id="offscreen-jtab-chord-Cs">
|
---|
1775 | <xsl:comment>filler</xsl:comment>
|
---|
1776 | </div>
|
---|
1777 | </div>
|
---|
1778 |
|
---|
1779 | <div id="offscreen-jtab-chord-D" class="chordLineupBlock">
|
---|
1780 | <xsl:comment>filler</xsl:comment>
|
---|
1781 | </div>
|
---|
1782 |
|
---|
1783 | <div class="chordLineupBlock">
|
---|
1784 | <div id="offscreen-jtab-chord-Eb">
|
---|
1785 | <xsl:comment>filler</xsl:comment>
|
---|
1786 | </div>
|
---|
1787 | <div id="offscreen-jtab-chord-Ds">
|
---|
1788 | <xsl:comment>filler</xsl:comment>
|
---|
1789 | </div>
|
---|
1790 | </div>
|
---|
1791 |
|
---|
1792 | <div id="offscreen-jtab-chord-E" class="chordLineupBlock">
|
---|
1793 | <xsl:comment>filler</xsl:comment>
|
---|
1794 | </div>
|
---|
1795 |
|
---|
1796 | <div id="offscreen-jtab-chord-F" class="chordLineupBlock">
|
---|
1797 | <xsl:comment>filler</xsl:comment>
|
---|
1798 | </div>
|
---|
1799 |
|
---|
1800 | <div class="chordLineupBlock">
|
---|
1801 | <div id="offscreen-jtab-chord-Gb">
|
---|
1802 | <xsl:comment>filler</xsl:comment>
|
---|
1803 | </div>
|
---|
1804 | <div id="offscreen-jtab-chord-Fs">
|
---|
1805 | <xsl:comment>filler</xsl:comment>
|
---|
1806 | </div>
|
---|
1807 | </div>
|
---|
1808 |
|
---|
1809 | <div id="offscreen-jtab-chord-G" class="chordLineupBlock">
|
---|
1810 | <xsl:comment>filler</xsl:comment>
|
---|
1811 | </div>
|
---|
1812 |
|
---|
1813 | <div class="chordLineupBlock">
|
---|
1814 | <div id="offscreen-jtab-chord-Ab">
|
---|
1815 | <xsl:comment>filler</xsl:comment>
|
---|
1816 | </div>
|
---|
1817 | <div id="offscreen-jtab-chord-Gs">
|
---|
1818 | <xsl:comment>filler</xsl:comment>
|
---|
1819 | </div>
|
---|
1820 | </div>
|
---|
1821 |
|
---|
1822 | <div id="offscreen-jtab-chord-A" class="chordLineupBlock">
|
---|
1823 | <xsl:comment>filler</xsl:comment>
|
---|
1824 | </div>
|
---|
1825 |
|
---|
1826 | <div class="chordLineupBlock">
|
---|
1827 | <div id="offscreen-jtab-chord-Bb">
|
---|
1828 | <xsl:comment>filler</xsl:comment>
|
---|
1829 | </div>
|
---|
1830 | <div id="offscreen-jtab-chord-As">
|
---|
1831 | <xsl:comment>filler</xsl:comment>
|
---|
1832 | </div>
|
---|
1833 | </div>
|
---|
1834 |
|
---|
1835 | <div id="offscreen-jtab-chord-B" class="chordLineupBlock">
|
---|
1836 | <xsl:comment>filler</xsl:comment>
|
---|
1837 | </div>
|
---|
1838 |
|
---|
1839 | </div>
|
---|
1840 |
|
---|
1841 | <gsf:script>
|
---|
1842 | $(document).ready(function() {
|
---|
1843 |
|
---|
1844 | jtab.render($('#offscreen-jtab-chord-C') ,'C');
|
---|
1845 | jtab.render($('#offscreen-jtab-chord-Cs'),'C#');
|
---|
1846 | jtab.render($('#offscreen-jtab-chord-Db'),'Db');
|
---|
1847 | jtab.render($('#offscreen-jtab-chord-D') ,'D');
|
---|
1848 | jtab.render($('#offscreen-jtab-chord-Ds'),'D#');
|
---|
1849 | jtab.render($('#offscreen-jtab-chord-Eb'),'Eb');
|
---|
1850 | jtab.render($('#offscreen-jtab-chord-F') ,'F');
|
---|
1851 | jtab.render($('#offscreen-jtab-chord-Fs'),'F#');
|
---|
1852 | jtab.render($('#offscreen-jtab-chord-Gb'),'Gb');
|
---|
1853 | jtab.render($('#offscreen-jtab-chord-G') ,'G');
|
---|
1854 | jtab.render($('#offscreen-jtab-chord-Gs'),'G#');
|
---|
1855 | jtab.render($('#offscreen-jtab-chord-Ab'),'Ab');
|
---|
1856 | jtab.render($('#offscreen-jtab-chord-A') ,'A');
|
---|
1857 | jtab.render($('#offscreen-jtab-chord-As'),'A#');
|
---|
1858 | jtab.render($('#offscreen-jtab-chord-Bb'),'Bb');
|
---|
1859 | jtab.render($('#offscreen-jtab-chord-B') ,'B');
|
---|
1860 |
|
---|
1861 | $('#scaled-mytab').append($('#offscreen-jtab-chord-lineup'));
|
---|
1862 |
|
---|
1863 | });
|
---|
1864 | </gsf:script>
|
---|
1865 | </div>
|
---|
1866 |
|
---|
1867 | <div style="clear: both;"><xsl:comment>clear floats</xsl:comment></div>
|
---|
1868 |
|
---|
1869 | </div>
|
---|
1870 |
|
---|
1871 |
|
---|
1872 |
|
---|
1873 |
|
---|
1874 | <script>
|
---|
1875 | <xsl:text disable-output-escaping="yes">
|
---|
1876 | $(function(){
|
---|
1877 | transformToTurnstyleBlock("video");
|
---|
1878 | transformToTurnstyleBlock("playlist");
|
---|
1879 |
|
---|
1880 | transformToTurnstyleBlock("piano");
|
---|
1881 | transformToTurnstyleBlock("drumkit");
|
---|
1882 | transformToTurnstyleBlock("guitar");
|
---|
1883 |
|
---|
1884 | transformToTurnstyleBlock("analysis");
|
---|
1885 |
|
---|
1886 | $('#video-openclose').trigger("click");
|
---|
1887 |
|
---|
1888 | });
|
---|
1889 | var piano_keyboard = new AudioSynthView();
|
---|
1890 | piano_keyboard.draw();
|
---|
1891 | </xsl:text>
|
---|
1892 | </script>
|
---|
1893 |
|
---|
1894 | </div>
|
---|
1895 |
|
---|
1896 | <div style="color: white">
|
---|
1897 | <!--
|
---|
1898 | Sound
|
---|
1899 | -->
|
---|
1900 | x
|
---|
1901 | </div>
|
---|
1902 |
|
---|
1903 | </div>
|
---|
1904 |
|
---|
1905 | <xsl:call-template name="audio-icon-cache"/>
|
---|
1906 |
|
---|
1907 | <hr/>
|
---|
1908 |
|
---|
1909 | </div>
|
---|
1910 | </xsl:template>
|
---|
1911 |
|
---|
1912 |
|
---|
1913 |
|
---|
1914 | <xsl:template name="song-ul">
|
---|
1915 |
|
---|
1916 | <xsl:variable name="httpCollection">
|
---|
1917 | <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
|
---|
1918 | </xsl:variable>
|
---|
1919 | <xsl:variable name="assocFilePath">
|
---|
1920 | <gsf:metadata name="assocfilepath" select="root"/>
|
---|
1921 | </xsl:variable>
|
---|
1922 | <xsl:variable name="Source">
|
---|
1923 | <gsf:metadata name="Source" select="root"/>
|
---|
1924 | </xsl:variable>
|
---|
1925 | <xsl:variable name="Audio">
|
---|
1926 | <gsf:switch>
|
---|
1927 | <gsf:metadata name="Audio" select="root"/>
|
---|
1928 | <gsf:when test="exists">
|
---|
1929 | <gsf:metadata name="Audio" select="root"/>
|
---|
1930 | </gsf:when>
|
---|
1931 | <gsf:otherwise>doc.ogg</gsf:otherwise>
|
---|
1932 | </gsf:switch>
|
---|
1933 | </xsl:variable>
|
---|
1934 | <xsl:variable name="streamableaudio">
|
---|
1935 | <gsf:switch>
|
---|
1936 | <gsf:metadata name="streamableaudio" select="root"/>
|
---|
1937 | <gsf:when test="exists">
|
---|
1938 | <gsf:metadata name="streamableaudio" select="root"/>
|
---|
1939 | </gsf:when>
|
---|
1940 | <gsf:otherwise>doc.mp3</gsf:otherwise>
|
---|
1941 | </gsf:switch>
|
---|
1942 | </xsl:variable>
|
---|
1943 |
|
---|
1944 | <xsl:variable name="streamablevideo">
|
---|
1945 | <gsf:metadata name="Source"/>
|
---|
1946 | </xsl:variable>
|
---|
1947 |
|
---|
1948 | <gsf:variable name="cgiargFrameOffset">
|
---|
1949 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameOffset']/@value"/>
|
---|
1950 | </gsf:variable>
|
---|
1951 | <gsf:variable name="cgiargFrameLength">
|
---|
1952 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.frameLength']/@value"/>
|
---|
1953 | </gsf:variable>
|
---|
1954 | <xsl:variable name="cgiargYScaleSimImg">
|
---|
1955 | <xsl:choose>
|
---|
1956 | <xsl:when test="/page/pageRequest/paramList/param[@name='p.yScaleSimImg']/@value != ''">
|
---|
1957 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.yScaleSimImg']/@value"/>
|
---|
1958 | </xsl:when>
|
---|
1959 | <xsl:otherwise>0.5</xsl:otherwise>
|
---|
1960 | </xsl:choose>
|
---|
1961 | </xsl:variable>
|
---|
1962 |
|
---|
1963 | <!--
|
---|
1964 | CAA = Content Analysis Algorithm
|
---|
1965 | -->
|
---|
1966 | <xsl:variable name="cgiargCAAlgorithm">
|
---|
1967 | <xsl:choose>
|
---|
1968 | <xsl:when test="/page/pageRequest/paramList/param[@name='p.caAlgorithm']/@value != ''">
|
---|
1969 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.caAlgorithm']/@value"/>
|
---|
1970 | </xsl:when>
|
---|
1971 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1972 | </xsl:choose>
|
---|
1973 | </xsl:variable>
|
---|
1974 |
|
---|
1975 |
|
---|
1976 | <!--
|
---|
1977 | ***
|
---|
1978 | -->
|
---|
1979 | <!--
|
---|
1980 | Main Audio Player
|
---|
1981 | -->
|
---|
1982 | <!--
|
---|
1983 | ***
|
---|
1984 | -->
|
---|
1985 | <ul class="playlist">
|
---|
1986 | <li class="rounded">
|
---|
1987 | <gsf:script src="{$httpCollection}/script/hybrid-audio-player.js"/>
|
---|
1988 | <a href="{$httpCollection}/index/assoc/{$assocFilePath}/{$streamableaudio}" id="mysong" onclick="togglePlayVisual(document.getElementById('mainPlayButton'))" style="padding-bottom: 2px;">
|
---|
1989 | <span><img height="32" id="mainPlayButton" onclick="var event = arguments[0] || window.event; togglePlay(event,this)" onmouseout="playHighlightOff(this)" onmouseover="playHighlightOn(this)" src="ext/diy-audio-player/images/play32.png" style="vertical-align: middle;" width="32"/>Play/Pause<span id="extraPlayText"/></span>
|
---|
1990 | </a>
|
---|
1991 | <gsf:script src="ext/diy-audio-player/script/audioDB-play.js"/>
|
---|
1992 | <xsl:choose>
|
---|
1993 | <xsl:when test="($cgiargFrameOffset != '-1') and ($cgiargFrameOffset != '')">
|
---|
1994 | <div style="background-color: rgb(40%,40%,20%)">
|
---|
1995 | <script type="text/javascript">
|
---|
1996 | <xsl:text disable-output-escaping="yes">var frameOffsetStr=gs.variables.cgiargFrameOffset;
|
---|
1997 | var frameLength=gs.variables.cgiargFrameLength;</xsl:text>
|
---|
1998 | </script>
|
---|
1999 | <svg height="24" id="svgAudioDBSegments" onLoadXX="svgAudioDBInit()" version="1.1" width="100%" xmlns="http://www.w3.org/2000/svg">
|
---|
2000 | </svg> </div>
|
---|
2001 | </xsl:when>
|
---|
2002 | </xsl:choose>
|
---|
2003 | <xsl:call-template name="structuredAudioPlayerBlock"/>
|
---|
2004 | <xsl:call-template name="processingPopup"/>
|
---|
2005 | <div id="doublePlay" style="width: 100%; display: none;">
|
---|
2006 | <script type="text/javascript">
|
---|
2007 | <xsl:text disable-output-escaping="yes">// At time of writing this code, this needs to be an OGG file to work in Firefox
|
---|
2008 | var source = "</xsl:text>
|
---|
2009 | <gsf:metadata name="Audio" select="root"/>
|
---|
2010 | <xsl:text disable-output-escaping="yes">";
|
---|
2011 |
|
---|
2012 | var self_sim_png = source.replace(/\.(ogg|mp3|wav)$/,".png");
|
---|
2013 | var collect = "</xsl:text>
|
---|
2014 | <xsl:value-of select="/page/pageResponse/collection/@name"/>
|
---|
2015 | <xsl:text disable-output-escaping="yes">";
|
---|
2016 | var site = "</xsl:text>
|
---|
2017 | <xsl:value-of select="$site_name"/>
|
---|
2018 | <xsl:text disable-output-escaping="yes">";</xsl:text>
|
---|
2019 | </script>
|
---|
2020 | <gsf:script src="ext/diy-audio-player/script/similarity-matrix-play.js"/>
|
---|
2021 | <audio controls="controls" id="leftsong" style="width: 49%;">
|
---|
2022 | <!--
|
---|
2023 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.ogg" />
|
---|
2024 | -->
|
---|
2025 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/{$streamableaudio}"/>
|
---|
2026 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/{$Audio}"/>
|
---|
2027 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.wav"/>
|
---|
2028 | </audio>
|
---|
2029 | <audio controls="controls" id="rightsong" style="width: 49%;">
|
---|
2030 | <!--
|
---|
2031 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.ogg" />
|
---|
2032 | -->
|
---|
2033 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/{$streamableaudio}"/>
|
---|
2034 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/{$Audio}"/>
|
---|
2035 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.wav"/>
|
---|
2036 | </audio>
|
---|
2037 | </div>
|
---|
2038 | <!--
|
---|
2039 | Real Time Analysis (RTA) audio
|
---|
2040 | -->
|
---|
2041 | <div style="width: 100%;">
|
---|
2042 | <audio id="rta-audio-element" style="width: 100%;">
|
---|
2043 | <!--
|
---|
2044 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.ogg"/>
|
---|
2045 | -->
|
---|
2046 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/{$streamableaudio}"/>
|
---|
2047 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/{$Audio}"/>
|
---|
2048 | <source src="{$httpCollection}/index/assoc/{$assocFilePath}/doc.wav"/>
|
---|
2049 | </audio>
|
---|
2050 | </div>
|
---|
2051 | <!--
|
---|
2052 | <xsl:call-template name="workflow-block"/>
|
---|
2053 | -->
|
---|
2054 | <div id="controlMarker">
|
---|
2055 | <xsl:comment> filler</xsl:comment>
|
---|
2056 | </div>
|
---|
2057 | <span class="ui-state-default ui-corner-top" id="overlayNewNotes" style="font-size:90%; padding: 3px; cursor:pointer;">New Annotation</span>
|
---|
2058 | <div id="svg-canvas-overlay" style="position: relative">
|
---|
2059 | <!--
|
---|
2060 | drawing canvas
|
---|
2061 | -->
|
---|
2062 | <div style="width: 100%; position: absolute; left: 0px; top: 0px;">
|
---|
2063 | <div style="position: relative">
|
---|
2064 | <div>
|
---|
2065 | <!--
|
---|
2066 | **** better if 100% width, but issue with JS reading these values ???
|
---|
2067 | -->
|
---|
2068 | <canvas height="494" id="freq-plot" style="background-color: #cccccc;" width="941"/>
|
---|
2069 | </div>
|
---|
2070 | </div>
|
---|
2071 | </div>
|
---|
2072 | <div style="width: 100%; position: absolute; left: 0px; top: 0px;">
|
---|
2073 | <div style="position: relative">
|
---|
2074 | <div>
|
---|
2075 | <!--
|
---|
2076 | **** better if 100% width, but issue with JS reading these values ???
|
---|
2077 | -->
|
---|
2078 | <canvas height="494" id="freq-plot-labels" style="background-color: transparent" width="941"/>
|
---|
2079 | </div>
|
---|
2080 | </div>
|
---|
2081 | </div>
|
---|
2082 | <div style="width: 100%; position: absolute; left: 0px; top: 0px; display: none;">
|
---|
2083 | <div style="position: relative">
|
---|
2084 | <div>
|
---|
2085 | <!--
|
---|
2086 | **** better if 100% width, but issue with JS reading these values ???
|
---|
2087 | -->
|
---|
2088 | <canvas height="494" id="selfsim-plot" style="background-color: #0000cc;" width="941"/>
|
---|
2089 | </div>
|
---|
2090 | </div>
|
---|
2091 | </div>
|
---|
2092 | <!--
|
---|
2093 | left/right-mix circle cursor
|
---|
2094 | -->
|
---|
2095 | <div style="background-color: transparent; position: relative; left: 0px; top: 0px;">
|
---|
2096 | <svg id="svgSimilarityPlay" onLoad="svgInitSimilarityPlay()" version="1.1" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
---|
2097 | <g id="simPlayLineGroup" transform="scale(1.0,{$cgiargYScaleSimImg})">
|
---|
2098 | <!--
|
---|
2099 | image loaded here, with yScaleSimImg applied to group
|
---|
2100 | -->
|
---|
2101 | </g> <g id="playtracker" onclick="dualPlay(evt)" onmousemove="playTrackerMove(evt)" onmouseout="playTrackerOff(evt)" style="visibility: hidden" transform="translate(0,0)">
|
---|
2102 | <circle cx="0" cy="0" fill="rgba(100%,100%,50%,0.7)" r="20" stroke="black" stroke-width="1"/>
|
---|
2103 | <circle cx="0" cy="0" fill="black" r="1" stroke="black" stroke-width="1"/>
|
---|
2104 | <g style="visibility: hidden;" transform="translate(-15,-15)">
|
---|
2105 | <image height="30" id="playtrackerBusy" width="30" xlink:href="ext/diy-audio-player/images/wait30trans.gif"/>
|
---|
2106 | </g>
|
---|
2107 | <g>
|
---|
2108 | <g transform="rotate(-90)">
|
---|
2109 | <g transform="translate(-20,-25)">
|
---|
2110 | <text id="rightTime" style="font-size: 80%;">L: secs</text>
|
---|
2111 | </g>
|
---|
2112 | </g>
|
---|
2113 | <g transform="translate(-20,30)">
|
---|
2114 | <text id="leftTime" style="font-size: 80%;">R: secs</text>
|
---|
2115 | </g>
|
---|
2116 | </g>
|
---|
2117 | </g>
|
---|
2118 | </svg>
|
---|
2119 | </div>
|
---|
2120 | <gsf:variable-array name="salami.overlayNote">
|
---|
2121 | <gsf:metadata multiple="true" name="salami.overlayNote" separator=", "/>
|
---|
2122 | </gsf:variable-array>
|
---|
2123 | <!--
|
---|
2124 | onclick="var event = arguments[0] || window.event; dualPlay(event)"
|
---|
2125 | onmousemove="var event = arguments[0] || window.event; playTrackerMove(event)"
|
---|
2126 | onmouseout="var event = arguments[0] || window.event; playTrackerOff(event)"
|
---|
2127 | -->
|
---|
2128 | <div id="noteOverlay" style="width: 100%; height: 494px; position: absolute; left: 0px; top: 0px; background-color: transparent;"> </div> <gsf:script>$(window).load(function(){
|
---|
2129 | // **** currently supressed for respooled!!!!
|
---|
2130 | //var overlayNotes = new OverlayNotes("noteOverlay","salami.overlayNote");
|
---|
2131 | //$('#overlayNewNotes').click(function() {overlayNotes.AddNote()});
|
---|
2132 | //addStatusBar();
|
---|
2133 | });</gsf:script>
|
---|
2134 | </div>
|
---|
2135 | <!--
|
---|
2136 | end of svg-canvas-overly
|
---|
2137 | -->
|
---|
2138 | <xsl:call-template name="visualization-mode-block"/>
|
---|
2139 | </li>
|
---|
2140 | </ul>
|
---|
2141 |
|
---|
2142 | </xsl:template>
|
---|
2143 |
|
---|
2144 | </xsl:stylesheet>
|
---|