stix — Semi-physical model of a stick sound.
stix is a semi-physical model of a stick 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.
iamp -- Amplitude of output. Note: As these instruments are stochastic, this is only a approximation.
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 30.
idamp (optional) -- the damping factor, as part of this equation:
damping_amount = 0.998 + (idamp * 0.002)
The default damping_amount is 0.998 which means that the default value of idamp is 0. The maximum damping_amount is 1.0 (no damping). This means the maximum value for idamp is 1.0.
The recommended range for idamp is usually below 75% of the maximum value.
imaxshake (optional) -- amount of energy to add back into the system. The value should be in range 0 to 1.
Here is an example of the stix opcode. It uses the file stix.csd.
Example 1022. Example of the stix 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 stix.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> sr = 44100 ksmps = 32 0dbfs = 1 nchnls = 2 instr 1 idamp = p4 ;vary damping amount asig stix .5, 0.01, 30, idamp outs asig, asig endin </CsInstruments> <CsScore> i1 0 1 .3 i1 + 1 > i1 + 1 > i1 + 1 .95 e </CsScore> </CsoundSynthesizer>