Csound Csound-dev Csound-tekno Search About

Win95 Real Time MIDI?

Date1998-02-20 05:04
FromSimon Wood
SubjectWin95 Real Time MIDI?
Hey there,

I have been recently trying to get RT Midi Input happening with CSound
(using G. Maldanado's Win95 binary).  I have had some success in getting
sound produced in RT via midi input, but I still have a few
problems..... I am using a simple sine wave orc (ie 1 oscillator) and
where there should be a note lasting for, say 2 seconds, the sound
instead repeatedly cuts in and out, so I end up with a series of shorter
sounds and lots of clicks and pops.

I should point out at this point that I am using a sequencer in Windows
to generate the Midi events... _not_ an external keyboard.  So I was
basically curious to know whether anyone has achieved satisactory RT
Midi just using a sequencer and not external MIDI hardware?


Cheers,

Simon



Date1998-02-20 07:43
FromJens Kilian
SubjectRe: Win95 Real Time MIDI?
> Hey there,
> 
> I have been recently trying to get RT Midi Input happening with CSound
> (using G. Maldanado's Win95 binary).  I have had some success in getting
> sound produced in RT via midi input, but I still have a few
> problems..... I am using a simple sine wave orc (ie 1 oscillator) and
> where there should be a note lasting for, say 2 seconds, the sound
> instead repeatedly cuts in and out, so I end up with a series of shorter
> sounds and lots of clicks and pops.
> 
> I should point out at this point that I am using a sequencer in Windows
> to generate the Midi events... _not_ an external keyboard.  So I was
> basically curious to know whether anyone has achieved satisactory RT
> Midi just using a sequencer and not external MIDI hardware?

I've had similar experiences with my port of Csound to BeOS (no, it's not
quite ready yet :-). You need to fiddle with the software/hardware buffer
sizes (and I haven't found any general rule about which sizes are good).

My main problem at the moment is that, even if I manage to avoid dropouts,
real-time MIDI performance sound very irregular (notes are played with some
random delay). I don't know if that's caused by a bug in my code or by the
setup I use (I also don't have a MIDI keyboard, so I'm using a loopback cable
and a software sequencer).

Bye,
        Jens.
--
mailto:jjk@acm.org                 phone:+49-7031-14-7698 (HP TELNET 778-7698)
  http://www.bawue.de/~jjk/          fax:+49-7031-14-7351
PGP:       06 04 1C 35 7B DC 1F 26 As the air to a bird, or the sea to a fish,
0x555DA8B5 BB A2 F0 66 77 75 E1 08 so is contempt to the contemptible. [Blake]

Date1998-02-20 15:42
FromLarry Troxler
SubjectReal Time MIDI - note preallocation was Re: Win95 Real Time MIDI?
I'm not using Windows 95, but on my Intel P100 Linux box, I found that
allocations for new events could take as much as 20ms. I found it helped
somewhat to use a dummy score to pre-allocate as many events as I wanted
to use simultaneiously, by  starting a bunch at time 0 with 0 duration.

Larry



On Fri, 20 Feb 1998, Jens Kilian wrote:

> > Hey there,
> > 
> > I have been recently trying to get RT Midi Input happening with CSound
> > (using G. Maldanado's Win95 binary).  I have had some success in getting
> > sound produced in RT via midi input, but I still have a few
> > problems..... I am using a simple sine wave orc (ie 1 oscillator) and
> > where there should be a note lasting for, say 2 seconds, the sound
> > instead repeatedly cuts in and out, so I end up with a series of shorter
> > sounds and lots of clicks and pops.
> > 
> > I should point out at this point that I am using a sequencer in Windows
> > to generate the Midi events... _not_ an external keyboard.  So I was
> > basically curious to know whether anyone has achieved satisactory RT
> > Midi just using a sequencer and not external MIDI hardware?
> 
> I've had similar experiences with my port of Csound to BeOS (no, it's not
> quite ready yet :-). You need to fiddle with the software/hardware buffer
> sizes (and I haven't found any general rule about which sizes are good).
> 
> My main problem at the moment is that, even if I manage to avoid dropouts,
> real-time MIDI performance sound very irregular (notes are played with some
> random delay). I don't know if that's caused by a bug in my code or by the
> setup I use (I also don't have a MIDI keyboard, so I'm using a loopback cable
> and a software sequencer).
> 
> Bye,
>         Jens.
> --
> mailto:jjk@acm.org                 phone:+49-7031-14-7698 (HP TELNET 778-7698)
>   http://www.bawue.de/~jjk/          fax:+49-7031-14-7351
> PGP:       06 04 1C 35 7B DC 1F 26 As the air to a bird, or the sea to a fish,
> 0x555DA8B5 BB A2 F0 66 77 75 E1 08 so is contempt to the contemptible. [Blake]
> 

--  Larry Troxler  --  lt@westnet.com  --  Patterson, NY USA  --