Csound Csound-dev Csound-tekno Search About

[Csnd] Csound 5.12.1 and ALSA midi broken

Date2010-02-15 22:04
FromRene Djack
Subject[Csnd] Csound 5.12.1 and ALSA midi broken

Hi list,

I just compiled the csound5.12.1 source and i notice that midi is no more working
on my Ubuntu 9.10.

The problem is with the file rtalsa.c:

With rtalsa.c version 1.32, midi device -Mhw1:0 is ok, -Ma is ok, midi and rt audio are perfect.

With rtalsa.c version 1.36 (last version) i have the messages

      ALSA: opened MIDI input device 'hw:1,0'
      ALSA midi: No devices found

and cpu load goes to 100% and csound hangs.


Cheers,
René

Date2010-02-16 09:57
FromAndres Cabrera
Subject[Csnd] Re: Csound 5.12.1 and ALSA midi broken
Hi,

I think this one's mine. If things were working fine with -Ma but were
broken if you specified -Mhw:1,0 then this bug is now fixed in cvs.

Are you having problems with -Ma too?

Cheers,
Andrés

On Mon, Feb 15, 2010 at 10:04 PM, Rene Djack  wrote:
>
> Hi list,
>
> I just compiled the csound5.12.1 source and i notice that midi is no more
> working
> on my Ubuntu 9.10.
>
> The problem is with the file rtalsa.c:
>
> With rtalsa.c version 1.32, midi device -Mhw1:0 is ok, -Ma is ok, midi and
> rt audio are perfect.
>
> With rtalsa.c version 1.36 (last version) i have the messages
>
>       ALSA: opened MIDI input device 'hw:1,0'
>       ALSA midi: No devices found
>
> and cpu load goes to 100% and csound hangs.
>
>
> Cheers,
> René



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-02-16 19:09
FromRene Djack
Subject[Csnd] Re: Re: Csound 5.12.1 and ALSA midi broken
Attachmentsmidi_Tassman_mono1.csd  Filters.udo  
Hi,

With Csound 5.12.1:
With -Ma flag, midi is working but i have abnormal high cpu load,
and sometime goes to 100% and csound hangs.

Csound today cvs version:
Thanks -Mhw:1,0 is now working but i still have higher cpu load.

With my included synth with cs5.11.1 i play in real time with only 28% cpu load.
I can't play it with 5.12.1 neither with last cvs.
Csound hangs and i have to kill it.
Sometime i get the message "Error writing data to audio output device"


(I have re-compiled my old 5.11.1 version to be sure that the problem is not coming from a Ubuntu update.)



Cheers,
René





2010/2/16 Andres Cabrera <mantaraya36@gmail.com>
Hi,

I think this one's mine. If things were working fine with -Ma but were
broken if you specified -Mhw:1,0 then this bug is now fixed in cvs.

Are you having problems with -Ma too?

Cheers,
Andrés

On Mon, Feb 15, 2010 at 10:04 PM, Rene Djack <rene.djack@gmail.com> wrote:
>
> Hi list,
>
> I just compiled the csound5.12.1 source and i notice that midi is no more
> working
> on my Ubuntu 9.10.
>
> The problem is with the file rtalsa.c:
>
> With rtalsa.c version 1.32, midi device -Mhw1:0 is ok, -Ma is ok, midi and
> rt audio are perfect.
>
> With rtalsa.c version 1.36 (last version) i have the messages
>
>       ALSA: opened MIDI input device 'hw:1,0'
>       ALSA midi: No devices found
>
> and cpu load goes to 100% and csound hangs.
>
>
> Cheers,
> René



--


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-02-16 19:12
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Csound 5.12.1 and ALSA midi broken
Thanks for having a look. Seems not related to MIDI. Are you having
the same problems if you don't use portmidi instead of alsa MIDI?

Cheers,
Andrés

