-
Notifications
You must be signed in to change notification settings - Fork 0
/
theresa.cfg
92 lines (75 loc) · 3.58 KB
/
theresa.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/* Theremin configuration */
// Syntax of comments:
// Description [valid domain] (default value)
/* General settings */
// The input method ["mouse" or "sensor"] ("mouse")
input_device = "sensor";
// Show a graphical realtime display [true or false] (true)
// *Only relevant when compiling with GUI*
realtime_display = true;
// Writes sample data to stdout [true or false] (false)
log_data = false;
// Writes frequency data to stdout [true or false] (false)
log_freq = false;
// Frequency of general tasks per second [1..1000]
task_frequency_input_mouse = 100; // mouse events (100)
task_frequency_input_sensor = 100; // polling of sensor data (100)
task_frequency_input_general = 50; // polling of key events (50)
task_frequency_display_refresh = 5; // refresh of graphical display (25)
/* Audio synthesis settings */
// Maximal volume value, 16-bit unsigned [1..65535] (65535)
max_volume = 65535;
// Speed of volume change towards the target value [1.0 .. 1000.0] (30.0)
max_volume_change_per_tick = 30.0;
// Amount of samples per second [100..40000] (15000)
sample_rate = 15000;
// Amount of samples stored in-between [integer, power of 2] (512)
buffer_size = 512;
// Default waveform [one of the WAVE_NAMES inside const.h] ("sin")
waveform = "sin";
// Lowest playable note [one of the NOTE_NAMES inside const.h] ("e0")
lowest_note = "e0";
// Total pitch range [1..6] (2)
num_octaves = 2.0; //1.58740105197; // one octave plus seven halftones
// Default autotune mode ["none", "smooth", or "full"] ("smooth")
autotune_mode = "full";
// Enable tremolo by default [true or false] (false)
tremolo_enabled = false;
// Intensitv of tremolo: share of total volume [0.0 .. 1.0] (0.3)
tremolo_intensity = 0.3;
// Frequency of tremolo: oscillations per second [0.1 .. 100.0] (7.0)
tremolo_frequency = 7.0;
/* Sensor settings */
// Insert 1st bricklet UID here [alphanumeric string of size 3]
uid_volume = "Gyc"; //"zmj";
// Insert 2nd bricklet UID here [alphanumeric string of size 3]
uid_frequency = "GVo"; //"zn8";
// brickd connection host [valid network address]
host = "localhost";
// brickd connection port [valid port number]
port = 4223;
// Minimal valid value by frequency bricklet [0..4096] (100)
sensor_freq_min_value = 100;
// Maximal valid value by frequency bricklet [0..4096] (700)
sensor_freq_max_value = 700;
// Minimal valid value by volume bricklet [0..4096] (100)
sensor_vol_min_value = 100;
// Maximal valid value by volume bricklet [0..4096] (400)
sensor_vol_max_value = 300;
/* Input settings */
// Action mappings [single characters according to the respective key to press]
action_sustain_note = "a"; // To toggle sustaining a note
action_octave_up = "b"; // To toggle playing an octave higher
action_recording_replaying = "0"; // To toggle recording and looped replaying of audio
action_tremolo = "c"; // To toggle tremolo
action_autotune_none = "1"; // To set autotune to "none"
action_autotune_smooth = "2"; // To set autotune to "smooth"
action_autotune_full = "3"; // To set autotune to "full"
action_change_waveform = "w"; // To change the waveform
action_chord_major_1 = "r"; // To play a major chord with the current tone as root
action_chord_major_3 = "s"; // To play a major chord with the current tone as third
action_chord_major_5 = "<"; // To play a major chord with the current tone as fifth
action_chord_minor_1 = "i"; // To play a minor chord with the current tone as root
action_chord_minor_3 = "l"; // To play a minor chord with the current tone as third
action_chord_minor_5 = "-"; // To play a minor chord with the current tone as fifth
action_chord_clear = "z"; // To clear the currently playing chord