In the Renoise GUI I can mute/unmute note columns using the mouse.
Looking at the API docs, though, I don’t see how to do this via code.
Is there an API call to allow code to mute/unmute note columns?
In the Renoise GUI I can mute/unmute note columns using the mouse.
Looking at the API docs, though, I don’t see how to do this via code.
Is there an API call to allow code to mute/unmute note columns?
renoise.song():track(1):mute_column(1, true)
renoise.song():track(1):mute_column(1, false)
renoise.song():track(1):mute_column(1, true) renoise.song():track(1):mute_column(1, false)
Thank you!
renoise.song():track(1):mute_column(1, true) renoise.song():track(1):mute_column(1, false)
So, in essence, this would then work:
renoise.song():track(renoise.song().selected_track_index):mute_column(renoise.song().selected_note_column_index, true)
Pretty neat. I should probably do a shortcut for that… except how to read specific selected note column index’s mute-status?
So, in essence, this would then work:
renoise.song():track(renoise.song().selected_track_index):mute_column(renoise.song().selected_note_column_index, true)
It would, but do keep in mind that renoise.song().selected_note_column_index may return 0 (an invalid note column index) when the cursor is currently positioned in an effect column.
how to read specific selected note column index’s mute-status?
local column_is_muted = renoise.song():track(1):column_is_muted(1)
Pro-tip: Just open up Renoise.Song.API.lua and do a find on “mute”
local column_is_muted = renoise.song():track(1):column_is_muted(1)
Pro-tip: Just open up Renoise.Song.API.lua and do a find on “mute”
I am successful
function muteUnmuteNoteColumn()
local s = renoise.song()
local sti = s.selected_track_index
local snci = s.selected_note_column_index
if s.selected_note_column_index == 0
then return else
if s:track(sti):column_is_muted(snci) == true
then s:track(sti):mute_column(snci, false)
else s:track(sti):mute_column(snci, true) end end
end
renoise.tool():add_keybinding {name = "Global:Paketti:Mute Unmute Notecolumn", invoke = function() muteUnmuteNoteColumn() end}
Thanks dBlue!