On Tue, Feb 16, 2010 at 7:09 PM, Rene Djack  wrote:
> Hi,
>
> With Csound 5.12.1:
> With -Ma flag, midi is working but i have abnormal high cpu load,
> and sometime goes to 100% and csound hangs.
>
> Csound today cvs version:
> Thanks -Mhw:1,0 is now working but i still have higher cpu load.
>
> With my included synth with cs5.11.1 i play in real time with only 28% cpu
> load.
> I can't play it with 5.12.1 neither with last cvs.
> Csound hangs and i have to kill it.
> Sometime i get the message "Error writing data to audio output device"
>
>
> (I have re-compiled my old 5.11.1 version to be sure that the problem is not
> coming from a Ubuntu update.)
>
>
>
> Cheers,
> René
>
>
>
>
>
> 2010/2/16 Andres Cabrera 
>>
>> Hi,
>>
>> I think this one's mine. If things were working fine with -Ma but were
>> broken if you specified -Mhw:1,0 then this bug is now fixed in cvs.
>>
>> Are you having problems with -Ma too?
>>
>> Cheers,
>> Andrés
>>
>> On Mon, Feb 15, 2010 at 10:04 PM, Rene Djack  wrote:
>> >
>> > Hi list,
>> >
>> > I just compiled the csound5.12.1 source and i notice that midi is no
>> > more
>> > working
>> > on my Ubuntu 9.10.
>> >
>> > The problem is with the file rtalsa.c:
>> >
>> > With rtalsa.c version 1.32, midi device -Mhw1:0 is ok, -Ma is ok, midi
>> > and
>> > rt audio are perfect.
>> >
>> > With rtalsa.c version 1.36 (last version) i have the messages
>> >
>> >       ALSA: opened MIDI input device 'hw:1,0'
>> >       ALSA midi: No devices found
>> >
>> > and cpu load goes to 100% and csound hangs.
>> >
>> >
>> > Cheers,
>> > René
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-02-17 08:31
FromRene Djack
Subject[Csnd] Re: Re: Re: Re: Csound 5.12.1 and ALSA midi broken
Hi,

This new version give me headache....

First, many of my rt synth stop to make sounds because i use udo for filters
and inside most of them i have asig_old = asig.

I have to replace by asig_old = asig * 1.0    (crazy !!)

Coming back to alsa:
Tested with midi_Tassman_mono1.csd and updated Filters.udo

-fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=alsa   -Mhw:1,0        ;high cpu load
-fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=alsa   -Mhw:1,0        ;good
-fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=pm     -M2               ;good
-fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=pm     -M2               ;high cpu load
-fdm0 -odac   -b16 -B512  -+rtaudio=jack  -+rtmidi=alsa   -Mhw:1,0        ;good


So -+rtaudio=alsa is very cpu hungry

Thanks for your help
Cheers,
René



2010/2/16 Andres Cabrera <mantaraya36@gmail.com>
Thanks for having a look. Seems not related to MIDI. Are you having
the same problems if you don't use portmidi instead of alsa MIDI?

Cheers,
Andrés

On Tue, Feb 16, 2010 at 7:09 PM, Rene Djack <rene.djack@gmail.com> wrote:
> Hi,
>
> With Csound 5.12.1:
> With -Ma flag, midi is working but i have abnormal high cpu load,
> and sometime goes to 100% and csound hangs.
>
> Csound today cvs version:
> Thanks -Mhw:1,0 is now working but i still have higher cpu load.
>
> With my included synth with cs5.11.1 i play in real time with only 28% cpu
> load.
> I can't play it with 5.12.1 neither with last cvs.
> Csound hangs and i have to kill it.
> Sometime i get the message "Error writing data to audio output device"
>
>
> (I have re-compiled my old 5.11.1 version to be sure that the problem is not
> coming from a Ubuntu update.)
>
>
>
> Cheers,
> René
>
>
>
>
>
> 2010/2/16 Andres Cabrera <mantaraya36@gmail.com>
>>
>> Hi,
>>
>> I think this one's mine. If things were working fine with -Ma but were
>> broken if you specified -Mhw:1,0 then this bug is now fixed in cvs.
>>
>> Are you having problems with -Ma too?
>>
>> Cheers,
>> Andrés
>>
>> On Mon, Feb 15, 2010 at 10:04 PM, Rene Djack <rene.djack@gmail.com> wrote:
>> >
>> > Hi list,
>> >
>> > I just compiled the csound5.12.1 source and i notice that midi is no
>> > more
>> > working
>> > on my Ubuntu 9.10.
>> >
>> > The problem is with the file rtalsa.c:
>> >
>> > With rtalsa.c version 1.32, midi device -Mhw1:0 is ok, -Ma is ok, midi
>> > and
>> > rt audio are perfect.
>> >
>> > With rtalsa.c version 1.36 (last version) i have the messages
>> >
>> >       ALSA: opened MIDI input device 'hw:1,0'
>> >       ALSA midi: No devices found
>> >
>> > and cpu load goes to 100% and csound hangs.
>> >
>> >
>> > Cheers,
>> > René
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>



--


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-02-17 09:52
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: Re: Csound 5.12.1 and ALSA midi broken
Hi,

These are the changes from 5.11 in rtalsa.c:

http://csound.cvs.sourceforge.net/viewvc/csound/csound5/InOut/rtalsa.c?r1=1.29&r2=1.37

I only see one change that might have triggered this, which is line 322.

All the rest seem related to MIDI or just cosmetic...

Any chance there has been any changes in your alsa configuration?

The old parser is a bit broken in this release, I get the feeling it's
better to use the new parser mostly.

Cheers,
Andrés


