diff --git a/m1/curiosity-demo/Makefile b/m1/curiosity-demo/Makefile new file mode 100644 index 0000000..412f43f --- /dev/null +++ b/m1/curiosity-demo/Makefile @@ -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 diff --git a/m1/curiosity-demo/README b/m1/curiosity-demo/README new file mode 100644 index 0000000..78d5d99 --- /dev/null +++ b/m1/curiosity-demo/README @@ -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 diff --git a/m1/curiosity-demo/ghost.xbm b/m1/curiosity-demo/ghost.xbm new file mode 100644 index 0000000..a44bafd --- /dev/null +++ b/m1/curiosity-demo/ghost.xbm @@ -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}; diff --git a/m1/curiosity-demo/pacman.fnp b/m1/curiosity-demo/pacman.fnp new file mode 100644 index 0000000..fed54eb --- /dev/null +++ b/m1/curiosity-demo/pacman.fnp @@ -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 \ No newline at end of file diff --git a/m1/curiosity-demo/pacman.xbm b/m1/curiosity-demo/pacman.xbm new file mode 100644 index 0000000..7c92f8b --- /dev/null +++ b/m1/curiosity-demo/pacman.xbm @@ -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};