Csound Csound-dev Csound-tekno Search About

question about moog opcode

Date1998-04-30 12:55
FromDavid Vincelli
Subjectquestion about moog opcode
	csounders,

	I'll admit to being a newbie having some difficulties with the moog 
opcode (well with csound in general.)

The notes for this opcode state :

==========
ar	moog	kamp, kfreq, kfiltq, kfiltrate, kvibf, kvamp, iafn, iwfn, ivfn

An emulation of a mini-Moog syntheser.

INITIALISATION

iafn, iwfn, ivfn -- three table numbers containing the attack wave
form (unlooped), the main looping wave form, and the vibrato waveform.
The files mandpluk.aiff and impuls20.aiff are suitable for the first
two, and a sine wave for the last.
...
========

	My question is: how am I supposed to use a sound file for an i-rate 
variable (iafn and iwfn)?  A simple example would be greatly 
appreciated.  Thanks.


--
David Vincelli 

Date1998-05-01 14:43
Fromjpff@maths.bath.ac.uk
SubjectRe: question about moog opcode
You should use a table in the score, annd the variable is a table number.

sr          =           22050
kr          =           22050
ksmps       =           1
nchnls      =           1


            instr       16
a1          moog        31129.60, 440, 0.85, 0.0001, 0.6, 8, 6, 7, 1
            out         a1
            endin                   

------------------------------------------------------------------------
f1 0  256 10 1
f6 0 8192 1 "/usr/people/jpff/MUSIC/Stanford_Phys/rawwaves/mandpluk.raw" 0 4 1
f7 0  256 1 "/usr/people/jpff/MUSIC/Stanford_Phys/rawwaves/impuls20.raw" 0 4 1

i16     0       3
e