How can I start the group of players?

Morning everyone,

I know I can stop or mute the group of players. How can I trigger it to start automatically? Sometimes in my compositions they are getting too high in the window and when I stop them it is difficult to start them again at the time I want.

Kind Regards,
Michał

1 Like

If I define a group like:

bass_bar_01_g = Group(a0, e1, c1)

a command like

bass_bar_01_g.start()

does not work, but would be nice to have. I also didn’t find a Start command for groups.

As a workaround I can create a group within a function and return the groupname. So I could start the group by calling the function name and still can use all group methods:

def bass_bar_01(run=1):
    a0 >> bass([_,5,_,5,5,_], dur=[rest(1),0.75,rest(0.25),0.5,0.5,1])
    e1 >> bass([_,9,_], dur=[rest(3.0),0.5,rest(0.5)])
    c1 >> bass([_,7], dur=[rest(3.5),0.5])
    bass_bar_01_g = Group(a0, e1, c1)
    if run:
        return bass_bar_01_g
    else:
        bass_bar_01_g.stop()
        return bass_bar_01_g        

create the Group bass_group with a function call:

bass_group = bass_bar_01(1)

use group methods:

bass_group.oct=4

bass_group.stop()

restart (recreate) the Group bass_group with a function call:

bass_bar_01()
1 Like

this is amazing! I feel like I’d want to use this all of the time.

I wonder if a more capable coder than I could implement this in the codebase so that groups can take all group methods inherently?

just realized this is from May of 2021, not the 21st of May, which is actually in 8 days. :sweat_smile: