Csound Csound-dev Csound-tekno Search About

[Csnd] realtime output without audio / virtual alsa devices

Date2010-05-02 19:49
Fromkelly hirai
Subject[Csnd] realtime output without audio / virtual alsa devices
i'm trying to write a midi processor. in the end i will use alsa hardware 
midi devices, but while i'm at the coffee shop i have vkeybd and timidity.

sr     = 48000
kr     =  4800
ksmps  =    10
nchnls =     2

instr 11
   kstatus kchan kpch kvel midiin
                           midion kchan, kpch, kvel
endin

i can run the portmidi driver with the following command:

csound -odac -+rtmidi=portmidi -Q1 -M1 -d  passthrough.orc passthrough.sco

but i don't want to have to tie up the audio just to have the score render 
in realtime. is there a flag to force realtime performance with non-audio 
processing  .orcs?

i would also like to use the alsalayer directly instead of using the 
portmidi but the syntax of virtual (non-harware) midi ports is unclear 
to me in the manual.

[khirai@lap drumlooper]$ aconnect -o
client 14: 'Midi Through' [type=kernel]
     0 'Midi Through Port-0'
client 129: 'TiMidity' [type=user]
     0 'TiMidity port 0 '
     1 'TiMidity port 1 '
     2 'TiMidity port 2 '
     3 'TiMidity port 3 '
[khirai@lap drumlooper]$ aconnect -i
client 0: 'System' [type=kernel]
     0 'Timer           '
     1 'Announce        '
client 14: 'Midi Through' [type=kernel]
     0 'Midi Through Port-0'
client 128: 'Virtual Keyboard' [type=user]
     0 'Virtual Keyboard'




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"

Date2010-05-04 18:10
FromVictor Lazzarini
Subject[Csnd] new csound 5.12.4 package for OSX 10.5
Hi everyone,

I have just updated the 5.12 package, 5.12.4. This has been built with  
full optimisation turned on, something I did not realise had not been  
done before. Performance gains are substantial, for instance,  
trapped.csd goes from 7.9 secs to 3.4 secs. I expect these to be  
across the board, so I suggest updating to it.

Thanks to Oeyvind and his student for pointing out that Csound on OSX  
was slower than it should have been.

Regards

Victor


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"

Date2010-05-04 19:52
FromPeiman Khosravi
Subject[Csnd] Re: new csound 5.12.4 package for OSX 10.5
Thanks Victor. This is great news!

Best,
Peiman

On 4 May 2010, at 18:10, Victor Lazzarini wrote:

> Hi everyone,
>
> I have just updated the 5.12 package, 5.12.4. This has been built  
> with full optimisation turned on, something I did not realise had  
> not been done before. Performance gains are substantial, for  
> instance, trapped.csd goes from 7.9 secs to 3.4 secs. I expect these  
> to be across the board, so I suggest updating to it.
>
> Thanks to Oeyvind and his student for pointing out that Csound on  
> OSX was slower than it should have been.
>
> Regards
>
> Victor
>
>
> 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"
>



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"

Date2010-05-05 15:42
FromSteven Yi
Subject[Csnd] Re: realtime output without audio / virtual alsa devices
I looked at "csound --help" and there's a flag for "--nosound".  The
manual says:

-n, --nosound
No sound. Do all processing, but bypass writing of sound to disk. This
flag does not change the execution in any other way.

the --help says "no sound onto disk or device".

I haven't tried this at all but may be worth trying.

On Sun, May 2, 2010 at 2:49 PM, kelly  hirai  wrote:
> i'm trying to write a midi processor. in the end i will use alsa hardware
> midi devices, but while i'm at the coffee shop i have vkeybd and timidity.
>
> sr     = 48000
> kr     =  4800
> ksmps  =    10
> nchnls =     2
>
> instr 11
>  kstatus kchan kpch kvel midiin
>                          midion kchan, kpch, kvel
> endin
>
> i can run the portmidi driver with the following command:
>
> csound -odac -+rtmidi=portmidi -Q1 -M1 -d  passthrough.orc passthrough.sco
>
> but i don't want to have to tie up the audio just to have the score render
> in realtime. is there a flag to force realtime performance with non-audio
> processing  .orcs?
>
> i would also like to use the alsalayer directly instead of using the
> portmidi but the syntax of virtual (non-harware) midi ports is unclear to me
> in the manual.
>
> [khirai@lap drumlooper]$ aconnect -o
> client 14: 'Midi Through' [type=kernel]
>    0 'Midi Through Port-0'
> client 129: 'TiMidity' [type=user]
>    0 'TiMidity port 0 '
>    1 'TiMidity port 1 '
>    2 'TiMidity port 2 '
>    3 'TiMidity port 3 '
> [khirai@lap drumlooper]$ aconnect -i
> client 0: 'System' [type=kernel]
>    0 'Timer           '
>    1 'Announce        '
> client 14: 'Midi Through' [type=kernel]
>    0 'Midi Through Port-0'
> client 128: 'Virtual Keyboard' [type=user]
>    0 'Virtual Keyboard'
>
>
>
>
> 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"
>
>


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"


Date2010-05-05 18:21
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Re: realtime output without audio / virtual alsa devices
> I looked at "csound --help" and there's a flag for "--nosound".  The
> manual says:
>
> -n, --nosound
> No sound. Do all processing, but bypass writing of sound to disk. This
> flag does not change the execution in any other way.
>
> the --help says "no sound onto disk or device".
>
> I haven't tried this at all but may be worth trying.

I think thi swill not work.  -n related to disk-output which is as fast as
possible.  Out needs to go through a rtaudio interface to get the
throttling effect.  One could use rtjack, or a fake device.  I suspect
that the requirement is for a rtnull which is time linked but not playing
stuff.  I do not think we have this and I do not know how to do it either.

==John ff



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"