Class RP_SYS_Mute

java.lang.Object
org.jjazz.rhythm.api.RP_StringSet
org.jjazz.rhythm.api.rhythmparameters.RP_SYS_Mute
All Implemented Interfaces:
RhythmParameter<Set<String>>, RpEnumerable<Set<String>>

public class RP_SYS_Mute extends RP_StringSet
System RhythmParameter: mute one or more instruments.

  • Field Details

    • ID

      public static String ID
  • Method Details

    • createMuteRp

      public static RP_SYS_Mute createMuteRp(Rhythm r, boolean isPrimary)
      A factory method to build a RhythmParameter for a specified rhythm.

      Use the rhythmVoice's names to create the possible values of RP_SYS_Mute. If a RhythmVoice is a RhythmVoiceDelegate, use the name of its source RhythmVoice instead.

      Parameters:
      r -
      isPrimary -
      Returns:
    • getMutedRhythmVoices

      public static List<RhythmVoice> getMutedRhythmVoices(Rhythm r, Set<String> value)
      Retrieve the muted RhythmVoices from the specified rp value.

      Works for a RP_SYS_Mute created using createMuteRp(r).

      Parameters:
      r -
      value -
      Returns:
    • getMuteRp

      public static RP_SYS_Mute getMuteRp(Rhythm rhythm)
      Find the first RP_SYS_Mute instance in the rhythm parameters of r.
      Parameters:
      rhythm -
      Returns:
      Can be null if not found