Class GlobalContextTrack

  • All Implemented Interfaces:
    Serializable, OptionDataListener, org.zkoss.json.JSONAware
    Direct Known Subclasses:
    ContextTracks

    public class GlobalContextTrack
    extends GlobalTrack
    Context tracks to add globally, an array of either instrument tracks, speech tracks, or a mix.

    Context tracks are not tied to data points, but play at a set interval - either based on time or on prop values.

    Since:
    11.2.0.0
    Author:
    Jamson Chan
    See Also:
    Serialized Form
    • Constructor Detail

      • GlobalContextTrack

        public GlobalContextTrack()
    • Method Detail

      • getTimeInterval

        public Number getTimeInterval()
        Returns a context track to play periodically every timeInterval milliseconds while the sonification is playing.

        Default: null

      • setTimeInterval

        public void setTimeInterval​(Number timeInterval)
        Sets a context track to play periodically every timeInterval milliseconds while the sonification is playing.
      • getValueInterval

        public Number getValueInterval()
        Returns a context track to play periodically every valueInterval units of a data property valueProp while the sonification is playing.

        For example, setting valueProp to x and valueInterval to 5 will play the context track for every 5th X value.

        The context audio events will be mapped to time according to the prop value relative to the min/max values for that prop.

        Default: null

      • setValueInterval

        public void setValueInterval​(Number valueInterval)
        Sets a context track to play periodically every valueInterval units of a data property valueProp while the sonification is playing.

        For example, setting valueProp to x and valueInterval to 5 will play the context track for every 5th X value.

        The context audio events will be mapped to time according to the prop value relative to the min/max values for that prop.

      • getValueMapFunction

        public String getValueMapFunction()
        Returns how to map context events to time when using the valueInterval option.

        Default: "linear"

      • setValueMapFunction

        public void setValueMapFunction​(String valueMapFunction)
        Sets how to map context events to time when using the valueInterval option.
      • getValueProp

        public String getValueProp()
        Returns the point property to play context for when using valueInterval.

        Default: "x"

      • setValueProp

        public void setValueProp​(String valueProp)
        Sets the point property to play context for when using valueInterval.