Function To Mute/unmute/solo Groups (2.8B2) ?

Hi all,

Is there a function in the 2.8 API to mute/unmute/solo groups ( EDIT: just realised a group is a track so mute the group-track and it works but can it be done by name, e.g. Renoise.Song().groups[“Drums”]:mute() )

Cheers,
LW.

The functions for track muting available are:

renoise.song().tracks[]:mute()
renoise.song().tracks[]:unmute()
renoise.song().tracks[]:solo()

You’d have to use the track number. If you want to use the name you need a function that iterates through tracks. It should look something like this, from the top of my head:

  
function mute(name)  
 for i, track in ipairs(renoise.song().tracks) do  
 if track.name == name then  
 renoise.song():track(i):mute()  
-- else renoise.song():track(i):unmute() -- depending on what you want  
 end  
 end  
end  
  
mute("Group 1")  
  

Thanks - makes sense.

Cheers,
LW.