flashtxt — Allows text to be displayed from instruments like sliders


Plugin opcode in control.

Allows text to be displayed from instruments like sliders etc. (only on Unix and Windows at present)


flashtxt  iwhich, String


iwhich -- the number of the window.

String -- the string to be displayed.


Note that this opcode is not available on Windows due to the implimentation of pipes on that system

A window is created, identified by the iwhich argument, with the text string displayed. If the text is replaced by a number then the window id deleted. Note that the text windows are globally numbered so different instruments can change the text, and the window survives the instance of the instrument.


Here is an example of the flashtxt opcode. It uses the file flashtxt.csd.

Example 312. Example of the flashtxt opcode.

See the sections Real-time Audio and Command Line Flags for more information on using command line flags.

; Select audio/midi flags here according to platform
; Audio out   Audio in    No messages
-odac           -iadc     -d     ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
; -o flashtxt.wav -W ;;; for file output any platform

; Initialize the global variables.
sr = 44100
kr = 44100
ksmps = 1
nchnls = 1

instr 1
  flashtxt 1, "Instr 1 live"
  ao oscil 4000, 440, 1
  out ao


; Table 1: an ordinary sine wave.
f 1 0 32768 10 1 

; Play Instrument #1 for three seconds.
i 1 0 3


See also

Sensing and Control: TCL/TK widgets


Author: John ffitch
University of Bath, Codemist Ltd.
Bath, UK

New in Csound version 4.11