Debian Codegraph @

examples/kate/karaoke.kate

raw
1 /* Karaoke effects */
2 kate {
3 defs {
4 timebase 0:2.0
5 define region "r1" { percent position 10 10 size 80 15 }
6 define region "r2" { percent position 10 30 size 80 15 }
7 define region "r3" { percent position 10 50 size 80 15 }
8 define style "karaoke1" { text color 100 200 100 255 }
9 define style "karaoke2" { text color 100 100 100 255 }
10 }
11
12 event {
13 // 10 seconds
14 0:0.0 --> 0:5.00
15 region "r1"
16 style { font size 16 }
17 text "L'amour est enfant de bohème"
18 // 0 2 6 0 3 7 0 3 4 7
19 simple_timed_glyph_marker {
20 height from 24 to 40
21 pause for 0:1.0
22 glyph 2 at 1.246029
23 glyph 6 at 1.773831
24 glyph 10 at 2.337319
25 glyph 13 at 3.178846
26 glyph 17 at 3.417869
27 glyph 20 at 3.913005
28 glyph 24 at 4.434370
29 glyph 27 at 4.756512
30 }
31 motion {
32 semantics glyph pointer 1 bitmap
33 curve { linear 9 points { 0 0 1 0 2 0 3 0 4 0 3 0 2 0 1 0 0 0 } } for 1
34 periodic
35 }
36 define local bitmap { source "ball_blue.png" offset 50% 50% }
37 define local bitmap { source "ball_blue-0.92.png" offset 50% 50% }
38 define local bitmap { source "ball_blue-0.75.png" offset 50% 50% }
39 define local bitmap { source "ball_blue-0.57.png" offset 50% 50% }
40 define local bitmap { source "ball_blue-0.5.png" offset 50% 50% }
41 }
42
43 event {
44 // 10 seconds
45 0:5.0 --> 0:10.00
46 region "r2"
47 text "Il n'a jamais, jamais\nconnu de loi"
48 // 01 5 8 2 6 0 3 6 9 3
49 simple_timed_glyph_style_morph {
50 from style "karaoke1" to style "karaoke2"
51 pause for 0:1.0
52 glyph 1 at 1.297194
53 glyph 5 at 1.493468
54 glyph 8 at 1.896328
55 glyph 12 at 2.296618
56 glyph 16 at 2.485517
57 glyph 20 at 2.686412
58 glyph 23 at 2.889080
59 glyph 26 at 3.111066
60 glyph 29 at 3.544576
61 glyph 33 at 3.923537
62 }
63 }
64
65 /* simpler syntax - should be able to make templates */
66 event {
67 // 10 seconds
68 0:5.0 --> 0:10.00
69 region "r3"
70 simple_timed_glyph_style_morph {
71 from style "karaoke1" to style "karaoke2"
72 //pause for 0:1.0
73 "Il " at 1.3
74 "n'a " at 1.5
75 "ja" at 1.9
76 "mais, " at 2.3
77 "ja" at 2.5
78 "mais\n" at 2.7
79 "co" at 2.9
80 "nnu " at 3.1
81 "de " at 3.5
82 "loi" at 3.9
83 }
84 }
85 }
86