On Wed, Feb 17, 2010 at 8:31 AM, Rene Djack  wrote:
> Hi,
>
> This new version give me headache....
>
> First, many of my rt synth stop to make sounds because i use udo for filters
> and inside most of them i have asig_old = asig.
>
> I have to replace by asig_old = asig * 1.0    (crazy !!)
>
> Coming back to alsa:
> Tested with midi_Tassman_mono1.csd and updated Filters.udo
>
> -fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=alsa   -Mhw:1,0
> ;high cpu load
> -fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=alsa   -Mhw:1,0
> ;good
> -fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=pm     -M2
> ;good
> -fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=pm     -M2
> ;high cpu load
> -fdm0 -odac   -b16 -B512  -+rtaudio=jack  -+rtmidi=alsa   -Mhw:1,0
> ;good
>
>
> So -+rtaudio=alsa is very cpu hungry
>
> Thanks for your help
> Cheers,
> René
>
>
>
> 2010/2/16 Andres Cabrera 
>>
>> Thanks for having a look. Seems not related to MIDI. Are you having
>> the same problems if you don't use portmidi instead of alsa MIDI?
>>
>> Cheers,
>> Andrés
>>
>> On Tue, Feb 16, 2010 at 7:09 PM, Rene Djack  wrote:
>> > Hi,
>> >
>> > With Csound 5.12.1:
>> > With -Ma flag, midi is working but i have abnormal high cpu load,
>> > and sometime goes to 100% and csound hangs.
>> >
>> > Csound today cvs version:
>> > Thanks -Mhw:1,0 is now working but i still have higher cpu load.
>> >
>> > With my included synth with cs5.11.1 i play in real time with only 28%
>> > cpu
>> > load.
>> > I can't play it with 5.12.1 neither with last cvs.
>> > Csound hangs and i have to kill it.
>> > Sometime i get the message "Error writing data to audio output device"
>> >
>> >
>> > (I have re-compiled my old 5.11.1 version to be sure that the problem is
>> > not
>> > coming from a Ubuntu update.)
>> >
>> >
>> >
>> > Cheers,
>> > René
>> >
>> >
>> >
>> >
>> >
>> > 2010/2/16 Andres Cabrera 
>> >>
>> >> Hi,
>> >>
>> >> I think this one's mine. If things were working fine with -Ma but were
>> >> broken if you specified -Mhw:1,0 then this bug is now fixed in cvs.
>> >>
>> >> Are you having problems with -Ma too?
>> >>
>> >> Cheers,
>> >> Andrés
>> >>
>> >> On Mon, Feb 15, 2010 at 10:04 PM, Rene Djack 
>> >> wrote:
>> >> >
>> >> > Hi list,
>> >> >
>> >> > I just compiled the csound5.12.1 source and i notice that midi is no
>> >> > more
>> >> > working
>> >> > on my Ubuntu 9.10.
>> >> >
>> >> > The problem is with the file rtalsa.c:
>> >> >
>> >> > With rtalsa.c version 1.32, midi device -Mhw1:0 is ok, -Ma is ok,
>> >> > midi
>> >> > and
>> >> > rt audio are perfect.
>> >> >
>> >> > With rtalsa.c version 1.36 (last version) i have the messages
>> >> >
>> >> >       ALSA: opened MIDI input device 'hw:1,0'
>> >> >       ALSA midi: No devices found
>> >> >
>> >> > and cpu load goes to 100% and csound hangs.
>> >> >
>> >> >
>> >> > Cheers,
>> >> > René
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >>
>> >> Andrés
>> >>
>> >>
>> >> Send bugs reports to this list.
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-02-17 13:47
FromRene Djack
Subject[Csnd] Re: Re: Re: Re: Re: Re: Csound 5.12.1 and ALSA midi broken
Hi Andres,

I only see one change that might have triggered this, which is line 322:
Agree as per my message on Csound-Dev Dec 11,2009; 8:00 pm, but i am not a programmer !!

Any chance there has been any changes in your alsa configuration?
Difficult for me to know.

I use Ubuntu Studio with kernel 2.6.31-9-rt and there is many software
using alsa without problem.
I have not touched alsa and if an update change it, it does not affect csound 5.11.1.

The old parser is a bit broken in this release:
The new one seem to be also broken...so i switch back to version 5.11.1 for the time being.

Thanks for all
Cheers,
René



2010/2/17 Andres Cabrera <mantaraya36@gmail.com>
Hi,

These are the changes from 5.11 in rtalsa.c:

http://csound.cvs.sourceforge.net/viewvc/csound/csound5/InOut/rtalsa.c?r1=1.29&r2=1.37

I only see one change that might have triggered this, which is line 322.

All the rest seem related to MIDI or just cosmetic...

Any chance there has been any changes in your alsa configuration?

The old parser is a bit broken in this release, I get the feeling it's
better to use the new parser mostly.

