Csound Csound-dev Csound-tekno Search About

Re: real time midi optimization

Date2007-09-01 20:23
FromVictor Lazzarini
SubjectRe: real time midi optimization
Yes, for full-duplex -B and -b should be multiples
of ksmps. With ASIO you should be able to go down
to -B64 -b128 or even lower. Make sure that you
set the lowest possible latency on your ASIO driver
panel, if it allows you to do it.

The ASIO input/output generally is the highest device
number in the portaudio list that csound displays
(and usually it says so).

Victor

>
> Hi Mike,
>
> Are you using ASIO driver with PortAudio?  MME doesn't
> have good latency.  You could try power of two ksmps as
> well (i.e. 16, 32, 64, 128).
>
> steven
>
>
>
> On 9/1/07, Michael Mossey  wrote:
> > Hello, I'm trying to use real-time midi. I have it
> > working, but I have to set the buffer sizes to -b512
> > -B2048 which is a bit more latency than I would like. My
> orc is >
> > ---------------------------
> > sr=44100
> > kr=4410
> > ksmps=10
> > nchnls=2
> >
> > ;i1  time  dur  amp
> > instr 1
> > idur = p3
> > icps cpsmidi
> > print icps
> > aout   oscili 1, icps, 1
> >    outs aout * 1000, aout * 1000
> >
> > endin
> > --------------------------------
> >
> > and my sco is
> >
> > f1 0 4096 10 1
> > i1 0 120 1 1
> >
> > ---------------
> >
> > My system is a Core 2 Duo 1.8 GHz, sound card is M-audio
> > Audiophile 24/96. 1GB ram. Running Windows XP. Using
> Csound version 5. >
> > How can I improve latency?
> >
> > -Mike
> > --
> > Send bugs reports to this list.
> > To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk >
> --
> Send bugs reports to this list.
> To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk

Date2007-09-02 01:48
FromMichael Mossey
SubjectRe: real time midi optimization
It works now. I

- chose the output device to be the ASIO driver -odac8
- set ksmps to 16
- went into control panel for my card and reduced buffer size to 512
- right now it works with -b32 -B128 . I'm not sure how these sizes 
interact with the number I set in the control panel for my card.

Anyway it works with good small latency. Excellent!

-Mike

Victor Lazzarini wrote:
> Yes, for full-duplex -B and -b should be multiples
> of ksmps. With ASIO you should be able to go down
> to -B64 -b128 or even lower. Make sure that you
> set the lowest possible latency on your ASIO driver
> panel, if it allows you to do it.
> 
> The ASIO input/output generally is the highest device
> number in the portaudio list that csound displays
> (and usually it says so).
> 
> Victor
> 
>> Hi Mike,
>>
>> Are you using ASIO driver with PortAudio?  MME doesn't
>> have good latency.  You could try power of two ksmps as
>> well (i.e. 16, 32, 64, 128).
>>
>> steven
>>
>>
>>
>> On 9/1/07, Michael Mossey  wrote:
>>> Hello, I'm trying to use real-time midi. I have it
>>> working, but I have to set the buffer sizes to -b512
>>> -B2048 which is a bit more latency than I would like. My
>> orc is >
>>> ---------------------------
>>> sr=44100
>>> kr=4410
>>> ksmps=10
>>> nchnls=2
>>>
>>> ;i1  time  dur  amp
>>> instr 1
>>> idur = p3
>>> icps cpsmidi
>>> print icps
>>> aout   oscili 1, icps, 1
>>>    outs aout * 1000, aout * 1000
>>>
>>> endin
>>> --------------------------------
>>>
>>> and my sco is
>>>
>>> f1 0 4096 10 1
>>> i1 0 120 1 1
>>>
>>> ---------------
>>>
>>> My system is a Core 2 Duo 1.8 GHz, sound card is M-audio
>>> Audiophile 24/96. 1GB ram. Running Windows XP. Using
>> Csound version 5. >
>>> How can I improve latency?
>>>
>>> -Mike
>>> --
>>> Send bugs reports to this list.
>>> To unsubscribe, send email to
>> csound-unsubscribe@lists.bath.ac.uk >
>> --
>> Send bugs reports to this list.
>> To unsubscribe, send email to
>> csound-unsubscribe@lists.bath.ac.uk