guiro — Semi-physical model of a guiro sound.
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.
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 Hz.
ifreq1 (optional) -- the first resonant frequency. Default value here is 4000 Hz
kamp -- Amplitude of output. Note: As these instruments are stochastic, this is only an approximation.
Here is an example of the guiro opcode. Play guiro.csd
Example 431. Example of the guiro opcode.
See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
<CsoundSynthesizer> <CsOptions> ; Select audio/midi flags here according to platform -odac ;;;realtime audio out ;-iadc ;;;uncomment -iadc if realtime audio input is needed too ; For Non-realtime ouput leave only the line below: ; -o guiro.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 instr 1 a1 guiro .8, p4 outs a1, a1 endin </CsInstruments> <CsScore> i1 0 1 1 i1 + 1 .01 e </CsScore> </CsoundSynthesizer>