Skip to content

mono

signals when a concurrent instance of an instrument is active

Syntax

ksignal mono
ksignal = mono()

Usage

mono returns 1 when the instrument detects that a newer instance with the same instrument number has been launched. When used with turnoff it can be used to enforce the instrument is monophonic, while preserving envelope decays and extra time releases.


Outputs

ksignal -- Will either be 0 (no other instances running), or 1 (other instance detected).

Example

;; insert this snippet into your instrument 
if mono()==1 then 
   turnoff 
endif