#include <Sketch.hh>
Public Member Functions | |
| Sketch (char *_name=NULL) | |
| virtual void | setupMonster (bool _monster) |
| bool | isVisible () |
| virtual void | setup () |
| virtual bool | handleEvent (gui_event_t *event) |
| bool | handleTopEvent (gui_event_t *event) |
| virtual void | loop () |
| virtual void | destroy () |
| virtual void | show () |
| virtual void | hide () |
| virtual void | doExtra (bool pressed) |
| virtual void | mute (bool pressed) |
| virtual Page * | getPage (uint8_t i) |
| virtual void | getName (char *n1, char *n2) |
Public Attributes | |
| char * | name |
| bool | muted |
| bool | monster |
The standard Sketch class, which is a PageContainer. This is used as the default parent class for individual "firmwares". Basically a Sketch is a standalone piece of functionality, using different Pages for controlling aspects of that functionality. A Sketch can be an arpeggiator, a standard MIDI controller with 4 different pages sending out CC messages, etc...
The Mididuino framework provides a huge number of ready to go Sketches that can be further modified or just use as is.
Different Sketch classes can be merged together in a big Monster firmware. This enables further configuration of the sketch itself by presenting a "high-level" view. It allows the user to "mute" the sketch, trigger an "extra" function, and display different pages of the sketch. This Monster functionality is used by the SwitchSketchPage described further below.
1.6.1