-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.py
68 lines (55 loc) · 2.91 KB
/
config.py
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
# MIT License
# Copyright (c) 2024 Pablo Peral
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
"""
User-editable Python file to change script behavior.
"""
import midi
# Any line of this file starting with hashes (#) is a comment and won't be interpreted by FL Studio
# Behavior of the Count-In button
#
# If set to 0, it will toggle on/off the "Countdown before recording" option on FL Studio
# If set to 1, it will act like on the Maschine software: it will make FL Studio jump straight into record mode with
# the "Countdown before recording" option enabled
COUNT_IN_BEHAVIOR = 0
# Knob increments
# These values set the amount of increments for each message your keyboard sends to FL Studio
# when twisting the knobs on your device to change track volume and pan on the mixer
# Defaults are:
# - KNOB_INCREMENTS_VOL = 0.02
# - KNOB_INCREMENTS_PAN = 0.02
KNOB_INCREMENTS_VOL = 0.02
KNOB_INCREMENTS_PAN = 0.02
# Quantize button behavior
# - If set to 0 (default), it will serve as a quantize buttom for the notes the currently selected pattern and currently
# selected channel rack
# - If set to 1, it will behave the way it did before the implementation of quantization in the MIDI scripting API
# and allow jumping between FL Studio windows
QUANTIZE_BEHAVIOR = 0
# Quantize mode (only matters if QUANTIZE_BEHAVIOR is set to 0)
# - If set to 0, quantization will be applied to both start and end time of notes
# - If set to 1 (default), quantization will be applied only to start time of notes
QUANTIZE_MODE = 1
# Mixer halo behavior
# - If set to 0, nothing will appear over the current group of tracks
# - If set to 1 (default), a rectangle halo will appear over the current group of tracks
MIXER_HALO_BEHAVIOR = 1
# Mixer halo time
# Time in milliseconds the mixer halo rectangle will stay on screen after the last mixer track group change
# Specify midi.MaxInt as value to make the mixer halo not disappear
# Default value: 3000
MIXER_HALO_TIME = 3000