Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion definitions
Submodule definitions updated 40 files
+3 −1 .vscode/settings.json
+1 −1 LICENSE
+9 −4 config.json
+0 −121 library/bit.lua
+2 −2 library/renoise.lua
+111 −24 library/renoise/application.lua
+167 −0 library/renoise/application/theme.lua
+45 −0 library/renoise/application/window.lua
+1 −1 library/renoise/midi.lua
+119 −15 library/renoise/song.lua
+2 −0 library/renoise/song/device.lua
+40 −2 library/renoise/song/instrument.lua
+18 −0 library/renoise/song/instrument/phrase.lua
+98 −0 library/renoise/song/instrument/phrase_script.lua
+3 −3 library/renoise/song/instrument/plugin.lua
+21 −11 library/renoise/song/instrument/sample.lua
+5 −5 library/renoise/song/instrument/sample_modulation.lua
+2 −1 library/renoise/song/pattern/track.lua
+7 −0 library/renoise/song/sequencer.lua
+4 −8 library/renoise/song/track.lua
+49 −12 library/renoise/song/transport.lua
+472 −0 library/renoise/sqlite.lua
+8 −0 library/renoise/tool.lua
+72 −25 library/renoise/viewbuilder.lua
+10 −0 library/renoise/views/aligner.lua
+18 −5 library/renoise/views/bitmap.lua
+30 −2 library/renoise/views/button.lua
+566 −0 library/renoise/views/canvas.lua
+55 −0 library/renoise/views/link.lua
+2 −0 library/renoise/views/minislider.lua
+5 −0 library/renoise/views/multiline_text.lua
+1 −0 library/renoise/views/multiline_textfield.lua
+16 −2 library/renoise/views/rack.lua
+2 −0 library/renoise/views/rotary.lua
+84 −0 library/renoise/views/scrollbar.lua
+9 −0 library/renoise/views/slider.lua
+39 −0 library/renoise/views/stack.lua
+18 −0 library/renoise/views/text.lua
+155 −3 library/renoise/views/view.lua
+4 −0 library/standard.lua
95 changes: 0 additions & 95 deletions docs/API/modules/bit.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/API/renoise.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
## Constants

### API_VERSION : [`number`](../API/builtins/number.md)<a name="API_VERSION"></a>
> Currently 6.1. Any changes in the API which are not backwards compatible,
> Currently 6.2. Any changes in the API which are not backwards compatible,
> will increase the internal API's major version number (e.g. from 1.4 -> 2.0).
> All other backwards compatible changes, like new functionality, new functions
> and classes which do not break existing scripts, will increase only the minor
Expand Down
132 changes: 112 additions & 20 deletions docs/API/renoise/renoise.Application.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,36 @@
### installed_tools : table<[`string`](../../API/builtins/string.md), [`string`](../../API/builtins/string.md)><a name="installed_tools"></a>
> **READ-ONLY** Returns information about all currently installed tools.

### installed_tools_observable : [`renoise.Document.Observable`](../../API/renoise/renoise.Document.Observable.md)<a name="installed_tools_observable"></a>
> Fired when the list of installed tools changed.

### audio_plugin_effects_observable : [`renoise.Document.Observable`](../../API/renoise/renoise.Document.Observable.md)<a name="audio_plugin_effects_observable"></a>
> Fired when the list of available audio plugin effects changed, for example
> when scanning for new plugins in the preferences.
> Use the component's `available_plugins` or `available_devices` properties
> to access currently available devices which are supported by the component
> such as the track device chains.

### audio_plugin_instruments_observable : [`renoise.Document.Observable`](../../API/renoise/renoise.Document.Observable.md)<a name="audio_plugin_instruments_observable"></a>
> Fired when the list of available audio plugin instruments changed, for example
> when scanning for new plugins in the preferences.

### key_modifier_states : table<[`string`](../../API/builtins/string.md), [`string`](../../API/builtins/string.md)><a name="key_modifier_states"></a>
> **Deprecated.** **READ-ONLY** Use `key_modifier_flags` instead

### key_modifier_flags : [`ModifierFlags`](#ModifierFlags)<a name="key_modifier_flags"></a>
> **READ-ONLY** Access keyboard modifier states.

