Csound Csound-dev Csound-tekno Search About

104 with pluck

Date1999-07-07 02:13
FromSherlock
Subject104 with pluck
Here is 104 with pluck and for MIDI.
This is what I'm using in my MIDI files now. Sounds
good.-------------------cut for
104.orc------------------------------------

sr   =   44100
kr   =   4410
ksmps  =   10
nchnls  =               1

  instr   104
iamp ampmidi 5000
adel = 3
icps1 cpsmidi
icps2 = icps1 / 3
a1              pluck   iamp, icps1, icps2, 2, 1   ;karplus-strong
plucked string
a5     flanger a1, adel, .1
                outs    a5+a1
  endin
===========cut for 104.sco==============================================

Function 2 uses the GEN10 subroutine to compute the first sixteen
partials of a sawtooth wave
f 2    0 4096     10   1  .5 .333 .25 .2 .166 .142 .125 .111 .1 .09 .083
.076 .071 .066 .062

; inst     start duration
f0 360
^^^^^^
left so Csound can read MIDI file. Might be able to change this.
{note: MIDI files must be format 0. You need a MIDI converter from 1 or
2 to 0.)





________________________________________________________
NetZero - We believe in a FREE Internet.  Shouldn't you?
Get your FREE Internet Access and Email at