The Alternative Csound Reference Manual
Previous |  | Next

# guiro

guiro -- Semi-physical model of a guiro sound.

## Description

guiro is a semi-physical model of a guiro sound. It is one of the PhISEM percussion opcodes. PhISEM (Physically Informed Stochastic Event Modeling) is an algorithmic approach for simulating collisions of multiple independent sound producing objects.

## Syntax

ar guiro kamp, idettack [, inum] [, idamp] [, imaxshake] [, ifreq] [, ifreq1]

## Initialization

idettack -- period of time over which all sound is stopped

inum (optional) -- The number of beads, teeth, bells, timbrels, etc. If zero, the default value is 128.

idamp (optional) -- the damping factor of the instrument. Not used.

imaxshake (optional, default=0) -- amount of energy to add back into the system. The value should be in range 0 to 1.

ifreq (optional) -- the main resonant frequency. The default value is 2500.

ifreq1 (optional) -- the first resonant frequency.

## Performance

kamp -- Amplitude of output. Note: As these instruments are stochastic, this is only an approximation.

## Examples

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

Example 1. Example of the guiro opcode.

    /* guiro.orc */
    sr = 44100
    kr = 4410
    ksmps = 10
    nchnls = 1

        instr 01  ;example of a guiro
    a1  guiro p4, 0.01
        out a1
        endin
    /* guiro.orc */

    /* guiro.sco */
    i1 0 1 20000
    e
    /* guiro.sco */

## See Also

bamboo, dripwater, sleighbells, tambourine

## Credits

Author: Perry Cook, part of the PhISEM (Physically Informed Stochastic Event Modeling)
Adapted by John ffitch
University of Bath, Codemist Ltd.
Bath, UK

New in Csound version 4.07

Added notes by Rasmus Ekman on May 2002.

Previous | Home | Next
granule | Up | harmon