mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-21 02:51:09 +02:00
m1/curiosity-demo: sources of the "curiosity" demo clip
This commit is contained in:
parent
2d50444b1b
commit
1c5cbcab66
14
m1/curiosity-demo/Makefile
Normal file
14
m1/curiosity-demo/Makefile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
.PHONY: all clean
|
||||||
|
|
||||||
|
all: pacman.jpg ghost.jpg
|
||||||
|
|
||||||
|
pacman.jpg: pacman.xbm
|
||||||
|
xbmtopbm $< | pbmtopgm 1 1 | pgmtoppm yellow-black | \
|
||||||
|
convert - $@
|
||||||
|
|
||||||
|
ghost.jpg: ghost.xbm
|
||||||
|
xbmtopbm $< | pbmtopgm 1 1 | pgmtoppm magenta-black | \
|
||||||
|
convert - $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f pacnman.jpg ghost.jpg
|
14
m1/curiosity-demo/README
Normal file
14
m1/curiosity-demo/README
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
The following invocation of midi2osc ...
|
||||||
|
|
||||||
|
./midi2osc c8.1=c0.0 c8.2=c0.1 c9.1=c0.2 c9.2=c0.3 c0.7=c0.4 c7.7=c0.5 m1
|
||||||
|
|
||||||
|
... assigns the Faderfox LV3 controls to the M1 default MIDI
|
||||||
|
configuration (0 through 7) with pacman.fnp as follows:
|
||||||
|
|
||||||
|
Left joystick: pacman position
|
||||||
|
Right joystick: ghost position
|
||||||
|
Fader 1 (leftmost): pacman size
|
||||||
|
Fader 2 (rightmost): ghost size
|
||||||
|
|
||||||
|
The result can be seen here:
|
||||||
|
http://www.youtube.com/watch?v=JuSjp_zKarI
|
9
m1/curiosity-demo/ghost.xbm
Normal file
9
m1/curiosity-demo/ghost.xbm
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#define ghost_width 24
|
||||||
|
#define ghost_height 24
|
||||||
|
static unsigned char ghost_bits[] = {
|
||||||
|
0xe0, 0xff, 0x07, 0xf8, 0xff, 0x1f, 0xfc, 0xff, 0x3f, 0xfc, 0xff, 0x3f,
|
||||||
|
0x3e, 0xff, 0x7c, 0x1e, 0x7e, 0x78, 0x0e, 0x3c, 0x70, 0x0f, 0x3c, 0xf0,
|
||||||
|
0x0f, 0x3c, 0xf0, 0x8f, 0x3d, 0xf6, 0x8f, 0x3d, 0xf6, 0x1f, 0x7e, 0xf8,
|
||||||
|
0x3f, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0xcf, 0xcf, 0xe7, 0x87, 0x87, 0xc3, 0x83, 0x83, 0xc1, 0x83, 0x83, 0xc1};
|
16
m1/curiosity-demo/pacman.fnp
Normal file
16
m1/curiosity-demo/pacman.fnp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
imagefile1=pacman.jpg
|
||||||
|
imagefile2=ghost.jpg
|
||||||
|
decay=0.6
|
||||||
|
image1_a=0.6
|
||||||
|
image2_a=0.6
|
||||||
|
per_frame=image1_zoom=midi5*5+0.1
|
||||||
|
per_frame=image2_zoom=midi6*6+0.1
|
||||||
|
sx=1.06
|
||||||
|
sy=1.06
|
||||||
|
per_frame=cx=0.5+0.1*sin(1.82*time)
|
||||||
|
per_frame=cy=0.5+0.1*sin(0.97*time)
|
||||||
|
per_frame=rot=0.05*sin(0.4*time)
|
||||||
|
per_frame=image1_x=midi1
|
||||||
|
per_frame=image1_y=1-midi2
|
||||||
|
per_frame=image2_x=midi3
|
||||||
|
per_frame=image2_y=1-midi4
|
9
m1/curiosity-demo/pacman.xbm
Normal file
9
m1/curiosity-demo/pacman.xbm
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#define pacman_width 24
|
||||||
|
#define pacman_height 24
|
||||||
|
static unsigned char pacman_bits[] = {
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, 0xc0, 0xff, 0x01, 0xe0, 0xff, 0x03,
|
||||||
|
0xf0, 0xff, 0x07, 0xf8, 0xff, 0x07, 0xfc, 0xff, 0x03, 0xfe, 0xff, 0x01,
|
||||||
|
0xfe, 0xff, 0x00, 0xfe, 0x3f, 0x00, 0xff, 0x1f, 0x00, 0xff, 0x0f, 0x00,
|
||||||
|
0xff, 0x07, 0x00, 0xff, 0x0f, 0x00, 0xff, 0x1f, 0x00, 0xfe, 0x3f, 0x00,
|
||||||
|
0xfe, 0x7f, 0x00, 0xfe, 0xff, 0x01, 0xfc, 0xff, 0x03, 0xf8, 0xff, 0x07,
|
||||||
|
0xf0, 0xff, 0x07, 0xe0, 0xff, 0x03, 0xc0, 0xff, 0x01, 0x00, 0x3e, 0x00};
|
Loading…
Reference in New Issue
Block a user