Class RP_SYS_Mute

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

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

  • Field Details

  • 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. Add also the names of the 3 special UserRhythmVoices RV_MUTE_USER_TRACK_1/2/3.

      Parameters:
      r -
      isPrimary -
      Returns:
    • getMutedRhythmVoices

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

      Works for a RP_SYS_Mute created using createMuteRp(r).

      Parameters:
      r -
      midiMix - Needed in order to retrieve the corresponding UserRhythmVoice if value contains some of the RV_MUTE_USER_TRACK_1/2/3 names.
      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