| Exactly how do you want to do this with MIDI? The usual behaviour in all
the MIDI drumkits I have come across (which, admittedly, is not a lot),
the two sounds are simply provided under separate MIDI notes; it it up
to the player and/or sequencer to send a NOTE OFF command to the open
hihat sound, before NOTE ON is sent to the closed sound. In other words,
under MIDI it is possible to play both sounds together. What would you
actually want to happen in that circumstance (recalling that as MIDI is
serial, one instrument will actually be triggered before the other)?
The one way of doing what you want in MIDI would be to set up the
machine to play in MONO Mode, in which each note is replaced by the next
one. The parallel to this in Csound is to write a 'legato' instrument,
using the 'negative p3' system - the 'data space' of the open hihat will
be taken over by whatever you want - the closed hihat in this instance.
You would have to do come fiddly around to avoid glitches at the
changeover. In any case, this may not be an option driving Csound by
MIDI if, as I suspect, you can't send a Mode Change command to Csound.
An alternative might be to store both sounds in one file, and modify the
indexing point into them in the instrument. Using MIDI, you would then
need to use something like the Pitchbend or Modulation Wheel to send the
control signal to the instrument to change from open to closed.
...which is all getting rather fiddly. I think I would stay with the
usual MIDI behaviour and develop my stick technique!
Richard Dobson
Sergey Batov wrote:
>
> Hi, Csounders!
>
> I asked about it already but did not get any answer.
> Say, I need to construct "hi-hat" using loscil and
> two audio files "opened_hi-hat.aif" and "closed_hi-hat.aif".
> How better to provide turnoff of "opened" note if "closed" note
> begins to play? I mean working with MIDI, of course.
>
> Thanks in advance,
>
> Sergey Batov batov@glasnet.ru
--
Test your DAW with my Soundcard Attrition Page!
http://wkweb5.cableinet.co.uk/rwd |