Jump to content


Photo

notifier on change order of instruments?


  • Please log in to reply
4 replies to this topic

#1 ffx

ffx

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

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

Posted 31 January 2018 - 17:12

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


Test system: macOS 10.13.4, HFS+. Firewire Audio, i7 4770, 8GB Ram, GTX1050 2GB, 48kHz
GUI Automation RecorderNative DSP Context MenuTuned ShortcutsUnified Value Shift And Transpose | Jump To From Send Modified (Docs) | Quick Template | Nisanmol's Groove Tool FixedThemes


#2 joule

joule

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1815 posts
  • Gender:Not Telling

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.

  • ffx likes this

#3 ffx

ffx

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

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

Posted 01 February 2018 - 00:38

Thanks!


Test system: macOS 10.13.4, HFS+. Firewire Audio, i7 4770, 8GB Ram, GTX1050 2GB, 48kHz
GUI Automation RecorderNative DSP Context MenuTuned ShortcutsUnified Value Shift And Transpose | Jump To From Send Modified (Docs) | Quick Template | Nisanmol's Groove Tool FixedThemes


#4 ffx

ffx

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

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3442 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...


Test system: macOS 10.13.4, HFS+. Firewire Audio, i7 4770, 8GB Ram, GTX1050 2GB, 48kHz
GUI Automation RecorderNative DSP Context MenuTuned ShortcutsUnified Value Shift And Transpose | Jump To From Send Modified (Docs) | Quick Template | Nisanmol's Groove Tool FixedThemes


#5 ffx

ffx

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

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3442 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.

Test system: macOS 10.13.4, HFS+. Firewire Audio, i7 4770, 8GB Ram, GTX1050 2GB, 48kHz
GUI Automation RecorderNative DSP Context MenuTuned ShortcutsUnified Value Shift And Transpose | Jump To From Send Modified (Docs) | Quick Template | Nisanmol's Groove Tool FixedThemes