-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation of midi constants is finished!
- Loading branch information
1 parent
d0a3119
commit 2ff603d
Showing
10 changed files
with
338 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
These flags are used by {{docs_url_fn[plugins.getColor]}} to control the kind | ||
of color to return. | ||
""" | ||
|
||
GC_BackgroundColor = 0 | ||
""" | ||
Returns the darkest background color of the GUI. | ||
""" | ||
|
||
GC_Semitone = 1 | ||
""" | ||
Returns the semitone color. This can be used with the FPC plugin to get the | ||
drum pad color. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
""" | ||
These flags are given to {{docs_url_fn[ui.getVersion]}} to control the version | ||
information returned. | ||
""" | ||
|
||
VER_Major = 0 | ||
""" | ||
Return major version number as `int`. | ||
```py | ||
>>> import ui, midi | ||
>>> ui.getVersion(midi.VER_Major) | ||
20 | ||
``` | ||
""" | ||
|
||
VER_Minor = 1 | ||
""" | ||
Return minor version number as `int`. | ||
```py | ||
>>> import ui, midi | ||
>>> ui.getVersion(midi.VER_Minor) | ||
8 | ||
``` | ||
""" | ||
|
||
VER_Release = 2 | ||
""" | ||
Return release version number as `int`. | ||
```py | ||
>>> import ui, midi | ||
>>> ui.getVersion(midi.VER_Release) | ||
4 | ||
``` | ||
""" | ||
|
||
VER_Build = 3 | ||
""" | ||
Return build number as `int`. | ||
```py | ||
>>> import ui, midi | ||
>>> ui.getVersion(midi.VER_Build) | ||
2553 | ||
``` | ||
""" | ||
|
||
VER_VersionAndEdition = 4 | ||
""" | ||
Return program version and edition as `str`. | ||
```py | ||
>>> import ui, midi | ||
>>> ui.getVersion(midi.VER_VersionAndEdition) | ||
"Producer Edition v20.8.4 [build 2553]" | ||
``` | ||
""" | ||
|
||
VER_FullVersionAndEdition = 5 | ||
""" | ||
Return program version and edition as `str`. | ||
```py | ||
>>> import ui, midi | ||
>>> ui.getVersion(midi.VER_FullVersionAndEdition) | ||
"Producer Edition v20.8.4 [build 2553] - Signature Bundle - 64Bit" | ||
``` | ||
""" | ||
|
||
VER_ArchAndBuild = 6 | ||
""" | ||
Return operating system and system architecture as `str`. | ||
```py | ||
>>> import ui, midi | ||
>>> ui.getVersion(midi.VER_ArchAndBuild) | ||
"Windows - 64Bit [BETA]" | ||
``` | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/midi_controller_scripting/midi/__on_dirty_channel_flags.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
""" | ||
These flags are given as an argument to the | ||
{{docs_url_callback[OnDirtyChannel]}} callback. | ||
""" | ||
|
||
CE_New = 0 | ||
""" | ||
A channel was added. | ||
""" | ||
|
||
CE_Delete = 1 | ||
""" | ||
A channel was removed. | ||
""" | ||
|
||
CE_Replace = 2 | ||
""" | ||
A channel was replaced. | ||
""" | ||
|
||
CE_Rename = 3 | ||
""" | ||
A channel was renamed. | ||
""" | ||
|
||
CE_Select = 4 | ||
""" | ||
The channel selection was changed. | ||
""" |
88 changes: 88 additions & 0 deletions
88
src/midi_controller_scripting/midi/__plugin_get_name_flags.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
""" | ||
These values are provided to {{docs_url_fn[plugins.getName]}} to control the | ||
information that it returns. | ||
""" | ||
|
||
FPN_Param = 0 | ||
""" | ||
Name of plugin parameter. | ||
* `paramIndex` should be the index of the parameter. | ||
```py | ||
>>> import plugins, midi | ||
>>> plugins.getName(0, flag=midi.FPN_Param, paramIndex=0) | ||
"Expression" | ||
``` | ||
""" | ||
|
||
FPN_ParamValue = 1 | ||
""" | ||
Text value of plugin parameter. | ||
* `paramIndex` should be the index of the parameter. | ||
```py | ||
>>> import plugins, midi | ||
>>> plugins.getName(0, flag=midi.FPN_ParamValue, paramIndex=0) | ||
"42%" | ||
``` | ||
""" | ||
|
||
FPN_Semitone = 2 | ||
""" | ||
Name of note as defined by plugin. | ||
* `paramIndex` should be the note number (eg `60` for middle C) | ||
* If note names aren't defined by the plugin, an empty string is returned, even | ||
though FL Studio will display the generic note name. | ||
```py | ||
>>> import plugins, midi | ||
>>> plugins.getName(1, flag=midi.FPN_Semitone, paramIndex=42) | ||
"Closed Hat" | ||
``` | ||
""" | ||
|
||
FPN_Patch = 3 | ||
""" | ||
Name of the patch defined by the plugin? | ||
""" | ||
|
||
FPN_VoiceLevel = 4 | ||
""" | ||
Name of the per-voice parameter defined by the plugin? | ||
""" | ||
|
||
FPN_VoiceLevelHint = 5 | ||
""" | ||
Hint for per-voice parameter defined by plugin? | ||
""" | ||
|
||
FPN_Preset = 6 | ||
""" | ||
For plugins that support internal presets, the name of the preset. | ||
* `paramIndex` should be the index of the preset. | ||
```py | ||
>>> import plugins, midi | ||
>>> plugins.getName(1, flag=midi.FPN_Preset, paramIndex=0) | ||
"Breakbeat" | ||
``` | ||
""" | ||
|
||
FPN_OutCtrl = 7 | ||
""" | ||
For plugins that output controllers, the name of the output controller? | ||
""" | ||
|
||
FPN_VoiceColor = 8 | ||
""" | ||
Name of per-voice color? | ||
""" | ||
|
||
FPN_OutVoice = 9 | ||
""" | ||
For plugins that output voices, the name of output voice? | ||
""" |
20 changes: 20 additions & 0 deletions
20
src/midi_controller_scripting/midi/__project_load_status.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
These values are given as an argument to the | ||
{{docs_url_callback[OnProjectLoad]}} callback. | ||
""" | ||
|
||
|
||
PL_Start = 0 | ||
""" | ||
Starting to load the project. | ||
""" | ||
|
||
PL_LoadOk = 100 | ||
""" | ||
The project was successfully loaded. | ||
""" | ||
|
||
PL_LoadError = 101 | ||
""" | ||
The project stopped loading due to an error. | ||
""" |
Oops, something went wrong.