[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] muteCount



hi,

if you  markup EventStreamPlayer:muteCount (*) and go to menu bar: Lang > Implementations Of (or cmd+Y) you will see that muteCount is a class variable of EventStreamPlayer class.

The following code is the description of .mute and .unmute methods

    mute { muteCount = muteCount + 1; }
    unmute { muteCount = muteCount - 1; }

As you can see you have already described what muteCount is actually doing.

best

(*) this will reveal if you markup ' muteCount ' and press cmd+Y


2012/12/30 Mattias Petersson <emp@xxxxxxxxxxxxxx>
Hello,

I was using the .mute method on an EventStreamPlayer and just discovered the method muteCount. I understand what it does, but could someone explain its purpose, please? It seems to be an undocumented method. Why would anyone want to mute something that's already muted? And why is it even possible?
As it is now, if you mute it 3 times you have to unmute it 3 times to get it back. Very logical. But erm.. why?

p = Pbind().play;
p.mute; p.muteCount.postln;
p.unmute; p.muteCount.postln;

/mattias
_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/