Cheers,
Andrés


On Wed, Feb 17, 2010 at 8:31 AM, Rene Djack <rene.djack@gmail.com> wrote:
> Hi,
>
> This new version give me headache....
>
> First, many of my rt synth stop to make sounds because i use udo for filters
> and inside most of them i have asig_old = asig.
>
> I have to replace by asig_old = asig * 1.0    (crazy !!)
>
> Coming back to alsa:
> Tested with midi_Tassman_mono1.csd and updated Filters.udo
>
> -fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=alsa   -Mhw:1,0
> ;high cpu load
> -fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=alsa   -Mhw:1,0
> ;good
> -fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=pm     -M2
> ;good
> -fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=pm     -M2
> ;high cpu load
> -fdm0 -odac   -b16 -B512  -+rtaudio=jack  -+rtmidi=alsa   -Mhw:1,0
> ;good
>
>
> So -+rtaudio=alsa is very cpu hungry
>
> Thanks for your help
> Cheers,
> René
>
>
>
> 2010/2/16 Andres Cabrera <mantaraya36@gmail.com>
>>
>> Thanks for having a look. Seems not related to MIDI. Are you having
>> the same problems if you don't use portmidi instead of alsa MIDI?
>>
>> Cheers,
>> Andrés
>>
>> On Tue, Feb 16, 2010 at 7:09 PM, Rene Djack <rene.djack@gmail.com> wrote:
>> > Hi,
>> >
>> > With Csound 5.12.1:
>> > With -Ma flag, midi is working but i have abnormal high cpu load,
>> > and sometime goes to 100% and csound hangs.
>> >
>> > Csound today cvs version:
>> > Thanks -Mhw:1,0 is now working but i still have higher cpu load.
>> >
>> > With my included synth with cs5.11.1 i play in real time with only 28%
>> > cpu
>> > load.
>> > I can't play it with 5.12.1 neither with last cvs.
>> > Csound hangs and i have to kill it.
>> > Sometime i get the message "Error writing data to audio output device"
>> >
>> >
>> > (I have re-compiled my old 5.11.1 version to be sure that the problem is
>> > not
>> > coming from a Ubuntu update.)
>> >
>> >
>> >
>> > Cheers,
>> > René
>> >
>> >
>> >
>> >
>> >
>> > 2010/2/16 Andres Cabrera <mantaraya36@gmail.com>
>> >>
>> >> Hi,
>> >>
>> >> I think this one's mine. If things were working fine with -Ma but were
>> >> broken if you specified -Mhw:1,0 then this bug is now fixed in cvs.
>> >>
>> >> Are you having problems with -Ma too?
>> >>
>> >> Cheers,
>> >> Andrés
>> >>
>> >> On Mon, Feb 15, 2010 at 10:04 PM, Rene Djack <rene.djack@gmail.com>
>> >> wrote:
>> >> >
>> >> > Hi list,
>> >> >
>> >> > I just compiled the csound5.12.1 source and i notice that midi is no
>> >> > more
>> >> > working
>> >> > on my Ubuntu 9.10.
>> >> >
>> >> > The problem is with the file rtalsa.c:
>> >> >
>> >> > With rtalsa.c version 1.32, midi device -Mhw1:0 is ok, -Ma is ok,
>> >> > midi
>> >> > and
>> >> > rt audio are perfect.
>> >> >
>> >> > With rtalsa.c version 1.36 (last version) i have the messages
>> >> >
>> >> >       ALSA: opened MIDI input device 'hw:1,0'
>> >> >       ALSA midi: No devices found
>> >> >
>> >> > and cpu load goes to 100% and csound hangs.
>> >> >
>> >> >
>> >> > Cheers,
>> >> > René
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >>
>> >> Andrés
>> >>
>> >>
>> >> Send bugs reports to this list.
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>



--


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-02-17 14:17
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Csound 5.12.1 and ALSA midi broken
Hi,

You can try specifying "plughw" and "default" as the alsa devices to
see if this might be the cause...

Cheers,
Andrés

