Checking if a sample is being loaded

I made an attempt with the loop locking mode here:
http://forum.renoise…post__p__312517

Perhaps it might help you brewing another idea what to use instead of monitoring samples being loaded.
It simply boils down to:Monitor the loop mode and reset it if it changes.