| Midiolap takes a single i-time number as a parameter.
This number defines the maximum number of instances
of the instrument that can be active simultaneously,
for any given midi note number, when the sustain pedal
is depressed (active). For example, for a piano instrument,
if you include "midiolap 3" in the orc, and you continually
play a single note with the sustain pedal down, there
will be three "voices" ringing at the same time, after
three key presses. (after two, there will of course only
be two, and so on). After 4 key presses, the earliest
voice will begin it's release, and thus there will still
be only three active voices.
The intention of this operator is to simulate the sound
of piano instruments, when repeated notes are struck with
the sustain pedal down - the sound changes slightly with
each note. The overlapping voices to some extent
mimick this effect, due to the differing phases of the
voices with each key press. NB: I believe that most,
if not all, digital pianos and synthesizers implement
this voice overlapping. I assume that it's really just
one parameter of voice stealing - it can probably be
disabled on instruments that have more than one
voice stealing algorithm.
Midiage returns a k-rate value that indicates the current "age" of the
active voice - i.e, how many "later" notes of the same note
number have been activated. This would allow, for example,
the volume of the voice to be reduced according
to how many other active voices there are.
I can't remember whether it starts at 0 or 1.
I thought I submitted some documention on these
operators a long time ago, but I am not sure.
John? :) Also, I would have thought that these would
have made it into at least the PC version.
I am sorry to be so vague - it was a long time ago
that I wrote these, and I am guilty of not keeping
proper notes.
Greg.
>----------
>From: Mike Berry[SMTP:mikeb@mills.edu]
>Sent: Wednesday, February 19, 1997 8:52 AM
>To: csound list
>Subject: midiolap and midiage
>
> Does anyone know how the midiolap and midiage opcodes work? Are
>they even part of any csound except csound.ppc? Does anyone have any
>doc?
>I'm looking at the code and I can't figure them out.
>
>Mike Berry
>mikeb@mills.edu
>http://www.mills.edu/PEOPLE/gr.pages/mikeb.public.html/mikeb.homepage.ht
>ml
>
>
> |