Jump to content


Photo

Notify tool change from note_column to effect_column

track note_column effect_column

  • Please log in to reply
1 reply to this topic

#1 Raul (ulneiz)

Raul (ulneiz)

    Guruh Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 931 posts
  • Gender:Male
  • Location:Spain

Posted 23 July 2017 - 01:05

A track is formed by note_columns (note, volume, panning, delay and sample effect columns) and effect_columns (until 8 effect columns).

 

Without moving from the track, how do I notify the tool that I jump from a note_column to an effect_column and vice versa?

 

1) selected_note_column & selected_note_column_index do not have _observable

2) selected_effect_column & selected_effect_column_index do not have _observable

 

Is there any way to do this? I missed something?

 

----------------TRACK-----------------------

 

Note Column       |       Effect Column

                       -------->

                      <--------

 

with renoise.tool().app_idle_observable????  It would be a bit exaggerated, would not it?

 

Any ideas?

 

Thanks!

 
 
renoise.song().selected_note_column_index
  -> [number, index or 0 (when an effect column is selected)]
 
renoise.song().selected_effect_column_index
  -> [number, index or 0 (when a note column is selected)]

Edited by Raul (ulneiz), 23 July 2017 - 02:10.

: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 18 July 2017):

Spoiler

#2 Raul (ulneiz)

Raul (ulneiz)

    Guruh Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 931 posts
  • Gender:Male
  • Location:Spain

Posted 23 July 2017 - 02:13

OK, I have decided to use a timer with return. Please, if there is any way to do it without using a timer or a iddle_observable, let me know.

local vpd_current_subcolumn
function vpd_check_current_subcolumn( song, sct )
  song = renoise.song()
  sct = song.selected_sub_column_type
  if ( vpd_current_subcolumn ~= sct ) then
    vpd_current_subcolumn = sct
    --print( "sub_column_type:",song.selected_sub_column_type )
    if song.selected_sub_column_type <= 7 then
      vb.views["GUI_TFX_VISIBLE"].visible = false
      vb.views["GUI_SFX_VISIBLE"].visible = true
    else
      vb.views["GUI_SFX_VISIBLE"].visible = false
      vb.views["GUI_TFX_VISIBLE"].visible = true
    end
  else
    return
  end
end
if not ( renoise.tool():has_timer( vpd_check_current_subcolumn ) ) then
  renoise.tool():add_timer( vpd_check_current_subcolumn, 20 )
end

In this case, it is necessary to make a renoise.tool():remove_timer( vpd_check_current_subcolumn ) ?

 

Is it always necessary to make a remove, with any timer or observable?

 

I've always had doubts about this.

 

Thanks!


Edited by Raul (ulneiz), 23 July 2017 - 02:20.

: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 18 July 2017):

Spoiler





Also tagged with one or more of these keywords: track, note_column, effect_column