Jump to content


Photo

[Help] define the "selected_parameter" (number) in automation

selected_parameter .automation[]

  • Please log in to reply
2 replies to this topic

#1 Raul (ulneiz)

Raul (ulneiz)

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1049 posts
  • Gender:Male
  • Location:Spain

Posted 12 November 2017 - 13:42

I need a little help. How to define the selected parameter (the index, or number) in the automation editor?
  • renoise.song().selected_pattern_track.automation[???].playmode = renoise.PatternTrackAutomation.PLAYMODE_CUBIC
  • renoise.song().selected_pattern_track.automation[ "the number of selected parameter???" ].playmode = renoise.PatternTrackAutomation.PLAYMODE_CUBIC

For example, inside the automation editor, in mixer, exist: Panning, Volume, Width, 3 parameters.

 

Is there any shorter way to define it? I was looking for something like: renoise.song().selected_parameter_index (number), but this does not exist. How to define the number of the selected parameter?

 
Documentation:
renoise.PatternTrackAutomation.PLAYMODE_POINTS
renoise.PatternTrackAutomation.PLAYMODE_LINEAR
renoise.PatternTrackAutomation.PLAYMODE_CUBIC

-- play-mode (interpolation mode).
renoise.song().patterns[].tracks[].automation[???????????].playmode, _observable 
  -> [enum = PLAYMODE]

Knowing this detail, it is possible to control all this:

Spoiler

 

Thanks!


:excl: Development of my tool: GT16-Colors

 

:excl: My API wishlist R3.1 (updated 24 July 2017):

Spoiler

 

:excl: My Renoise 3.1 wishlist (updated 26 September 2017):

Spoiler

#2 Raul (ulneiz)

Raul (ulneiz)

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1049 posts
  • Gender:Male
  • Location:Spain

Posted 12 November 2017 - 16:32

I have found a way:
local sp = renoise.song().selected_parameter
local spt = renoise.song().selected_pattern_track
local spa = spt:find_automation( sp )

spa.playmode = renoise.PatternTrackAutomation.PLAYMODE_POINTS
... but is there another simpler way?
 
The most correct way is this?:
 
renoise.song().selected_pattern_track:find_automation( renoise.song().selected_parameter ).playmode = renoise.PatternTrackAutomation.PLAYMODE_POINTS  ???

:excl: Development of my tool: GT16-Colors

 

:excl: My API wishlist R3.1 (updated 24 July 2017):

Spoiler

 

:excl: My Renoise 3.1 wishlist (updated 26 September 2017):

Spoiler

#3 Raul (ulneiz)

Raul (ulneiz)

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1049 posts
  • Gender:Male
  • Location:Spain

Posted 13 November 2017 - 01:30

http://forum.renoise...ue/#entry268401


:excl: Development of my tool: GT16-Colors

 

:excl: My API wishlist R3.1 (updated 24 July 2017):

Spoiler

 

:excl: My Renoise 3.1 wishlist (updated 26 September 2017):

Spoiler