On Wed, Feb 17, 2010 at 1:47 PM, Rene Djack  wrote:
> Hi Andres,
>
> I only see one change that might have triggered this, which is line 322:
> Agree as per my message on Csound-Dev Dec 11,2009; 8:00 pm, but i am not a
> programmer !!
>
> Any chance there has been any changes in your alsa configuration?
> Difficult for me to know.
>
> I use Ubuntu Studio with kernel 2.6.31-9-rt and there is many software
> using alsa without problem.
> I have not touched alsa and if an update change it, it does not affect
> csound 5.11.1.
>
> The old parser is a bit broken in this release:
> The new one seem to be also broken...so i switch back to version 5.11.1 for
> the time being.
>
> Thanks for all
> Cheers,
> René
>
>
>
> 2010/2/17 Andres Cabrera 
>>
>> Hi,
>>
>> These are the changes from 5.11 in rtalsa.c:
>>
>>
>> http://csound.cvs.sourceforge.net/viewvc/csound/csound5/InOut/rtalsa.c?r1=1.29&r2=1.37
>>
>> I only see one change that might have triggered this, which is line 322.
>>
>> All the rest seem related to MIDI or just cosmetic...
>>
>> Any chance there has been any changes in your alsa configuration?
>>
>> The old parser is a bit broken in this release, I get the feeling it's
>> better to use the new parser mostly.
>>
>> Cheers,
>> Andrés
>>
>>
>> On Wed, Feb 17, 2010 at 8:31 AM, Rene Djack  wrote:
>> > Hi,
>> >
>> > This new version give me headache....
>> >
>> > First, many of my rt synth stop to make sounds because i use udo for
>> > filters
>> > and inside most of them i have asig_old = asig.
>> >
>> > I have to replace by asig_old = asig * 1.0    (crazy !!)
>> >
>> > Coming back to alsa:
>> > Tested with midi_Tassman_mono1.csd and updated Filters.udo
>> >
>> > -fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=alsa   -Mhw:1,0
>> > ;high cpu load
>> > -fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=alsa   -Mhw:1,0
>> > ;good
>> > -fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=pm     -M2
>> > ;good
>> > -fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=pm     -M2
>> > ;high cpu load
>> > -fdm0 -odac   -b16 -B512  -+rtaudio=jack  -+rtmidi=alsa   -Mhw:1,0
>> > ;good
>> >
>> >
>> > So -+rtaudio=alsa is very cpu hungry
>> >
>> > Thanks for your help
>> > Cheers,
>> > René
>> >
>> >
>> >
>> > 2010/2/16 Andres Cabrera 
>> >>
>> >> Thanks for having a look. Seems not related to MIDI. Are you having
>> >> the same problems if you don't use portmidi instead of alsa MIDI?
>> >>
>> >> Cheers,
>> >> Andrés
>> >>
>> >> On Tue, Feb 16, 2010 at 7:09 PM, Rene Djack 
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > With Csound 5.12.1:
>> >> > With -Ma flag, midi is working but i have abnormal high cpu load,
>> >> > and sometime goes to 100% and csound hangs.
>> >> >
>> >> > Csound today cvs version:
>> >> > Thanks -Mhw:1,0 is now working but i still have higher cpu load.
>> >> >
>> >> > With my included synth with cs5.11.1 i play in real time with only
>> >> > 28%
>> >> > cpu
>> >> > load.
>> >> > I can't play it with 5.12.1 neither with last cvs.
>> >> > Csound hangs and i have to kill it.
>> >> > Sometime i get the message "Error writing data to audio output
>> >> > device"
>> >> >
>> >> >
>> >> > (I have re-compiled my old 5.11.1 version to be sure that the problem
>> >> > is
>> >> > not
>> >> > coming from a Ubuntu update.)
>> >> >
>> >> >
>> >> >
>> >> > Cheers,
>> >> > René
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > 2010/2/16 Andres Cabrera 
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> I think this one's mine. If things were working fine with -Ma but
>> >> >> were
>> >> >> broken if you specified -Mhw:1,0 then this bug is now fixed in cvs.
>> >> >>
>> >> >> Are you having problems with -Ma too?
>> >> >>
>> >> >> Cheers,
>> >> >> Andrés
>> >> >>
>> >> >> On Mon, Feb 15, 2010 at 10:04 PM, Rene Djack 
>> >> >> wrote:
>> >> >> >
>> >> >> > Hi list,
>> >> >> >
>> >> >> > I just compiled the csound5.12.1 source and i notice that midi is
>> >> >> > no
>> >> >> > more
>> >> >> > working
>> >> >> > on my Ubuntu 9.10.
>> >> >> >
>> >> >> > The problem is with the file rtalsa.c:
>> >> >> >
>> >> >> > With rtalsa.c version 1.32, midi device -Mhw1:0 is ok, -Ma is ok,
>> >> >> > midi
>> >> >> > and
>> >> >> > rt audio are perfect.
>> >> >> >
>> >> >> > With rtalsa.c version 1.36 (last version) i have the messages
>> >> >> >
>> >> >> >       ALSA: opened MIDI input device 'hw:1,0'
>> >> >> >       ALSA midi: No devices found
>> >> >> >
>> >> >> > and cpu load goes to 100% and csound hangs.
>> >> >> >
>> >> >> >
>> >> >> > Cheers,
>> >> >> > René
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >>
>> >> >>
>> >> >> Andrés
>> >> >>
>> >> >>
>> >> >> Send bugs reports to this list.
>> >> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> >> "unsubscribe
>> >> >> csound"
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >>
>> >> Andrés
>> >>
>> >>
>> >> Send bugs reports to this list.
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-02-17 15:22
FromRene Djack
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Csound 5.12.1 and ALSA midi broken
Hi,

