| Please excuse me for taking so long to reply, I have been too busy to get
to it this week.
The following orchestra works fine with DirectCsound 2.5 and 2.6 (on
Windows 95), but produces only a steadily pitched tone with Consound 3.51
and Winsound 3.51 (the test MIDI file is just one long note, during which
I added some pitchbending--I can send the MIDI file by attachment to the
list or directly to you if you would like to see it).
sr=44100
kr=4410
nchnls=1
instr 1
kpch pchmidib 12
asig oscil 10000, cpspch(kpch), 1
out asig
endin
;score
f1 0 4096 10 1
f0 25
This next orchestra (with same score and MIDI file, all of the versions of
Csound listed above) results in a jump of several octaves in pitch each
time there is a new pitchbend message. Am I doing something wrong (I
wouldn't be surprised)? Is pchbend supposed to work this way?
sr=44100
kr=4410
nchnls=1
instr 1
ipch pchmidi ; translate MIDI note number to pch
kbend pchbend 4 ; get pitchbend messages and scale them to range of 0
through 4
kpch = ipch + (kbend-2) ; shift pch value of note by value of kbend (range
of -2 through 2)
asig oscil 10000, cpspch(kpch), 1
out asig
endin
I hope this at least partly answers your question.
Terry Cast
jpff@maths.bath.ac.uk wrote:
> Message written at 24 Jan 1999 17:05:15 +0000
>
> On 15 Dec 1998 I sent a message saying that I thought I was on the
> track of a screw-up in pitchbend. The revised code was in v3.50 but
> so far I have not heard from anyone that it either does or does not
> work. If you have any experience to offer with respect to bending for
> v3.50 or later, I would like to hear -- positive or negative.
> ==John ffitch |