Bitmap Array Loader
Posted: Thu Apr 18, 2019 3:44 pm
Inspired by kortezzzz's cool Dancing Lady synth, which uses multiple bitmaps to make GUI animations, I thought it would be nice if you could load a whole array of bitmaps all in one go. Ruby's file system and string handling make this kind of thing much easier than it used to be, so...
The image files must all be in the same folder, and must have the same beginning to the file name plus a number at the end (e.g. "my_image_001.png", "my_image_002.png", etc.). Choose any one of the numbered files in the File dialogue to load all of the matching files into the Bitmap Array at once. The numbers are just used to sort the bitmaps into order, so they don't have to be sequential or start at any particular value, or even to have the same number of digits. There's a wireless trigger built in called 'Update All Bitmaps' which can be used to update multiple modules all at once (as in my Auto Updatey Thing modules.)
The image files must all be in the same folder, and must have the same beginning to the file name plus a number at the end (e.g. "my_image_001.png", "my_image_002.png", etc.). Choose any one of the numbered files in the File dialogue to load all of the matching files into the Bitmap Array at once. The numbers are just used to sort the bitmaps into order, so they don't have to be sequential or start at any particular value, or even to have the same number of digits. There's a wireless trigger built in called 'Update All Bitmaps' which can be used to update multiple modules all at once (as in my Auto Updatey Thing modules.)