PolyTone.IsPlayable Property

Returns a bool indicating whether or not a tone sequence is valid.

Syntax

[C#]
public bool IsPlayable { get; }

Property Values

true
Indicates that the PolyTone instance has a valid list of at least one playable Tone, even if that Tone has a volume of Tone.VOLUME.OFF.

false
The PolyTone instance includes invalid or malformed Tone arguments, or contains an otherwise empty list of Tone objects.

Notes

When EnableExceptions is disabled, the most recent error message string can still be retrieved by calling LastResultMessage. Otherwise, access the message string via the Exception.Message property.

Helper methods such as LastResultMessage do not explicitly raise exceptions.

More Information

PolyTone Class