Jump to content


Photo

notifier on change order of instruments?


  • Please log in to reply
4 replies to this topic

#1 Trackerman

Trackerman

    Composes without Wires burns Directly from Brain to DVD that is already in Store Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3220 posts
  • Gender:Not Telling

Posted 31 January 2018 - 17:12

Is there a notifier on changing order of  the instruments/moving an instrument available?



#2 joule

joule

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1638 posts
  • Gender:Not Telling
  • Location:Sweden
  • Interests:music, philosophy, engineering

Posted 31 January 2018 - 18:38

renoise.song().instruments_observable

 

How the object of a particular instrument_index is moving can be tracked by checking:

 

1) if event["type"] is "insert", is event["index"] smaller or equal to the particular instrument index? This would imply that the instrument was moved upwards.

2) if event["type"] is "remove", is event["index"] smaller or equal to the particular instrument index? This would imply that the instrument was moved downwards (or deleted).

3) if event["type"] is "swap", is event["index1"] or event["index2"] equal to the particular instrument index? This would imply that the instrument has swapped place with some other instrument.

4) All other conditions mean that that something happened to the instrument list, but it didn't lead to the particular instrument being moved.

 

:P


Edited by joule, 31 January 2018 - 18:42.

  • Trackerman likes this

#3 Trackerman

Trackerman

    Composes without Wires burns Directly from Brain to DVD that is already in Store Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3220 posts
  • Gender:Not Telling

Posted 01 February 2018 - 00:38

Thanks!



#4 Trackerman

Trackerman

    Composes without Wires burns Directly from Brain to DVD that is already in Store Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3220 posts
  • Gender:Not Telling

Posted 02 February 2018 - 01:24

Hm, I always get 3 notifiers at once, on dragging (2 x insert, 1x swap) and inserting (3 x insert) ...  Any idea way?   Only one move, I get one event only...



#5 Trackerman

Trackerman

    Composes without Wires burns Directly from Brain to DVD that is already in Store Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3220 posts
  • Gender:Not Telling

Posted 02 February 2018 - 02:12

Ok, I think I understood this now...  :smashed:   Just do what the events say, don't think  ^_^  on the other hand, it would be helpful to maybe have a "numEvents" in the event, so you could trigger something one time only per operation.


Edited by ffx, 02 February 2018 - 20:46.