Thanks 4Tey, but the problem was to work the slider also. Actually, your modified xrnx is like a step back, before adding the lines to make the slider work. I have returned to the original xrnx and followed the instructions of joule.
Yes Raul, you took my ‘step back’ and followed the instructions of Joule. And did it work? Nope. Why? Why do you think I took a step back? Do you think it will work when Danoise presents his example scrollable table? It might. In the context of Danoise code that is. You will just blissfully copy Danoise code and try and place it into your GT16 code. Why do this? Because it is easy, it is faster. What’s the problem with this approach? Well over time you get the situation you have now with the current state of your code. Most of your code Raul is built from copy/pasting, without fully understanding the underlying principles of basic lua programming and how it interacts with Renoise. It is remarkable it works at all really.
You see Raul Danoise and Joule are speaking to you as though you already have a fair experience of programming. Sure they will show you (advanced) examples and so forth, which you then take and try to apply to your own tool. But this approach isn’t too good in the long run. You are trying to write too complicated a tool for your own ability. Danoise and Joule are just giving you examples that are too advanced. Even I can’t understand some of the examples these coders are posting! (And I think it is safe to say I’m a more advanced programmer than you are Raul.)
My best advice: Only you Raul can learn how to program. You’ve got to simplify everything. Here is my philosophy that I’ve followed for the past god knows how many years now…
Only program what you understand
Hi 4Tey.I tell you a little what has happened here. I’m trying to create my own tool (add more things for new version), and learning by the way, also.Almost 90% of the code I need is already built, missing some details, and many have.So far, I understand most of the code, but I had a pending issue: make interacting a slider with Renoise.For this slider to work, my initial code must have a particular order.When you have modified the file, you have just returned to the starting point, “one step back”.
My tool already worked 100% before (without errors), but without using the slider.The slider did not work and that’s why I asked int the forum.I saw a Joule tool, which had something similar (joule.no0b.Transporter.xrnx).I tried to look at the code, and of course, I try to understand it.In it uses several lines = nil, which have to do with the load of viewbuilder, that is a little confusing.
Now I’m at a new point.The slider works, and I know why it works.What I want is use various lua archives for different pieces of the GUI (viewbuilder), which is as it was initially, because the tool is long.
On the subject of Danoise of scrollable table,it is an issue that has nothing to see here, comes from another topic pending.Nothing to see.
Thank you for your advice. Maybe it will surprise you. But I’m learning a lot so far.I assure you that if the tool works, it’s because I understand it.If something I do not understand, usually it does not work.If you think the tool is a copy and paste of pieces, you are wrong. If I have specific doubts, I will continue to ask; with a little guidance, I get it working.Have you learned by a example?Sometimes a simple example is enough.For example, comment #7, just what was needed.
Just a reflection. Sometimes you can see the code you do not understand. When you verify that it works and you manipulate it, you understand it, and that code has not been programmed by you.
You can try to program things that you initially do not understand. You have learned them on the fly.
Thank you for the advice!It is a pleasure to learn from the experts.