ZoneList Experimental
The ZoneList class represents an ordered collection of Zone objects.
import { ZoneList } from kontakt
export class ZoneList {
length: Int { get }
at(index: Int) -> Zone
iterator() -> ZoneListIterator
}
This class was introduced as an experimental feature in Kontakt 8.10.
Constructors
None. This class cannot be instantiated directly. Instances are returned by Program.zones and Program.zones_by_group.
Properties
length: Int (get)
The number of zones in the list.
Methods
at(index: Int) -> (Zone) [subscript]
Returns the Zone at the given index.
While at can be called as a regular method, it also enables the subscript operator, so both forms are equivalent:
var zone = zone_list.at(index: 0)
var zone = zone_list[0]
iterator() -> (ZoneListIterator)
Returns a ZoneListIterator for iterating over all zones in the list. In practice, you will rarely need to call this method directly — its main purpose is to enable the for-in loop syntax:
for zone in zone_list {
// ...
}