| Try the terminal with -+rtmidi=virtual -M0 and then see if the issue is there. This will tell us whether the problem is with the midi device or driver.
Also try using -M where is your device number as reported by the console (say start with 0)
1: ftgen does no consume any time
2: 3: should be immediate.
Victor
On 16 Oct 2012, at 10:24, Raoul wrote:
> On Tuesday Victor Lazzarini wrote:
> Date: Tue, 16 Oct 2012 11:24:10 +0200
> Sender: rmgls@free.fr
>
>
>> Try adding -b64 to the options in CsOptions
>
>
> Hi Victor,
>
> with -b64 still the same result. i tried another midi interface with
> a midi cable; the latency is slightly reduced but still here.
> coremidi and portmidi produce the same latency time.
> Please how to track down this:
>
> 1: ftgen time consuming
> 2: time of midi reception
> 3: time of midi treatment
>
> Note: i run csound 5.18.03 from the terminal on osx 10.8 (recent update).
>
> thanks
>
> Raoul
> rmgls@free.fr
>
>> Victor
> On 16 Oct 2012, at 08:18, Raoul wrote:=0A=
> =0A=
>> Hi all,=0A=
>> =20=0A=
>> i tried on osx 10.8 this simple example from the manual.=0A=
>> with portmidi i get a latency of about 250 ms.=0A=
>> =20=0A=
>> so, is it a way to reduce this latency time observed on midi?=0A=
>> =20=0A=
>> Note: other softs do not have any latency with the same device:=0A=
>> a master keyboard with midi wireless transmission.=0A=
>> =20=0A=
>> Thanks.=0A=
>> =20=0A=
>> Raoul=0A=
>> rmgls@free.fr=0A=
>> =20=0A=
>> =0A=
>> =0A=
>> -+rtmidi=3Dportmidi -Ma -odac=0A=
>> =0A=
>> =0A=
>> ;Example by Andr=E9s Cabrera=0A=
>> =20=0A=
>> sr =3D 44100=0A=
>> ksmps =3D 32=0A=
>> nchnls =3D 2=0A=
>> 0dbfs =3D 1=0A=
>> =20=0A=
>> massign 0, 1 ;assign all MIDI channels to instrument 1=0A=
>> giSine ftgen 0,0,2^10,10,1 ;a function table with a sine wave=0A=
>> =20=0A=
>> instr 1=0A=
>> iCps cpsmidi ;get the frequency from the key pressed=0A=
>> iAmp ampmidi 0dbfs * 0.3 ;get the amplitude=0A=
>> aOut poscil iAmp, iCps, giSine ;generate a sine tone=0A=
>> outs aOut, aOut ;write it to the output=0A=
>> endin=0A=
>> =20=0A=
>> =0A=
>> =0A=
>> e 3600=0A=
>> =0A=
>> =0A=
>> =20=0A=
>> =20=0A=
>> Send bugs reports to the Sourceforge bug tracker=0A=
>> https://sourceforge.net/tracker/?group_id=3D81968&atid=3D564599=
> =0A=
>> Discussions of bugs and features can be posted here=0A=
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe =
> csound"=0A=
>> =20=0A=
> =0A=
> Dr Victor Lazzarini=0A=
> Senior Lecturer=0A=
> Dept. of Music=0A=
> NUI Maynooth Ireland=0A=
> tel.: +353 1 708 3545=0A=
> Victor dot Lazzarini AT nuim dot ie=0A=
> =0A=
> =0A=
> =0A=
> =0A=
> =0A=
> Send bugs reports to the Sourceforge bug tracker=0A=
> https://sourceforge.net/tracker/?group_id=3D81968&atid=3D564599=
> =0A=
> Discussions of bugs and features can be posted here=0A=
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe cs=
> ound"=0A=
> =0A=
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
|