Xref: utzoo comp.music:1416 comp.dsp:745 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!ukc!harrier.ukc.ac.uk!gos.ukc.ac.uk!mg From: mg@ukc.ac.uk (M.W.Guy) Newsgroups: comp.music,comp.dsp Subject: A couple of pieces for Csound Message-ID: <3052@gos.ukc.ac.uk> Date: 15 Jun 90 20:01:03 GMT Reply-To: mg@ukc.ac.uk (M.W.Guy) Organization: Computing Lab, University of Kent at Canterbury, UK. Lines: 519 For people using the Csound sound synthesis package, here are a couple of pieces of music. The instruments are a simple string bass and "wobba", a synthetic organ, vaguely reminiscent of a Hammond organ and Leslie cabinets (with those wonderful whirling speakers). You wil also find attached the "scot" for the final movement of Bach's Italian Concerto, which sounds fine played on wobba. The Csound mailing list seems to be dead, hence my posting here instead of there. Enjoy Martin #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create the files: # sting.orc # sting.scot # it3.scot # This archive created: Fri Jun 15 20:55:04 1990 export PATH; PATH=/bin:$PATH if test -f 'sting.orc' then echo shar: will not over-write existing file "'sting.orc'" else cat << \SHAR_EOF > 'sting.orc' ; Orchestra for backing riff from "Rock Steady" from "Nothing like the Sun" ; by Sting. Plucked bass and hammond clone. ; Martin Guy, Canterbury, April 1990 sr=8192 kr=512 ksmps=16 ; Bogus instrument for global end decay gkdecay init 1 instr 3 gkdecay line 1,p3,0 endin ; Spluck. instr 1 a11 pluck 7500,cpspch(p5),200,2,1 a12 pluck 7500,cpspch(p5)*1.01,200,2,1 a13 oscil 5000,cpspch(p5),1 kdecay linseg 1,p3*0.9,1,p3*0.1,0 out (a11+a12+a13)*kdecay*gkdecay endin instr 2 ; Wobba. ; Harmonic sine waves, with amplitudes controlled by slow sines of different ; rates for a hammond-like effect. ; Amplitude of tones is proportional to 1/freq for equal energy. icps = cpspch(p5) ; pitch of current note in cps iamp = 440/icps ; amplitude of current note ileslie = (icps/440)*2 ; speed of wobble ; Four slow oscillators control amplitude of first four harmonics. ; The tremolo rate is proportional to the frequency of the harmonic. k1 oscil 2500*iamp,ileslie,1 k2 oscil 1250*iamp,ileslie*2,1 k3 oscil 750*iamp,ileslie*3,1 k4 oscil 1000*iamp,ileslie*4,1 ; The first four harmonics (almost) a1 oscil k1,icps,1 a2 oscil k2,icps*2.01,1 a3 oscil k3,icps*3.02,1 a4 oscil k4,icps*4.03,1 ; Envelope for tidy decay kenv linseg 1,p3*3/4,1,p3/4,0 asig = (a1+a2+a3+a4)*kenv out asig * gkdecay endin SHAR_EOF fi # end of overwriting check if test -f 'sting.scot' then echo shar: will not over-write existing file "'sting.scot'" else cat << \SHAR_EOF > 'sting.scot' ; Backing riff for "Rock Steady" from "Nothing like the Sun" by Sting ; Martin Guy, Canterbury, April 1990 orchestra { bass = 1 chords = 2 gdecay = 3 } functions { ; sine wave table f1 0 1024 10 1 ; string just before plucking. f2 0 1024 7 0 32 1 928 -1 32 0 } score { $bass t 130 4=,,a12rra6'e12,a6'g12,a__/ 12arr12rra6'e12,a6'g_12f#/ 4,a12rra6'e12,a6'g12,a__/ 12arr12rra6'e12,a4'g/ 4,a12rra6'e12,a6'g12,a__/ 12arr12rra6'e12,a6'g_12f#/ 4,a12rra6'e12,a6'g12,a__/ 12arr12rra6'e12,a4'g/ $chords 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / } score { $bass t 130 4=,,,f12rrf6'e-12,f6'f12,f__/ 12frr12rrf6'e-12,f4'f/ 4,f12rrf6'e-12,f6'f12,f__/ 12frr12rrf6'e-12,f4'f/ 4,f12rrf6'e-12,f6'f12,f__/ 12frr12rrf6'e-12,f4'f/ 4,f12rrf6'e-12,f6'f12,en__/ 12err12rre4'dc/ $chords 4r 12=c<=a<=,e- rr 4r 12 =c<=a<=,e- rr / 4r 12=c<=a<=,e- rr 4r 12 =c<=a<=,e- rr / 4r 12=c<=a<=,e- rr 4r 12 =c<=a<=,e- rr / 4r 12=c<=a<=,e- rr 4r 12 =c<=a<=,e- rr / 4r 12=c<=a<=,e- rr 4r 12 =c<=a<=,e- rr / 4r 12=c<=a<=,e- rr 4r 12 =c<=a<=,e- rr / 4r 12=c<=a<=,e- rr 4r 12 =c<=a<=,e- rr / 4r =bn<=a-<=,d rr/ } score { $bass t 130 4=,,a12rra6'e12,a6'g12,a__/ 12arr12rra6'e12,a6'g12f#/ 4,a12rra6'e12,a6'g12,a__/ 12arr12rra6'e12,a4'g/ 4,a12rra6'e12,a6'g12,a__/ 12arr12rra6'e12,a6'g12f#/ 4,a12rra6'e12,a6'g12,a__/ 12arr12rra6'e12,a4'g/ $chords 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / 4r 12=c#<=g<=,e rr 4r 12 =c#<=g<=,e rr / $gdecay 1c__/1c__/1c__/1c__/ 1c__/1c__/1c__/1c/ } SHAR_EOF fi # end of overwriting check if test -f 'it3.scot' then echo shar: will not over-write existing file "'it3.scot'" else cat << \SHAR_EOF > 'it3.scot' ; Italian Concerto Pt 3 ; @(#)it3.scot 1.2 (mg@ukc) 2/28/90 orchestra { voice1 = 1 voice2 = 1 voice3 = 1 } functions { ; sine wave table f1 0 1024 10 1 ; string just before plucking. f2 0 1024 7 1 64 1 0 0 96 0 0 1 32 1 0 0 } score { ; 3rd and final movement of the Italian Concerto by Bach. $voice1 !key "-b" !time "4/4" t270 4='f2,f8ga/8bcdefgab/4c c<=''a c