### window : [`renoise.ApplicationWindow`](../../API/renoise/renoise.ApplicationWindow.md)<a name="window"></a>
> **READ-ONLY** Access to the application's window.

### theme : [`renoise.ApplicationTheme`](../../API/renoise/renoise.ApplicationTheme.md)<a name="theme"></a>
> **READ-ONLY** Access to the application's color theme.

### theme_observable : [`renoise.Document.Observable`](../../API/renoise/renoise.Document.Observable.md)<a name="theme_observable"></a>
> Fired, when *any* theme color changed. e.g. when a new theme got loaded
> or when theme colors got edited in the theme preferences.

### active_clipboard_index : `1` | `2` | `3` | `4`<a name="active_clipboard_index"></a>
> Range: (1 - 4) Get or set globally used clipboard "slots" in the application.

Expand All @@ -50,17 +74,23 @@

> Opens a modal dialog with a title, text and custom button labels.
> Returns the pressed button label or an empty string when canceled.
### show_custom_prompt([*self*](../../API/builtins/self.md), title : [`string`](../../API/builtins/string.md), content_view : [`renoise.Views.View`](../../API/renoise/renoise.Views.View.md), button_labels : [`string`](../../API/builtins/string.md)[], key_handler : [`KeyHandler`](#KeyHandler)[`?`](../../API/builtins/nil.md), key_handler_options : [`KeyHandlerOptions`](#keyhandleroptions)[`?`](../../API/builtins/nil.md))<a name="show_custom_prompt"></a>
### show_custom_prompt([*self*](../../API/builtins/self.md), title : [`string`](../../API/builtins/string.md), content_view : [`renoise.Views.View`](../../API/renoise/renoise.Views.View.md), button_labels : [`string`](../../API/builtins/string.md)[], key_handler : [`KeyHandler`](#KeyHandler)[`?`](../../API/builtins/nil.md), key_handler_options : [`KeyHandlerOptions`](#keyhandleroptions)[`?`](../../API/builtins/nil.md), focus_handler : [`FocusHandler`](#FocusHandler)[`?`](../../API/builtins/nil.md))<a name="show_custom_prompt"></a>
`->`label : [`string`](../../API/builtins/string.md)

