If Lua is correctly installed on your system, and remdebug was found, Renoise
should be frozen now, with a terminal window opened showing something like:
“Lua Remote Debugger”
“Paused at file RENOISE_PREFERENCES_FOLDER/Scripts/TestPad.lua line 5”
1 debug.start()
2
3 local function sum(a,
4 return a + b
5*** end
6
7 local c = sum(1, 2)
8 print(c)
9
10 debug.stop()
dont know where to go from here …
I have copied an existing tool and Im changing it into my own but I think this is not the best way to go about it. Can anybody please help!
lua come with renoise you don’t need to install it yourself
please see renoise lua scripting for more help
if you “have enabled the show scripting development tools and can view and edit form the menu” has you say in your firth post you have everything you need
Here is the latest update… still need to add the functioning part behinde all the interface… hopefully this will make it easier for people out there who are mpc users to make the transition to renoise withouth having to buy expensive sample vst’s
function bpm_changed()
print(("something changed the BPM to %s"):format(renoise.song().transport.bpm))
-- Your code here?
end
renoise.song().transport.bpm_observable:add_notifier(bpm_changed)
-- later on, maybe:
renoise.song().transport.bpm_observable:remove_notifier(bpm_changed)
the idea is to have an interface much like the AKAI mpc 2000xl to help people who own or have owned to make an easier transition into using renoise! It offers transport controls and acess to song features through a recognizable interface.
I have had simplify it a little for now and Im having trouble with bind values I cant seem to bind and observable object > no matter what I try! help!
i can change the bpm in renoise from my tool but is I change the bpm in renoise my toll does not update… any help would e greatly appreciated
local options = renoise.Document.create(“ScriptingToolPreferences”) {
min = 32,
bpm = true,
flag = false,
vb:valuebox {
id = “beatpm”,
value = renoise.song().transport.bpm,
notifier = function(bp)
renoise.song().transport.bpm = bp
end,
bind = options.bpm_observable,
min = 32,
max = 999,
},
vb:valuebox {
id = “beatpm”,
value = renoise.song().transport.bpm,
notifier = function(bp)
renoise.song().transport.bpm = bp
end,
bind = renoise.Document.bpm_observable,
min = 32,
max = 999,
},
If this is your code, then the reason is that you initiated value to the BPM at the time you initiated the GUI.
AFAIK this is not a pointer to the bpm objet or anything like that, rather its just the returned float at the time.
I would suggest an observer, something like:
--
-- vb:valuebox declared before this snippet
--
function bpm_changed()
vb.views.beatpm.value = renoise.song().transport.bpm
end
renoise.song().transport.bpm_observable:add_notifier(bpm_changed)
What Jonas said. It’s always good to start with a file attachment in a thread to iron out any kinks with other users.
I’ve looked at your tool and have found some minor packaging issues. You have “junk” files in there (Example: __MACOSX/Bitmaps/._.DS_Store) These are hidden OSX files that aren’t hidden on Widows and Linux.
You can get rid of them with something like Zip Cleaner.
I’m not sure if this is OK to approve. Will wait on other teamsters for their feedback.