This program assumes that you have a folder of image files (jpg, etc.) that you want to show as a slideshow. This program also assumes that those images all have the same dimensions.

The program assumes images that are 320x240 pixels. If you want to use another size, you should change the dimensions of the objects and the size of the jit.window. Images that do not have a 4:3 aspect ratio will get distorted when shown fullscreen, unless some adjustments are made.

Linear fade-in/out of audio

The line~ object is useful for providing a control signal. It interpolates linearly sample-by-sample to a new signal value over a specified period of time, then stays at that new value until it is instructed to change. It expects to receive a transition time in its right inlet (a ramp time), followed by a destination value in its left inlet. Alternatively, you can provide both values as a single two-item list. Its initial default value is 0.

Preload and play sound cues

A single sfplay~ object can refer to many different sound files, or even specific portions of sound files, with a unique "cue" number assigned to each sound. Once those sound cues have been preloaded (i.e. taught to the object), you can cause the object to play a cue just by sending the desired cue number in its left inlet.