flashtxt
Prev | Orchestra Opcodes and Operators | Next

## flashtxt

flashtxt — Allows text to be displayed from instruments like sliders

## Description

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

## Syntax

    flashtxt  iwhich, String

## Initialization

iwhich -- the number of the window.

String -- the string to be displayed.

## Performance

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.

## Examples

Here is an example of the flashtxt opcode. It uses the files flashtxt.orc and flashtxt.sco.

Example 128. Example of the flashtxt opcode.

    /* flashtxt.orc */
    ; 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
    endin
    /* flashtxt.orc */

    /* flashtxt.sco */
    ; Table 1: an ordinary sine wave.
    f 1 0 32768 10 1

    ; Play Instrument #1 for three seconds.
    i 1 0 3
    e
    /* flashtxt.sco */

Prev | Up | Next
flanger | Home | FLbox