► Lua API version 5 to 6 changes - Renoise 3.2

Apart from the PLAYMODE_LINEAR -> PLAYMODE_LINES change, only new functions or optional parameters got added, so most tools which worked in Renoise 3.1 should auto-upgrade and work just fine in Renoise 3.2.

Changes

renoise.Application

  • changed: renoise.API_VERSION = 6
  • new: renoise.app():show_custom_prompt and show_custom_dialog got a new optional key_handler_options parameter to enable tracking of key release events and to suppress repeat events.
{ 
    "send_key_repeat": true|false, -- by default true
    "send_key_release": true|false  -- by default false
}
  • new: renoise.app().key_modifier_states -> [read-only, table with all modifier names and their states]
  • new: renoise.app().window.mixer_view_is_detached

renoise.Song

  • new: renoise.song().instruments[].phrases[]:has_line_edited_notifier/add_line_edited_notifier/remove_line_edited_notifier(func [, obj])

    Same as line_notifier, but the notifier only fires when the user added, changed or deleted a line with the computer keyboard.
  • renamed: renoise.SampleEnvelopeModulationDevice.PLAYMODE_LINEAR to PLAYMODE_LINES
  • renamed: renoise.SampleEnvelopeModulationDevice.PLAYMODE_CUBIC to PLAYMODE_CURVES
  • new: renoise.song().instruments[].sample_modulation_sets[].devices[].external_editor_visible
  • new: renoise.song().instruments[].sample_modulation_sets[].devices[].points[].scaling -> [number, -1.0 - 1.0]
  • new: renoise.Sample.BEAT_SYNC_REPITCH, renoise.Sample.BEAT_SYNC_PERCUSSION, renoise.Sample.BEAT_SYNC_TEXTURE
  • new: renoise.song().instruments[].samples[].beat_sync_mode, _observable -> [enum = BEAT_SYNC]
  • new: renoise.song().patterns[]:has_line_edited_notifier/add_line_edited_notifier/remove_line_edited_notifier(func [, obj])

    Same as line_notifier, but the notifier only fires when the user added, changed or deleted a line with the computer or MIDI keyboard.
  • renamed: renoise.PatternTrackAutomation.PLAYMODE_LINEAR to PLAYMODE_LINES
  • renamed: renoise.PatternTrackAutomation.PLAYMODE_CUBIC to PLAYMODE_CURVES
  • new: renoise.song().patterns[].tracks[].automation[].points[].scaling -> [number, -1.0 - 1.0]

renoise.ViewBuilder

  • new: text.style ("normal" | "strong" | "disabled")
5 Likes