CVCenterPreferences implements persistant preferences for CVCenter and parts of CVWidget (respectively its subclassses CVWidgetKnob, CVWidget2D and CVWidgetMS). Preferences may either be set via GUI or programmatically. They are stored in a file named CVCenterPreferences in the same directory as the classfile.
Opens the GUI that lets user edit the preferences.
this (CVCenterPreferences
)
lets the user set any of the following settings programmatically.
saveGuiProperties |
can be one of the following Integers
| ||||||
guiProperties |
a Rect an Array providing | ||||||
saveClassVars |
a Boolean or an Integer ( | ||||||
midiMode |
| ||||||
midiResolution |
a Float - only applies when midiMode is set to | ||||||
midiMean |
an Integer - only applies when midiMode is set to | ||||||
softWithin |
a Float - only applies when midiMode is set to | ||||||
ctrlButtonBank |
CVCenter was written with a Doepfer Pocket Dial in mind which provides 16 fader-knobs and 4 different banks which sums up to 64 different slider-slots. However, it is not obvious which slider has to be moved to trigger a CCResponder initialised for controller nr. 37. Setting this argument to 16 (the number of knobs) will display controller nr. 37 as 3:5 (knob number 5 in bank 3). | ||||||
removeResponders |
a Boolean or an Integer ( | ||||||
initMidiOnStartUp |
a Boolean or an Integer, defining whether MIDI will get started on start-up. | ||||||
shortcuts |
shortcuts as passed in from the dialog: In the above code | ||||||
globalShortcuts |
global shortcuts work from whereever you call them - whether IDE, the SClang or any other application is currently the frontmost one does not matter. When global shortcuts are enabled a synth that listens to the users keystrokes will be created at server-boot (every key with an action mapped to it takes one UGen). By default the shortcut (fn)+F1 will front all SClang windows and open CVCenter - can be deactivated at any time. | ||||||
keyCodesAndMods |
key-mappings differ from platform to platform and may not be consitant accross all keyboards. As a consequence keycode- and modifier-mappings are made editable. At least on Linux and MacOSX things should work instantly. Windows-users may have to adjust the mappings in the editor (ideally edit and send me a copy so I can update them in the distribution). | ||||||
informString |
a String, used as alternative inform-message (optional) |
this (CVCenterPreferences
)
Reads the above set values.
... args |
if no arguments are set all values in the current preferences are returened, otherwise those that have been requested (argument-names equal those used in writePreferences). |
an Event containing the current preferences if they exist.