-
Notifications
You must be signed in to change notification settings - Fork 84
Preset Configuration
In Proffie OS the term Preset means the combination of:
- Sound Font
- Music Track
- Color Style
Presets are defined in object array of type Preset. Example presets:
Preset presets[] = {
{ "font03", "tracks/title.wav", StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan" },
{ "graflex7", "tracks/cantina.wav",
StylePtr<InOutSparkTip<EasyBlade<BLUE, WHITE>, 300, 800> >(), "blue" },
{ "caliban", "tracks/duel.wav", StyleFirePtr<RED, YELLOW>(), "fire" }
};
The first part of a preset is the directory of the sound font. ProffieOS supports most of the major sound font formats that are widely used. Sound-playing engine automatically detects through the files in the directory and switches to the appropreate mode.
- Plecter-style Fonts
- Nec-styled Fonts
- Smooth Swing V1
- Smooth Swing V2
Note: Font directory must not exceed 8 characters
Note: Default sample rate in ProffieOS is 44kHz so all sounds with lower sample rates are upsampled automatically.
In the second field is configured the audio track which can be used for soundtrack music or ambient sound in parallel to the rest of the sounds that are played by the saber. Music Track invoke is configured to be runned via button combination or with Command send via the Serial port/Bluetooth module.
Color style field defines the look and behaviour of the blade itself. If more then one blades ( sub-blades) are used more then one styles have to be defined in the current preset. Color styles allows many combinations with the help of template based prototypes (Colors, animations, statements) Color Style can be generated with the help of the Style Editor.
The last element in a preset is the Preset Name. It is in the form of a character string. The preset Name is required when OLED is used. Changing the preset will display its name on the screen.
Cool Footer