Csound Csound-dev Csound-tekno Search About

BOUNCE Csound: Non-member submission from [Jacob Weber ] (fwd)

Date1997-10-13 15:50
Fromjames@maths.ex.ac.uk
SubjectBOUNCE Csound: Non-member submission from [Jacob Weber ] (fwd)
owner-csound-outgoing wrote
>From owner-csound-outgoing Tue Sep 30 19:21:46 1997
From: owner-csound-outgoing
Date: Tue, 30 Sep 97 19:21:46 GMT
Message-Id: <21829.9709301921@maths.exeter.ac.uk>
To: owner-csound-outgoing
Subject: BOUNCE Csound: Non-member submission from [Jacob Weber ]

>From Jacob.Weber@oberlin.edu Tue Sep 30 20:21:41 1997 remote from 
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Tue, 30 Sep 97 20:21:41 +0100
Received: from alpha.cc.oberlin.edu [132.162.1.245] by hermes via ESMTP (UAA11321); Tue, 30 Sep 1997 20:21:39 +0100
Received: from OBERLIN.EDU by OBERLIN.EDU (PMDF V5.1-8 #24033)
 id <01IO9B9PE0W0001N0Y@OBERLIN.EDU> for csound@maths.ex.ac.uk; Tue,
 30 Sep 1997 15:22:37 EDT
Date: Tue, 30 Sep 1997 15:22:37 -0400 (EDT)
From: Jacob Weber 
Subject: Can an instrument recognize itself?
To: csound
Message-Id: 
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hello. I'm new to the CSound list, so I apologize if this has been covered
already.

I'm using the MIDI converters (cpsmidi, etc.) with a multi-channel MIDI
file. My orchestra is essneitally a sampler; each instrument gets the
notes from the corresponding MIDI channel, selects a sound file from a
ftable, and plays the sound.

Since all the instruments are the same, it's cumbersome to make several
instruments that are virtually identical. I'd like to do this:
    inst = 1,2,3,4,5
; sample playback stuff here
    endin

However, to select the appropriate ftable, I need to know which notes are
being played with which channel. Is there any way that an instrument, such
as the one above, can find out which instrument number is being used?

Jacob Weber
Jacob.Weber@oberlin.edu
http://www.oberlin.edu/~jweber/


-- 
James Andrews, maths CDO, ext.3977