With plughw device it is perfect....((o^o))

-fdm0 -odac:plughw -b16 -B512 --expression-opt -+rtaudio=alsa -+rtmidi=alsa -Mhw:1,0

Thanks a lot
René


2010/2/17 Andres Cabrera <mantaraya36@gmail.com>
Hi,

You can try specifying "plughw" and "default" as the alsa devices to
see if this might be the cause...

Cheers,
Andrés

On Wed, Feb 17, 2010 at 1:47 PM, Rene Djack <rene.djack@gmail.com> wrote:
> Hi Andres,
>
> I only see one change that might have triggered this, which is line 322:
> Agree as per my message on Csound-Dev Dec 11,2009; 8:00 pm, but i am not a
> programmer !!
>
> Any chance there has been any changes in your alsa configuration?
> Difficult for me to know.
>
> I use Ubuntu Studio with kernel 2.6.31-9-rt and there is many software
> using alsa without problem.
> I have not touched alsa and if an update change it, it does not affect
> csound 5.11.1.
>
> The old parser is a bit broken in this release:
> The new one seem to be also broken...so i switch back to version 5.11.1 for
> the time being.
>
> Thanks for all
> Cheers,
> René
>
>
>
> 2010/2/17 Andres Cabrera <mantaraya36@gmail.com>
>>
>> Hi,
>>
>> These are the changes from 5.11 in rtalsa.c:
>>
>>
>> http://csound.cvs.sourceforge.net/viewvc/csound/csound5/InOut/rtalsa.c?r1=1.29&r2=1.37
>>
>> I only see one change that might have triggered this, which is line 322.
>>
>> All the rest seem related to MIDI or just cosmetic...
>>
>> Any chance there has been any changes in your alsa configuration?
>>
>> The old parser is a bit broken in this release, I get the feeling it's
>> better to use the new parser mostly.
>>
>> Cheers,
>> Andrés
>>
>>
>> On Wed, Feb 17, 2010 at 8:31 AM, Rene Djack <rene.djack@gmail.com> wrote:
>> > Hi,
>> >
>> > This new version give me headache....
>> >
>> > First, many of my rt synth stop to make sounds because i use udo for
>> > filters
>> > and inside most of them i have asig_old = asig.
>> >
>> > I have to replace by asig_old = asig * 1.0    (crazy !!)
>> >
>> > Coming back to alsa:
>> > Tested with midi_Tassman_mono1.csd and updated Filters.udo
>> >
>> > -fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=alsa   -Mhw:1,0
>> > ;high cpu load
>> > -fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=alsa   -Mhw:1,0
>> > ;good
>> > -fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=pm     -M2
>> > ;good
>> > -fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=pm     -M2
>> > ;high cpu load
>> > -fdm0 -odac   -b16 -B512  -+rtaudio=jack  -+rtmidi=alsa   -Mhw:1,0
>> > ;good
>> >
>> >
>> > So -+rtaudio=alsa is very cpu hungry
>> >
>> > Thanks for your help
>> > Cheers,
>> > René
>> >
>> >
>> >
>> > 2010/2/16 Andres Cabrera <mantaraya36@gmail.com>
>> >>
>> >> Thanks for having a look. Seems not related to MIDI. Are you having
>> >> the same problems if you don't use portmidi instead of alsa MIDI?
>> >>
>> >> Cheers,
>> >> Andrés
>> >>
>> >> On Tue, Feb 16, 2010 at 7:09 PM, Rene Djack <rene.djack@gmail.com>
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > With Csound 5.12.1:
>> >> > With -Ma flag, midi is working but i have abnormal high cpu load,
>> >> > and sometime goes to 100% and csound hangs.
>> >> >
>> >> > Csound today cvs version:
>> >> > Thanks -Mhw:1,0 is now working but i still have higher cpu load.
>> >> >
>> >> > With my included synth with cs5.11.1 i play in real time with only
>> >> > 28%
>> >> > cpu
>> >> > load.
>> >> > I can't play it with 5.12.1 neither with last cvs.
>> >> > Csound hangs and i have to kill it.
>> >> > Sometime i get the message "Error writing data to audio output
>> >> > device"
>> >> >
>> >> >
>> >> > (I have re-compiled my old 5.11.1 version to be sure that the problem
>> >> > is
>> >> > not
>> >> > coming from a Ubuntu update.)
>> >> >
>> >> >
>> >> >
>> >> > Cheers,
>> >> > René
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > 2010/2/16 Andres Cabrera <mantaraya36@gmail.com>
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> I think this one's mine. If things were working fine with -Ma but
>> >> >> were
>> >> >> broken if you specified -Mhw:1,0 then this bug is now fixed in cvs.
>> >> >>
>> >> >> Are you having problems with -Ma too?
>> >> >>
>> >> >> Cheers,
>> >> >> Andrés
>> >> >>
>> >> >> On Mon, Feb 15, 2010 at 10:04 PM, Rene Djack <rene.djack@gmail.com>
>> >> >> wrote:
>> >> >> >
>> >> >> > Hi list,
>> >> >> >
>> >> >> > I just compiled the csound5.12.1 source and i notice that midi is
>> >> >> > no
>> >> >> > more
>> >> >> > working
>> >> >> > on my Ubuntu 9.10.
>> >> >> >
>> >> >> > The problem is with the file rtalsa.c:
>> >> >> >
>> >> >> > With rtalsa.c version 1.32, midi device -Mhw1:0 is ok, -Ma is ok,
>> >> >> > midi
>> >> >> > and
>> >> >> > rt audio are perfect.
>> >> >> >
>> >> >> > With rtalsa.c version 1.36 (last version) i have the messages
>> >> >> >
>> >> >> >       ALSA: opened MIDI input device 'hw:1,0'
>> >> >> >       ALSA midi: No devices found
>> >> >> >
>> >> >> > and cpu load goes to 100% and csound hangs.
>> >> >> >
>> >> >> >
>> >> >> > Cheers,
>> >> >> > René
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >>
>> >> >>
>> >> >> Andrés
>> >> >>
>> >> >>
>> >> >> Send bugs reports to this list.
>> >> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> >> "unsubscribe
>> >> >> csound"
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >>
>> >> Andrés
>> >>
>> >>
>> >> Send bugs reports to this list.
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>



