Jump to content


Photo

Observe a n AudioDevice removal


  • Please log in to reply
5 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
  • 3307 posts
  • Gender:Not Telling

Posted 28 January 2018 - 21:52

Hi,

 

I would would like to observe the removal of an track dsp device. Cannot find a hint in the documentation. Also for instruments I cannot find such observable... e.g. I added observers to vst-parameters and suddenly the device was removed...

 


Test system: macOS 10.13.4, HFS+. Firewire Audio, i7 4770, 8GB Ram, GTX1050 2GB, 48kHz


#2 joule

joule

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

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

Posted 29 January 2018 - 08:51

renoise.song().tracks_observable

renoise.song().tracks[].devices_observable

 

They will return an event - { type = "remove", index = 2 }

 

If you need to recall some kind of information about the removed device, other than the old index number, you'd have to store this in some custom structure.

 

PS. Any old parameter notifiers (or something else) being active within the device will auto-destruct if the device is removed, so you won't have to worry about removing these manually.


Edited by joule, 29 January 2018 - 08:58.

  • ffx likes this

#3 ffx

ffx

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

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

Posted 29 January 2018 - 10:39

Thanks!

 

And any idea for instruments?


Edited by ffx, 29 January 2018 - 10:40.

Test system: macOS 10.13.4, HFS+. Firewire Audio, i7 4770, 8GB Ram, GTX1050 2GB, 48kHz


#4 joule

joule

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

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

Posted 29 January 2018 - 10:41

I was reading a bit too quickly.

 

renoise.song().instruments_observable


  • ffx likes this

#5 ffx

ffx

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

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

Posted 29 January 2018 - 19:49

Will vst-parameter-notifiers be removed automatically, too?  Since it seems that at sng.instruments_observable trigger the device at event.index already is destroyed and no way to remove it manually...?


Test system: macOS 10.13.4, HFS+. Firewire Audio, i7 4770, 8GB Ram, GTX1050 2GB, 48kHz


#6 joule

joule

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

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

Posted 30 January 2018 - 09:57

Each notifier running from an observable should auto-destruct whenever a parent object or table is deleted. It seems to be very reliable. You shouldn't have to worry that a single thing slips by :)


Edited by joule, 30 January 2018 - 09:58.