diff --git a/public/InscoreTransport.html b/public/InscoreTransport.html new file mode 100644 index 00000000..e14d52e7 --- /dev/null +++ b/public/InscoreTransport.html @@ -0,0 +1,422 @@ + + + + + integrer transport to query inscore each second + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + 0 mins 00 +
+ +
+ + + Rate = 1 +
+ +
+ + + delayed of : 500ms +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ +

+ + +
+ + + + + + + + + + + + + + + + + + + + + diff --git a/public/conductor.html b/public/conductor.html new file mode 100644 index 00000000..eec6e95e --- /dev/null +++ b/public/conductor.html @@ -0,0 +1,262 @@ + + + + recuperer transport currentTime vdate + + + + + + + + + + + + + + 1 + + +vol + + + + + + + + + + + + + + + + + + +
+
+	/ITL/scene watch PLAY (
+		/ITL/scene/javascript run "send('PLAY')",
+		/ITL/scene/javascript run "storedSpeed(speed)",
+		/ITL/scene/javascript run "storedDate(speed)"
+	);
+
+	/ITL/scene watch STOP (
+		/ITL/scene/pos tempo 0,
+		/ITL/scene/pos date 0,
+		/ITL/scene/javascript run "send('STOP')",
+		/ITL/scene/javascript run "lastStop()"
+	);
+	
+	/ITL/scene watch PAUSE (
+		/ITL/scene/pos tempo 0,
+		/ITL/scene/javascript run "send('PAUSE')"
+	);
+
+	/ITL/scene watch REWIND (
+		/ITL/scene/pos tempo 0,
+		/ITL/scene/javascript run "send('REWIND')",
+		/ITL/scene/javascript run "lastTime()"
+	);
+
+
+		
+	/ITL/scene watch END ( /ITL/scene/playPanel/stop event mouseDown 0 0 );
+	
+	###############################
+	# play control
+	###############################
+	origin = 2.2;
+	alpha = 120;
+	rsrc  = 'rsrc/';
+	play  = $rsrc + 'play.png';
+	pause = $rsrc + 'pause.png';
+	rewind = $rsrc + 'rewind.png';
+	stop  = $rsrc + 'stop.png';
+	
+	/ITL/scene/playPanel set rect 0.3 0.2;
+	/ITL/scene/playPanel scale 2;	
+	/ITL/scene/playPanel color white;
+	
+	/ITL/scene/playPanel/play set img $play;
+	/ITL/scene/playPanel/stop set img $stop;
+	/ITL/scene/playPanel/pause set img $pause;
+	/ITL/scene/playPanel/play xorigin $origin;
+	/ITL/scene/playPanel/stop xorigin -$origin;
+	/ITL/scene/playPanel/pause xorigin 0;
+	/ITL/scene/playPanel/* width 1;
+	/ITL/scene/playPanel/* alpha $alpha;
+	
+	/ITL/scene/playPanel watch STOP (
+		/ITL/scene event STOP,
+		/ITL/scene/playPanel/play set img $play,
+		/ITL/scene/playPanel/play pop
+	);
+
+	/ITL/scene/playPanel watch PAUSE (
+		/ITL/scene event PAUSE,
+		/ITL/scene/playPanel/pause pop
+	);
+
+	
+	/ITL/scene/playPanel/* watch mouseEnter (/ITL/scene/playPanel/$self alpha 256);
+	/ITL/scene/playPanel/* watch mouseLeave (/ITL/scene/playPanel/$self alpha $alpha);
+	/ITL/scene/playPanel/stop watch mouseDown ( /ITL/scene/playPanel event STOP );
+	/ITL/scene/playPanel/pause watch mouseDown ( /ITL/scene/playPanel event PAUSE );
+	
+	/ITL/scene/playPanel/play watch mouseDown (
+		/ITL/scene/playPanel/play push,
+		/ITL/scene/playPanel/play set img $rewind,
+		/ITL/scene event PLAY,
+		/ITL/scene/playPanel/play watch mouseDown (
+			/ITL/scene/playPanel/play set img $play,
+			/ITL/scene event REWIND,
+			/ITL/scene/playPanel/play pop
+		)
+	);
+
+	/ITL/scene/playPanel/pause watch mouseDown (
+		/ITL/scene/playPanel/pause push,
+		/ITL/scene/playPanel/pause set img $play,
+		/ITL/scene event PAUSE,
+		/ITL/scene/playPanel/pause watch mouseDown (
+			/ITL/scene/playPanel/pause set img $play,
+			/ITL/scene event PLAY,
+			/ITL/scene/playPanel/pause pop
+		)
+	);
+	
+	/ITL/scene/playPanel watch keyDown " " (/ITL/scene/playPanel/play event mouseDown 0 0);
+	
+	###############################
+	# keyboard control
+	###############################
+	/ITL/scene watch keyDown " " ( 
+		/ITL/scene push,
+		/ITL/scene event PLAY,
+		/ITL/scene watch keyDown " " ( 
+			/ITL/scene event PAUSE,
+			/ITL/scene pop
+		)
+	);
+
+	
+	###############################
+	# time line
+	###############################
+	/ITL/scene/tl set img 'lib/time.png' ;
+	/ITL/scene/tl scale 0.5;
+	/ITL/scene/tl penWidth 1;
+	/ITL/scene/tl color white;
+	/ITL/scene/tl y -0.5;
+	/ITL/scene/tl duration 77 4;
+	
+	/ITL/scene/pos set rect 0.02 0.1;
+	/ITL/scene/pos color red;
+	/ITL/scene/sync pos tl v;
+
+	move = ( 
+		/ITL/scene/pos date '$date%f',
+		/ITL/scene/javascript run "send('vdate $date%f')",
+		/ITL/scene/javascript run "store('$date%f')"
+	);
+
+	/ITL/scene/tl watch mouseDown $move;
+	/ITL/scene/tl watch mouseMove $move;
+
+
+	
+
+ + + + + diff --git a/public/conductorold.html b/public/conductorold.html new file mode 100644 index 00000000..9e8c9cb4 --- /dev/null +++ b/public/conductorold.html @@ -0,0 +1,252 @@ + + + + Conductor + + + + + + + + + + + + + + 1 + + +vol + + + + + + + + + + + + + + + + + +
+ +
+	/ITL/scene watch PLAY (
+		/ITL/scene/javascript run "send('PLAY')",
+		/ITL/scene/javascript run "storedSpeed(speed)",
+		/ITL/scene/javascript run "storedDate(speed)"
+	);
+
+	/ITL/scene watch STOP (
+		/ITL/scene/pos tempo 0,
+		/ITL/scene/pos date 0,
+		/ITL/scene/javascript run "send('STOP')",
+		/ITL/scene/javascript run "lastStop()"
+	);
+	
+	/ITL/scene watch PAUSE (
+		/ITL/scene/pos tempo 0,
+		/ITL/scene/javascript run "send('PAUSE')"
+	);
+
+	/ITL/scene watch REWIND (
+		/ITL/scene/pos tempo 0,
+		/ITL/scene/javascript run "send('REWIND')",
+		/ITL/scene/javascript run "lastTime()"
+	);
+
+
+		
+	/ITL/scene watch END ( /ITL/scene/playPanel/stop event mouseDown 0 0 );
+	
+	###############################
+	# play control
+	###############################
+	origin = 2.2;
+	alpha = 120;
+	rsrc  = 'rsrc/';
+	play  = $rsrc + 'play.png';
+	pause = $rsrc + 'pause.png';
+	rewind = $rsrc + 'rewind.png';
+	stop  = $rsrc + 'stop.png';
+	
+	/ITL/scene/playPanel set rect 0.3 0.2;
+	/ITL/scene/playPanel scale 2;	
+	/ITL/scene/playPanel color white;
+	
+	/ITL/scene/playPanel/play set img $play;
+	/ITL/scene/playPanel/stop set img $stop;
+	/ITL/scene/playPanel/pause set img $pause;
+	/ITL/scene/playPanel/play xorigin $origin;
+	/ITL/scene/playPanel/stop xorigin -$origin;
+	/ITL/scene/playPanel/pause xorigin 0;
+	/ITL/scene/playPanel/* width 1;
+	/ITL/scene/playPanel/* alpha $alpha;
+	
+	/ITL/scene/playPanel watch STOP (
+		/ITL/scene event STOP,
+		/ITL/scene/playPanel/play set img $play,
+		/ITL/scene/playPanel/play pop
+	);
+
+	/ITL/scene/playPanel watch PAUSE (
+		/ITL/scene event PAUSE,
+		/ITL/scene/playPanel/pause pop
+	);
+
+	
+	/ITL/scene/playPanel/* watch mouseEnter (/ITL/scene/playPanel/$self alpha 256);
+	/ITL/scene/playPanel/* watch mouseLeave (/ITL/scene/playPanel/$self alpha $alpha);
+	/ITL/scene/playPanel/stop watch mouseDown ( /ITL/scene/playPanel event STOP );
+	/ITL/scene/playPanel/pause watch mouseDown ( /ITL/scene/playPanel event PAUSE );
+	
+	/ITL/scene/playPanel/play watch mouseDown (
+		/ITL/scene/playPanel/play push,
+		/ITL/scene/playPanel/play set img $rewind,
+		/ITL/scene event PLAY,
+		/ITL/scene/playPanel/play watch mouseDown (
+			/ITL/scene/playPanel/play set img $play,
+			/ITL/scene event REWIND,
+			/ITL/scene/playPanel/play pop
+		)
+	);
+
+	/ITL/scene/playPanel/pause watch mouseDown (
+		/ITL/scene/playPanel/pause push,
+		/ITL/scene/playPanel/pause set img $play,
+		/ITL/scene event PAUSE,
+		/ITL/scene/playPanel/pause watch mouseDown (
+			/ITL/scene/playPanel/pause set img $play,
+			/ITL/scene event PLAY,
+			/ITL/scene/playPanel/pause pop
+		)
+	);
+	
+	/ITL/scene/playPanel watch keyDown " " (/ITL/scene/playPanel/play event mouseDown 0 0);
+	
+	###############################
+	# keyboard control
+	###############################
+	/ITL/scene watch keyDown " " ( 
+		/ITL/scene push,
+		/ITL/scene event PLAY,
+		/ITL/scene watch keyDown " " ( 
+			/ITL/scene event PAUSE,
+			/ITL/scene pop
+		)
+	);
+
+	
+	###############################
+	# time line
+	###############################
+	/ITL/scene/tl set img 'lib/part6.png' ;
+	/ITL/scene/tl scale 0.5;
+	/ITL/scene/tl penWidth 1;
+	/ITL/scene/tl color white;
+	/ITL/scene/tl y -0.5;
+	/ITL/scene/tl duration 77 4;
+	
+	/ITL/scene/pos set rect 0.02 0.1;
+	/ITL/scene/pos color red;
+	/ITL/scene/sync pos tl v;
+
+	move = ( 
+		/ITL/scene/pos date '$date%f',
+		/ITL/scene/javascript run "send('vdate $date%f')",
+		/ITL/scene/javascript run "store('$date%f')"
+	);
+
+	/ITL/scene/tl watch mouseDown $move;
+	/ITL/scene/tl watch mouseMove $move;
+
+
+	
+
+ + + + + diff --git a/public/connect.js b/public/connect.js new file mode 100644 index 00000000..7422477c --- /dev/null +++ b/public/connect.js @@ -0,0 +1,3 @@ + +var server = "http://192.168.1.24:7200"; +// setTimeout (function() { inscore.postMessageStrStr ("/ITL/scene", "connect", server)}, 500); diff --git a/public/delay.js b/public/delay.js new file mode 100644 index 00000000..701554cb --- /dev/null +++ b/public/delay.js @@ -0,0 +1,31 @@ +var key='delay'; +let saveddelay = localStorage.getItem (key); +var delay = saveddelay ? saveddelay : 500; + +function save(val) { + delay = val; + document.getElementById('delayStr').innerText = val; + localStorage.setItem (key, val); +} + +function play(val) { + if (val) setTimeout ( function() { play(0)}, val); + else { + inscore.postMessageStrI ("/ITL/scene/score", "play", 1); + } +} + +function stop(val) { + if (val) setTimeout ( function() { stop(0) }, val); + else { + inscore.postMessageStrI ("/ITL/scene/score", "play", 0); + inscore.postMessageStrI ("/ITL/scene/score", "vdate", 0); + } +} + +function pause(val) { + if (val) setTimeout ( function() { pause(0) }, val); + else { + inscore.postMessageStrI ("/ITL/scene/score", "play", 0); + } +} diff --git a/public/delay2.js b/public/delay2.js new file mode 100644 index 00000000..9e80e23d --- /dev/null +++ b/public/delay2.js @@ -0,0 +1,10 @@ +var key='delay'; +let saveddelay = localStorage.getItem (key); +var delay = saveddelay ? saveddelay : 500; + +function save(val) { + delay = val; + document.getElementById('delayStr').innerText = val; + localStorage.setItem (key, val); +} + diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 00000000..be458250 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/fonts/LICENSE b/public/fonts/LICENSE new file mode 100644 index 00000000..e999b318 --- /dev/null +++ b/public/fonts/LICENSE @@ -0,0 +1,95 @@ +Copyright (c) 2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Carlito". + +This Font Software is licensed under the SIL Open Font License, +Version 1.1 as shown below. + +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 + +PREAMBLE The goals of the Open Font License (OFL) are to stimulate +worldwide development of collaborative font projects, to support the font +creation efforts of academic and linguistic communities, and to provide +a free and open framework in which fonts may be shared and improved in +partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. +The fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply to +any document created using the fonts or their derivatives. + + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. +This may include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components +as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting ? in part or in whole ? +any of the components of the Original Version, by changing formats or +by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer +or other person who contributed to the Font Software. + + +PERMISSION & CONDITIONS + +Permission is hereby granted, free of charge, to any person obtaining a +copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components,in + Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, + redistributed and/or sold with any software, provided that each copy + contains the above copyright notice and this license. These can be + included either as stand-alone text files, human-readable headers or + in the appropriate machine-readable metadata fields within text or + binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font + Name(s) unless explicit written permission is granted by the + corresponding Copyright Holder. This restriction only applies to the + primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font + Software shall not be used to promote, endorse or advertise any + Modified Version, except to acknowledge the contribution(s) of the + Copyright Holder(s) and the Author(s) or with their explicit written + permission. + +5) The Font Software, modified or unmodified, in part or in whole, must + be distributed entirely under this license, and must not be distributed + under any other license. The requirement for fonts to remain under + this license does not apply to any document created using the Font + Software. + + + +TERMINATION +This license becomes null and void if any of the above conditions are not met. + + + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER +DEALINGS IN THE FONT SOFTWARE. + diff --git a/public/fonts/carlito-bold-webfont.woff b/public/fonts/carlito-bold-webfont.woff new file mode 100644 index 00000000..0fb22e7c Binary files /dev/null and b/public/fonts/carlito-bold-webfont.woff differ diff --git a/public/fonts/carlito-bold-webfont.woff2 b/public/fonts/carlito-bold-webfont.woff2 new file mode 100644 index 00000000..21c8c952 Binary files /dev/null and b/public/fonts/carlito-bold-webfont.woff2 differ diff --git a/public/fonts/carlito-bolditalic-webfont.woff b/public/fonts/carlito-bolditalic-webfont.woff new file mode 100644 index 00000000..a4861f1e Binary files /dev/null and b/public/fonts/carlito-bolditalic-webfont.woff differ diff --git a/public/fonts/carlito-bolditalic-webfont.woff2 b/public/fonts/carlito-bolditalic-webfont.woff2 new file mode 100644 index 00000000..44f4ecd6 Binary files /dev/null and b/public/fonts/carlito-bolditalic-webfont.woff2 differ diff --git a/public/fonts/carlito-italic-webfont.woff b/public/fonts/carlito-italic-webfont.woff new file mode 100644 index 00000000..90e485d2 Binary files /dev/null and b/public/fonts/carlito-italic-webfont.woff differ diff --git a/public/fonts/carlito-italic-webfont.woff2 b/public/fonts/carlito-italic-webfont.woff2 new file mode 100644 index 00000000..5aa651d4 Binary files /dev/null and b/public/fonts/carlito-italic-webfont.woff2 differ diff --git a/public/fonts/carlito-regular-webfont.woff b/public/fonts/carlito-regular-webfont.woff new file mode 100644 index 00000000..5bb74dbe Binary files /dev/null and b/public/fonts/carlito-regular-webfont.woff differ diff --git a/public/fonts/carlito-regular-webfont.woff2 b/public/fonts/carlito-regular-webfont.woff2 new file mode 100644 index 00000000..c882c254 Binary files /dev/null and b/public/fonts/carlito-regular-webfont.woff2 differ diff --git a/public/fonts/fonts.css b/public/fonts/fonts.css new file mode 100644 index 00000000..51975ae6 --- /dev/null +++ b/public/fonts/fonts.css @@ -0,0 +1,43 @@ +@font-face { + font-family: 'Guido2'; + src: url('guido2-webfont.woff') format('woff'), + url('guido2-webfont.woff2') format('woff2'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: 'carlitobold'; + src: url('carlito-bold-webfont.woff2') format('woff2'), + url('carlito-bold-webfont.woff') format('woff'); + font-weight: normal; + font-style: normal; + +} + +@font-face { + font-family: 'carlitobold_italic'; + src: url('carlito-bolditalic-webfont.woff2') format('woff2'), + url('carlito-bolditalic-webfont.woff') format('woff'); + font-weight: normal; + font-style: normal; + +} + +@font-face { + font-family: 'carlitoitalic'; + src: url('carlito-italic-webfont.woff2') format('woff2'), + url('carlito-italic-webfont.woff') format('woff'); + font-weight: normal; + font-style: normal; + +} + +@font-face { + font-family: 'carlito'; + src: url('carlito-regular-webfont.woff2') format('woff2'), + url('carlito-regular-webfont.woff') format('woff'); + font-weight: normal; + font-style: normal; + +} \ No newline at end of file diff --git a/public/fonts/guido2-webfont.ttf b/public/fonts/guido2-webfont.ttf new file mode 100644 index 00000000..95109fb0 Binary files /dev/null and b/public/fonts/guido2-webfont.ttf differ diff --git a/public/fonts/guido2-webfont.woff b/public/fonts/guido2-webfont.woff new file mode 100644 index 00000000..92d4057a Binary files /dev/null and b/public/fonts/guido2-webfont.woff differ diff --git a/public/fonts/guido2-webfont.woff2 b/public/fonts/guido2-webfont.woff2 new file mode 100644 index 00000000..0ba5a19f Binary files /dev/null and b/public/fonts/guido2-webfont.woff2 differ