--


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-02-17 16:24
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Csound 5.12.1 and ALSA midi broken
Hi,

Great! So it seems "plughw" in your case worked better than "default".
I remember there was a discussion about this change when it was done,
but I don't remember exactly why it was done...

Cheers,
Andrés

On Wed, Feb 17, 2010 at 3:22 PM, Rene Djack  wrote:
> Hi,
>
> With plughw device it is perfect....((o^o))
>
> -fdm0 -odac:plughw -b16 -B512 --expression-opt -+rtaudio=alsa -+rtmidi=alsa
> -Mhw:1,0
>
> Thanks a lot
> René
>
>
> 2010/2/17 Andres Cabrera 
>>
>> Hi,
>>
>> You can try specifying "plughw" and "default" as the alsa devices to
>> see if this might be the cause...
>>
>> Cheers,
>> Andrés
>>
>> On Wed, Feb 17, 2010 at 1:47 PM, Rene Djack  wrote:
>> > Hi Andres,
>> >
>> > I only see one change that might have triggered this, which is line 322:
>> > Agree as per my message on Csound-Dev Dec 11,2009; 8:00 pm, but i am not
>> > a
>> > programmer !!
>> >
>> > Any chance there has been any changes in your alsa configuration?
>> > Difficult for me to know.
>> >
>> > I use Ubuntu Studio with kernel 2.6.31-9-rt and there is many software
>> > using alsa without problem.
>> > I have not touched alsa and if an update change it, it does not affect
>> > csound 5.11.1.
>> >
>> > The old parser is a bit broken in this release:
>> > The new one seem to be also broken...so i switch back to version 5.11.1
>> > for
>> > the time being.
>> >
>> > Thanks for all
>> > Cheers,
>> > René
>> >
>> >
>> >
>> > 2010/2/17 Andres Cabrera 
>> >>
>> >> Hi,
>> >>
>> >> These are the changes from 5.11 in rtalsa.c:
>> >>
>> >>
>> >>
>> >> http://csound.cvs.sourceforge.net/viewvc/csound/csound5/InOut/rtalsa.c?r1=1.29&r2=1.37
>> >>
>> >> I only see one change that might have triggered this, which is line
>> >> 322.
>> >>
>> >> All the rest seem related to MIDI or just cosmetic...
>> >>
>> >> Any chance there has been any changes in your alsa configuration?
>> >>
>> >> The old parser is a bit broken in this release, I get the feeling it's
>> >> better to use the new parser mostly.
>> >>
>> >> Cheers,
>> >> Andrés
>> >>
>> >>
>> >> On Wed, Feb 17, 2010 at 8:31 AM, Rene Djack 
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > This new version give me headache....
>> >> >
>> >> > First, many of my rt synth stop to make sounds because i use udo for
>> >> > filters
>> >> > and inside most of them i have asig_old = asig.
>> >> >
>> >> > I have to replace by asig_old = asig * 1.0    (crazy !!)
>> >> >
>> >> > Coming back to alsa:
>> >> > Tested with midi_Tassman_mono1.csd and updated Filters.udo
>> >> >
>> >> > -fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=alsa   -Mhw:1,0
>> >> > ;high cpu load
>> >> > -fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=alsa   -Mhw:1,0
>> >> > ;good
>> >> > -fdm0 -odac0 -b16 -B512  -+rtaudio=pa     -+rtmidi=pm     -M2
>> >> > ;good
>> >> > -fdm0 -odac   -b16 -B512  -+rtaudio=alsa  -+rtmidi=pm     -M2
>> >> > ;high cpu load
>> >> > -fdm0 -odac   -b16 -B512  -+rtaudio=jack  -+rtmidi=alsa   -Mhw:1,0
>> >> > ;good
>> >> >
>> >> >
>> >> > So -+rtaudio=alsa is very cpu hungry
>> >> >
>> >> > Thanks for your help
>> >> > Cheers,
>> >> > René
>> >> >
>> >> >
>> >> >
>> >> > 2010/2/16 Andres Cabrera 
>> >> >>
>> >> >> Thanks for having a look. Seems not related to MIDI. Are you having
>> >> >> the same problems if you don't use portmidi instead of alsa MIDI?
>> >> >>
>> >> >> Cheers,
>> >> >> Andrés
>> >> >>
>> >> >> On Tue, Feb 16, 2010 at 7:09 PM, Rene Djack 
>> >> >> wrote:
>> >> >> > Hi,
>> >> >> >
>> >> >> > With Csound 5.12.1:
>> >> >> > With -Ma flag, midi is working but i have abnormal high cpu load,
>> >> >> > and sometime goes to 100% and csound hangs.
>> >> >> >
>> >> >> > Csound today cvs version:
>> >> >> > Thanks -Mhw:1,0 is now working but i still have higher cpu load.
>> >> >> >
>> >> >> > With my included synth with cs5.11.1 i play in real time with only
>> >> >> > 28%
>> >> >> > cpu
>> >> >> > load.
>> >> >> > I can't play it with 5.12.1 neither with last cvs.
>> >> >> > Csound hangs and i have to kill it.
>> >> >> > Sometime i get the message "Error writing data to audio output
>> >> >> > device"
>> >> >> >
>> >> >> >
>> >> >> > (I have re-compiled my old 5.11.1 version to be sure that the
>> >> >> > problem
>> >> >> > is
>> >> >> > not
>> >> >> > coming from a Ubuntu update.)
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > Cheers,
>> >> >> > René
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > 2010/2/16 Andres Cabrera 
>> >> >> >>
>> >> >> >> Hi,
>> >> >> >>
>> >> >> >> I think this one's mine. If things were working fine with -Ma but
>> >> >> >> were
>> >> >> >> broken if you specified -Mhw:1,0 then this bug is now fixed in
>> >> >> >> cvs.
>> >> >> >>
>> >> >> >> Are you having problems with -Ma too?
>> >> >> >>
>> >> >> >> Cheers,
>> >> >> >> Andrés
>> >> >> >>
>> >> >> >> On Mon, Feb 15, 2010 at 10:04 PM, Rene Djack
>> >> >> >> 
>> >> >> >> wrote:
>> >> >> >> >
>> >> >> >> > Hi list,
>> >> >> >> >
>> >> >> >> > I just compiled the csound5.12.1 source and i notice that midi
>> >> >> >> > is
>> >> >> >> > no
>> >> >> >> > more
>> >> >> >> > working
>> >> >> >> > on my Ubuntu 9.10.
>> >> >> >> >
>> >> >> >> > The problem is with the file rtalsa.c:
>> >> >> >> >
>> >> >> >> > With rtalsa.c version 1.32, midi device -Mhw1:0 is ok, -Ma is
>> >> >> >> > ok,
>> >> >> >> > midi
>> >> >> >> > and
>> >> >> >> > rt audio are perfect.
>> >> >> >> >
>> >> >> >> > With rtalsa.c version 1.36 (last version) i have the messages
>> >> >> >> >
>> >> >> >> >       ALSA: opened MIDI input device 'hw:1,0'
>> >> >> >> >       ALSA midi: No devices found
>> >> >> >> >
>> >> >> >> > and cpu load goes to 100% and csound hangs.
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > Cheers,
>> >> >> >> > René
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >>
>> >> >> >>
>> >> >> >> Andrés
>> >> >> >>
>> >> >> >>
>> >> >> >> Send bugs reports to this list.
>> >> >> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> >> >> "unsubscribe
>> >> >> >> csound"
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >>
>> >> >>
>> >> >> Andrés
>> >> >>
>> >> >>
>> >> >> Send bugs reports to this list.
>> >> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> >> "unsubscribe
>> >> >> csound"
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >>
>> >> Andrés
>> >>
>> >>
>> >> Send bugs reports to this list.
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"