> Opens a modal dialog with a title, custom content and custom button labels.
> See: [renoise.ViewBuilder](file:///c%3A/Users/emuell/Development/Renoise-XRNX/definitions/library/renoise/viewbuilder.lua#17#10) for more info about custom views.
### show_custom_dialog([*self*](../../API/builtins/self.md), title : [`DialogTitle`](#DialogTitle), content_view : [`renoise.Views.View`](../../API/renoise/renoise.Views.View.md), key_handler : [`KeyHandler`](#KeyHandler)[`?`](../../API/builtins/nil.md), key_handler_options : [`KeyHandlerOptions`](#keyhandleroptions)[`?`](../../API/builtins/nil.md))<a name="show_custom_dialog"></a>
> Opens a modal dialog with a title, custom content and custom button labels.
> See: `renoise.ViewBuilder` for more info about custom views.
### show_custom_dialog([*self*](../../API/builtins/self.md), title : [`DialogTitle`](#DialogTitle), content_view : [`renoise.Views.View`](../../API/renoise/renoise.Views.View.md), key_handler : [`KeyHandler`](#KeyHandler)[`?`](../../API/builtins/nil.md), key_handler_options : [`KeyHandlerOptions`](#keyhandleroptions)[`?`](../../API/builtins/nil.md), focus_handler : [`FocusHandler`](#FocusHandler)[`?`](../../API/builtins/nil.md))<a name="show_custom_dialog"></a>
`->`[`renoise.Dialog`](../../API/renoise/renoise.Dialog.md)

> Shows a non modal dialog (a floating tool window) with custom content.
> Shows a non modal dialog (a floating tool window) with custom content.
> When no key_handler is provided, the Escape key is used to close the dialog.
> See: [renoise.ViewBuilder](file:///c%3A/Users/emuell/Development/Renoise-XRNX/definitions/library/renoise/viewbuilder.lua#17#10) for more info about custom views.
> See: `renoise.ViewBuilder` for more info about custom views.
### show_menu([*self*](../../API/builtins/self.md), dialog : [`renoise.Dialog`](../../API/renoise/renoise.Dialog.md), menu_entries : [`DialogMenuEntry`](#dialogmenuentry)[], below_view : [`renoise.Views.View`](../../API/renoise/renoise.Views.View.md)[`?`](../../API/builtins/nil.md))<a name="show_menu"></a>
> Shows a custom context menu on top of the given dialog.
>
> When specifying a view, the menu will be shown below the given view instance.
> The view instance must be part of the dialog that shows the menu and must be visible.
> By default the menu will be shown at the current mouse cursor position.
### prompt_for_path([*self*](../../API/builtins/self.md), title : [`DialogTitle`](#DialogTitle))<a name="prompt_for_path"></a>
`->`path : [`string`](../../API/builtins/string.md)

Expand Down Expand Up @@ -98,13 +128,13 @@
> The song is not created immediately, but soon after the call was made and
> the user did not aborted the operation. In order to continue execution
> with the new song, attach a notifier to 'renoise.app().new_document_observable'
> See: [renoise.ScriptingTool](file:///c%3A/Users/emuell/Development/Renoise-XRNX/definitions/library/renoise/tool.lua#19#10) for more info.
> See: `renoise.ScriptingTool` for more info.
### new_song_no_template([*self*](../../API/builtins/self.md))<a name="new_song_no_template"></a>
> Create a new song document, avoiding template XRNS songs (when present) to be loaded.
> The song is not created immediately, but soon after the call was made and
> the user did not aborted the operation. In order to continue execution
> with the new song, attach a notifier to 'renoise.app().new_document_observable'
> See: [renoise.ScriptingTool](file:///c%3A/Users/emuell/Development/Renoise-XRNX/definitions/library/renoise/tool.lua#19#10) for more info.
> See: `renoise.ScriptingTool` for more info.
### load_song([*self*](../../API/builtins/self.md), filename : [`string`](../../API/builtins/string.md))<a name="load_song"></a>
> Load a new song document from the given filename (will ask to save
> changes if needed, any errors are shown to the user).
Expand Down Expand Up @@ -216,6 +246,42 @@

---
## Structs
# DialogMenuEntry<a name="DialogMenuEntry"></a>
> Defines a custom menu entry, shown in custom dialog windows.
>
> Separating entries:
> To divide entries into groups prepend one or more dashes to the name:
> ```md
> ---First Group Item
> Regular item
> ```
>
> To create sub menus, define entries with a common path, using a colon as separator:
> ```md
> Main Menu Item
> Sub Menu:Sub Menu Item 1
> Sub Menu:Sub Menu Item 2
> ```
>
> To insert a script menu entry into an existing context menu, see `ToolMenuEntry`.

---
## Properties
### name : [`string`](../../API/builtins/string.md)<a name="name"></a>
> Name and optional path of the menu entry

### invoke : fun()<a name="invoke"></a>
> A function that is called as soon as the entry is clicked

### active : [`boolean`](../../API/builtins/boolean.md)[`?`](../../API/builtins/nil.md)<a name="active"></a>
> Default: true. When false, the action will not be invoked and will be "greyed out".

### selected : [`boolean`](../../API/builtins/boolean.md)[`?`](../../API/builtins/nil.md)<a name="selected"></a>
> Default: false. When true, the entry will be marked as "this is a selected option"




# KeyEvent<a name="KeyEvent"></a>

---
Expand All @@ -224,7 +290,11 @@
> name of the key, like 'esc' or 'a'

### modifiers : [`ModifierStates`](#ModifierStates)<a name="modifiers"></a>
> the held down modifiers as a string
> **Deprecated.** Use `modifier_flags` instead
> **READ-ONLY** the held down modifiers as a string

### modifier_flags : [`ModifierFlags`](#ModifierFlags)<a name="modifier_flags"></a>
> **READ-ONLY** the held down modifiers as flags

### character : [`string`](../../API/builtins/string.md)[`?`](../../API/builtins/nil.md)<a name="character"></a>
> possible character representation of the key
Expand All @@ -244,18 +314,26 @@

---
## Aliases
### ModifierFlags<a name="ModifierFlags"></a>
{ alt : [`boolean`](../../API/builtins/boolean.md), control : [`boolean`](../../API/builtins/boolean.md), meta : [`boolean`](../../API/builtins/boolean.md), shift : [`boolean`](../../API/builtins/boolean.md) }
> The currently pressed/release key's modifiers as platform independent flags.
> On macOS "control" is their "Command" key and the "meta" keyboard is the "Control" key.
> On Windows the "meta" key is the "Windows" key and on Linux the "Super" key.

### ModifierStates<a name="ModifierStates"></a>
[`string`](../../API/builtins/string.md)
> The modifier keys will be provided as a string.
> **Deprecated.** Use `ModifierFlags` instead.
>
> The modifier keys will be provided as a string.
> Possible keys are dependent on the platform
> * Windows : "shift", "alt", "control", "winkey"
> * Linux : "shift", "alt", "control", "meta"
> * Mac : "shift", "option", "control", "command"
> If multiple modifiers are held down, the string will be formatted as
> * Mac : "shift", "option", "control", "command".
> If multiple modifiers are held down, the string will be formatted as
> "<key> + <key>"
> Their order will correspond to the following precedence
> `shift + alt/option + control + winkey/meta/command`
> If no modifier is pressed, this will be an empty string
> `shift + alt/option + control + winkey/meta/command`
> If no modifier is pressed, this will be an empty string.



Expand All @@ -281,27 +359,41 @@
[`string`](../../API/builtins/string.md)
> The title that shows up at the title-bar of the dialog.

### FocusHandler<a name="FocusHandler"></a>
(dialogs : [`renoise.Dialog`](../../API/renoise/renoise.Dialog.md), focused : [`boolean`](../../API/builtins/boolean.md)) `->` [`KeyEvent`](#keyevent)[`?`](../../API/builtins/nil.md)
> Optional focus change notifier for a custom dialog.
> Will be called when the dialog gains of loses key focus. You maybe want to initialize
> your dloag's (modifier) keyboard states here.

### KeyHandler<a name="KeyHandler"></a>
(dialog : [`renoise.Dialog`](../../API/renoise/renoise.Dialog.md), key_event : [`KeyEvent`](#keyevent)) `->` [`KeyEvent`](#keyevent)[`?`](../../API/builtins/nil.md)
> Optional keyhandler to process key events on a custom dialog.
> Optional keyhandler to process key events on a custom dialog.
> When returning the passed key from the key-handler function, the
> key will be passed back to Renoise's key event chain, in order to allow
> processing global Renoise key-bindings from your dialog. This will not work
> for modal dialogs. This also only applies to global shortcuts in Renoise,
> because your dialog will steal the focus from all other Renoise views such as
> the Pattern Editor, etc.

### ModifierFlags<a name="ModifierFlags"></a>
{ alt : [`boolean`](../../API/builtins/boolean.md), control : [`boolean`](../../API/builtins/boolean.md), meta : [`boolean`](../../API/builtins/boolean.md), shift : [`boolean`](../../API/builtins/boolean.md) }
> The currently pressed/release key's modifiers as platform independent flags.
> On macOS "control" is their "Command" key and the "meta" keyboard is the "Control" key.
> On Windows the "meta" key is the "Windows" key and on Linux the "Super" key.

### ModifierStates<a name="ModifierStates"></a>
[`string`](../../API/builtins/string.md)
> The modifier keys will be provided as a string.
> **Deprecated.** Use `ModifierFlags` instead.
>
> The modifier keys will be provided as a string.
> Possible keys are dependent on the platform
> * Windows : "shift", "alt", "control", "winkey"
> * Linux : "shift", "alt", "control", "meta"
> * Mac : "shift", "option", "control", "command"
> If multiple modifiers are held down, the string will be formatted as
> * Mac : "shift", "option", "control", "command".
> If multiple modifiers are held down, the string will be formatted as
> "<key> + <key>"
> Their order will correspond to the following precedence
> `shift + alt/option + control + winkey/meta/command`
> If no modifier is pressed, this will be an empty string
> `shift + alt/option + control + winkey/meta/command`
> If no modifier is pressed, this will be an empty string.


Loading