Csound Csound-dev Csound-tekno Search About

[Cs-dev] csoundGetModule()..

Date2013-04-30 16:04
FromRory Walsh
Subject[Cs-dev] csoundGetModule()..
AttachmentsNone  None  
I have a few questions about this. For one, when I run it I get the following list:

Module 1:  jack (audio)
Module 2:  pulse (audio)
Module 3:  devfile (midi)
Module 4:  alsaseq (midi)
Module 5:  alsa (midi)


Fine, apart from the fact that I use -+rtaudio=alsa to get real time sound. Why is alsa not listed here? Dos that interface with pulse directly? Also, is there a re way to retrieve the hw configurations? The typical frontend developer will need these too in order to select the correct device or?

Date2013-04-30 16:09
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundGetModule()..
No. I have no idea why. I'll check.


On 30 Apr 2013, at 16:04, Rory Walsh wrote:

> I have a few questions about this. For one, when I run it I get the following list:
> 
> Module 1:  jack (audio) 
> Module 2:  pulse (audio) 
> Module 3:  devfile (midi) 
> Module 4:  alsaseq (midi) 
> Module 5:  alsa (midi) 
> 
> 
> Fine, apart from the fact that I use -+rtaudio=alsa to get real time sound. Why is alsa not listed here? Dos that interface with pulse directly? Also, is there a re way to retrieve the hw configurations? The typical frontend developer will need these too in order to select the correct device or? 
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-30 16:10
FromRory Walsh
SubjectRe: [Cs-dev] csoundGetModule()..
AttachmentsNone  None  
For what it's worth, I'm just using the code providing in the API docs to list them:

  char *name, *type;
  int n = 0;
  while(!csoundGetModule(csound, n++, &name, &type))
       printf("Module %d:  %s (%s) \n", n, name, type);



On 30 April 2013 16:09, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
No. I have no idea why. I'll check.


On 30 Apr 2013, at 16:04, Rory Walsh wrote:

> I have a few questions about this. For one, when I run it I get the following list:
>
> Module 1:  jack (audio)
> Module 2:  pulse (audio)
> Module 3:  devfile (midi)
> Module 4:  alsaseq (midi)
> Module 5:  alsa (midi)
>
>
> Fine, apart from the fact that I use -+rtaudio=alsa to get real time sound. Why is alsa not listed here? Dos that interface with pulse directly? Also, is there a re way to retrieve the hw configurations? The typical frontend developer will need these too in order to select the correct device or?
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-04-30 16:10
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundGetModule()..
The alsa audio module should have been the last one on the list. I'll see why it did not show up.
On 30 Apr 2013, at 16:04, Rory Walsh wrote:

> I have a few questions about this. For one, when I run it I get the following list:
> 
> Module 1:  jack (audio) 
> Module 2:  pulse (audio) 
> Module 3:  devfile (midi) 
> Module 4:  alsaseq (midi) 
> Module 5:  alsa (midi) 
> 
> 
> Fine, apart from the fact that I use -+rtaudio=alsa to get real time sound. Why is alsa not listed here? Dos that interface with pulse directly? Also, is there a re way to retrieve the hw configurations? The typical frontend developer will need these too in order to select the correct device or? 
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-30 16:15
FromTim Neumann
SubjectRe: [Cs-dev] csoundGetModule()..
AttachmentsNone  None  
Have you tried disabling pulseaudio? Afaik it slips between applications and the alsa drivers, maybe that is why the alsa module is not showing up.
setup-pulseaudio --disable (SuSE only?)
or start your application with
pasuspender <application>


2013/4/30 Rory Walsh <rorywalsh@ear.ie>
I have a few questions about this. For one, when I run it I get the following list:

Module 1:  jack (audio)
Module 2:  pulse (audio)
Module 3:  devfile (midi)
Module 4:  alsaseq (midi)
Module 5:  alsa (midi)


Fine, apart from the fact that I use -+rtaudio=alsa to get real time sound. Why is alsa not listed here? Dos that interface with pulse directly? Also, is there a re way to retrieve the hw configurations? The typical frontend developer will need these too in order to select the correct device or?

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-04-30 16:17
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundGetModule()..
AttachmentsNone  None  
Try it again, I've changed the order, see if shows up.
On 30 Apr 2013, at 16:10, Rory Walsh wrote:

char *name, *type;
  int n = 0;
  while(!csoundGetModule(csound, n++, &name, &type))
       printf("Module %d:  %s (%s) \n", n, name, type);

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2013-04-30 16:31
FromRory Walsh
SubjectRe: [Cs-dev] csoundGetModule()..
AttachmentsNone  None  
Working now. Looks like it was adding alsa as a midi module before. So the other question about hw: configs? is there a way to get that info?



On 30 April 2013 16:17, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Try it again, I've changed the order, see if shows up.

On 30 Apr 2013, at 16:10, Rory Walsh wrote:


char *name, *type;
  int n = 0;
  while(!csoundGetModule(csound, n++, &name, &type))
       printf("Module %d:  %s (%s) \n", n, name, type);

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-04-30 16:38
FromRory Walsh
SubjectRe: [Cs-dev] csoundGetModule()..
AttachmentsNone  None  
One minute, alsa midi is not showing now when I plugin in my keyboard..


On 30 April 2013 16:31, Rory Walsh <rorywalsh@ear.ie> wrote:
Working now. Looks like it was adding alsa as a midi module before. So the other question about hw: configs? is there a way to get that info?



On 30 April 2013 16:17, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Try it again, I've changed the order, see if shows up.

On 30 Apr 2013, at 16:10, Rory Walsh wrote:


char *name, *type;
  int n = 0;
  while(!csoundGetModule(csound, n++, &name, &type))
       printf("Module %d:  %s (%s) \n", n, name, type);

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




Date2013-04-30 16:53
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundGetModule()..
AttachmentsNone  None  
But did you do -+rtmdi=alsa?
On 30 Apr 2013, at 16:38, Rory Walsh wrote:

One minute, alsa midi is not showing now when I plugin in my keyboard..


On 30 April 2013 16:31, Rory Walsh <rorywalsh@ear.ie> wrote:
Working now. Looks like it was adding alsa as a midi module before. So the other question about hw: configs? is there a way to get that info?



On 30 April 2013 16:17, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Try it again, I've changed the order, see if shows up.

On 30 Apr 2013, at 16:10, Rory Walsh wrote:

char *name, *type;
  int n = 0;
  while(!csoundGetModule(csound, n++, &name, &type))
       printf("Module %d:  %s (%s) \n", n, name, type);

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2013-04-30 17:03
FromRory Walsh
SubjectRe: [Cs-dev] csoundGetModule()..
AttachmentsNone  None  
No? Oh, hold on, I thought this listed the available devices? Not that ones already selected? Or? I'm missing something?


On 30 April 2013 16:53, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
But did you do -+rtmdi=alsa?

On 30 Apr 2013, at 16:38, Rory Walsh wrote:

One minute, alsa midi is not showing now when I plugin in my keyboard..


On 30 April 2013 16:31, Rory Walsh <rorywalsh@ear.ie> wrote:
Working now. Looks like it was adding alsa as a midi module before. So the other question about hw: configs? is there a way to get that info?



On 30 April 2013 16:17, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Try it again, I've changed the order, see if shows up.

On 30 Apr 2013, at 16:10, Rory Walsh wrote:


char *name, *type;
  int n = 0;
  while(!csoundGetModule(csound, n++, &name, &type))
       printf("Module %d:  %s (%s) \n", n, name, type);

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-04-30 17:10
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundGetModule()..
AttachmentsNone  None  
No, it should list all the modules present in your OPCODE6DIR64. I don't know why plugin in the keyboard would have an effect.
So you say that the list changes after you plugin the keyboard? That's odd. What are the values before & after?

On 30 Apr 2013, at 17:03, Rory Walsh wrote:

No? Oh, hold on, I thought this listed the available devices? Not that ones already selected? Or? I'm missing something?


On 30 April 2013 16:53, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
But did you do -+rtmdi=alsa?

On 30 Apr 2013, at 16:38, Rory Walsh wrote:

One minute, alsa midi is not showing now when I plugin in my keyboard..


On 30 April 2013 16:31, Rory Walsh <rorywalsh@ear.ie> wrote:
Working now. Looks like it was adding alsa as a midi module before. So the other question about hw: configs? is there a way to get that info?



On 30 April 2013 16:17, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Try it again, I've changed the order, see if shows up.

On 30 Apr 2013, at 16:10, Rory Walsh wrote:

char *name, *type;
  int n = 0;
  while(!csoundGetModule(csound, n++, &name, &type))
       printf("Module %d:  %s (%s) \n", n, name, type);

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2013-04-30 17:17
FromRory Walsh
SubjectRe: [Cs-dev] csoundGetModule()..
AttachmentsNone  None  
Ah, I see, I totally misread that function. Is there a way to list all available devices?


On 30 April 2013 17:10, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
No, it should list all the modules present in your OPCODE6DIR64. I don't know why plugin in the keyboard would have an effect.
So you say that the list changes after you plugin the keyboard? That's odd. What are the values before & after?

On 30 Apr 2013, at 17:03, Rory Walsh wrote:

No? Oh, hold on, I thought this listed the available devices? Not that ones already selected? Or? I'm missing something?


On 30 April 2013 16:53, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
But did you do -+rtmdi=alsa?

On 30 Apr 2013, at 16:38, Rory Walsh wrote:

One minute, alsa midi is not showing now when I plugin in my keyboard..


On 30 April 2013 16:31, Rory Walsh <rorywalsh@ear.ie> wrote:
Working now. Looks like it was adding alsa as a midi module before. So the other question about hw: configs? is there a way to get that info?



On 30 April 2013 16:17, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Try it again, I've changed the order, see if shows up.

On 30 Apr 2013, at 16:10, Rory Walsh wrote:


char *name, *type;
  int n = 0;
  while(!csoundGetModule(csound, n++, &name, &type))
       printf("Module %d:  %s (%s) \n", n, name, type);

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-04-30 17:21
FromTim Neumann
SubjectRe: [Cs-dev] csoundGetModule()..
AttachmentsNone  None  


2013/4/30 Rory Walsh <rorywalsh@ear.ie>
Ah, I see, I totally misread that function. Is there a way to list all available devices?


On 30 April 2013 17:10, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
No, it should list all the modules present in your OPCODE6DIR64. I don't know why plugin in the keyboard would have an effect.
So you say that the list changes after you plugin the keyboard? That's odd. What are the values before & after?

On 30 Apr 2013, at 17:03, Rory Walsh wrote:

No? Oh, hold on, I thought this listed the available devices? Not that ones already selected? Or? I'm missing something?


On 30 April 2013 16:53, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
But did you do -+rtmdi=alsa?

On 30 Apr 2013, at 16:38, Rory Walsh wrote:

One minute, alsa midi is not showing now when I plugin in my keyboard..


On 30 April 2013 16:31, Rory Walsh <rorywalsh@ear.ie> wrote:
Working now. Looks like it was adding alsa as a midi module before. So the other question about hw: configs? is there a way to get that info?



On 30 April 2013 16:17, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Try it again, I've changed the order, see if shows up.

On 30 Apr 2013, at 16:10, Rory Walsh wrote:


char *name, *type;
  int n = 0;
  while(!csoundGetModule(csound, n++, &name, &type))
       printf("Module %d:  %s (%s) \n", n, name, type);

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-04-30 17:33
FromRory Walsh
SubjectRe: [Cs-dev] csoundGetModule()..
Looks about right, only n is always zero when I run this code:

   int i,n = csoundAudioDevList(csound,NULL,1);
   CS_AUDIODEVICE *devs = (CS_AUDIODEVICE *)
       malloc(n*sizeof(CS_AUDIODEVICE));
   csoundAudioDevList(csound,devs,1);
   for(i=0; i < n; i++)
       csound->Message(csound, " %d: %s (%s)\n",
             i, devs[i].device_id, devs[i].device_name);
   free(devs);

Does this have to be called before any devices are opened?


On 30 April 2013 17:21, Tim Neumann  wrote:
> http://csound.sourceforge.net/doc/html/group__RTAUDIOIO.html#gac7686b70bee6fe118cdabbc00397b2ae
>
> looks about right, i guess.
>
>
> 2013/4/30 Rory Walsh 
>>
>> Ah, I see, I totally misread that function. Is there a way to list all
>> available devices?
>>
>>
>> On 30 April 2013 17:10, Victor Lazzarini  wrote:
>>>
>>> No, it should list all the modules present in your OPCODE6DIR64. I don't
>>> know why plugin in the keyboard would have an effect.
>>> So you say that the list changes after you plugin the keyboard? That's
>>> odd. What are the values before & after?
>>>
>>> On 30 Apr 2013, at 17:03, Rory Walsh wrote:
>>>
>>> No? Oh, hold on, I thought this listed the available devices? Not that
>>> ones already selected? Or? I'm missing something?
>>>
>>>
>>> On 30 April 2013 16:53, Victor Lazzarini 
>>> wrote:
>>>>
>>>> But did you do -+rtmdi=alsa?
>>>>
>>>> On 30 Apr 2013, at 16:38, Rory Walsh wrote:
>>>>
>>>> One minute, alsa midi is not showing now when I plugin in my keyboard..
>>>>
>>>>
>>>> On 30 April 2013 16:31, Rory Walsh  wrote:
>>>>>
>>>>> Working now. Looks like it was adding alsa as a midi module before. So
>>>>> the other question about hw: configs? is there a way to get that info?
>>>>>
>>>>>
>>>>>
>>>>> On 30 April 2013 16:17, Victor Lazzarini 
>>>>> wrote:
>>>>>>
>>>>>> Try it again, I've changed the order, see if shows up.
>>>>>>
>>>>>> On 30 Apr 2013, at 16:10, Rory Walsh wrote:
>>>>>>
>>>>>>
>>>>>> char *name, *type;
>>>>>>   int n = 0;
>>>>>>   while(!csoundGetModule(csound, n++, &name, &type))
>>>>>>        printf("Module %d:  %s (%s) \n", n, name, type);
>>>>>>
>>>>>>
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for
>>>>>> Java/.NET
>>>>>> Get 100% visibility into your production application - at no cost.
>>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>> Get 100% visibility into your production application - at no cost.
>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>> Download for free and get started troubleshooting in minutes.
>>>>
>>>> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>> Get 100% visibility into your production application - at no cost.
>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>> Download for free and get started troubleshooting in minutes.
>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>> Get 100% visibility into your production application - at no cost.
>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>> Download for free and get started troubleshooting in minutes.
>>>
>>> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>> Get 100% visibility into your production application - at no cost.
>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>> Download for free and get started troubleshooting in minutes.
>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>> Get 100% visibility into your production application - at no cost.
>> Code-level diagnostics for performance bottlenecks with <2% overhead
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap1
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-30 19:18
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundGetModule()..
Unrelated, but it needs to be csoundMessage() and not csound->Message()

If n is 0, there are no devices, which could mean you are running the dummy module, rather than alsa. In this case,
you need to have -+rtaudio=alsa, if you don't have a portaudio devices (which is the default).

Here, on OSX I get

 0: dac0 (Built-in Output)
 1: dac1 (Aggregate Device)
 2: dac2 (output device)

So, in summary:

1. csoundGetModule() to get the available modules.
2. select a module with -+rtaudio=
3. run csoundAudioDevList() to get the devices.



On 30 Apr 2013, at 17:33, Rory Walsh wrote:

> Looks about right, only n is always zero when I run this code:
> 
>   int i,n = csoundAudioDevList(csound,NULL,1);
>   CS_AUDIODEVICE *devs = (CS_AUDIODEVICE *)
>       malloc(n*sizeof(CS_AUDIODEVICE));
>   csoundAudioDevList(csound,devs,1);
>   for(i=0; i < n; i++)
>       csound->Message(csound, " %d: %s (%s)\n",
>             i, devs[i].device_id, devs[i].device_name);
>   free(devs);
> 
> Does this have to be called before any devices are opened?
> 
> 
> On 30 April 2013 17:21, Tim Neumann  wrote:
>> http://csound.sourceforge.net/doc/html/group__RTAUDIOIO.html#gac7686b70bee6fe118cdabbc00397b2ae
>> 
>> looks about right, i guess.
>> 
>> 
>> 2013/4/30 Rory Walsh 
>>> 
>>> Ah, I see, I totally misread that function. Is there a way to list all
>>> available devices?
>>> 
>>> 
>>> On 30 April 2013 17:10, Victor Lazzarini  wrote:
>>>> 
>>>> No, it should list all the modules present in your OPCODE6DIR64. I don't
>>>> know why plugin in the keyboard would have an effect.
>>>> So you say that the list changes after you plugin the keyboard? That's
>>>> odd. What are the values before & after?
>>>> 
>>>> On 30 Apr 2013, at 17:03, Rory Walsh wrote:
>>>> 
>>>> No? Oh, hold on, I thought this listed the available devices? Not that
>>>> ones already selected? Or? I'm missing something?
>>>> 
>>>> 
>>>> On 30 April 2013 16:53, Victor Lazzarini 
>>>> wrote:
>>>>> 
>>>>> But did you do -+rtmdi=alsa?
>>>>> 
>>>>> On 30 Apr 2013, at 16:38, Rory Walsh wrote:
>>>>> 
>>>>> One minute, alsa midi is not showing now when I plugin in my keyboard..
>>>>> 
>>>>> 
>>>>> On 30 April 2013 16:31, Rory Walsh  wrote:
>>>>>> 
>>>>>> Working now. Looks like it was adding alsa as a midi module before. So
>>>>>> the other question about hw: configs? is there a way to get that info?
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On 30 April 2013 16:17, Victor Lazzarini 
>>>>>> wrote:
>>>>>>> 
>>>>>>> Try it again, I've changed the order, see if shows up.
>>>>>>> 
>>>>>>> On 30 Apr 2013, at 16:10, Rory Walsh wrote:
>>>>>>> 
>>>>>>> 
>>>>>>> char *name, *type;
>>>>>>>  int n = 0;
>>>>>>>  while(!csoundGetModule(csound, n++, &name, &type))
>>>>>>>       printf("Module %d:  %s (%s) \n", n, name, type);
>>>>>>> 
>>>>>>> 
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for
>>>>>>> Java/.NET
>>>>>>> Get 100% visibility into your production application - at no cost.
>>>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> 
>>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>> Get 100% visibility into your production application - at no cost.
>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>> Download for free and get started troubleshooting in minutes.
>>>>> 
>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> 
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>> Get 100% visibility into your production application - at no cost.
>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>> Download for free and get started troubleshooting in minutes.
>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>> Get 100% visibility into your production application - at no cost.
>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>> Download for free and get started troubleshooting in minutes.
>>>> 
>>>> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> 
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>> Get 100% visibility into your production application - at no cost.
>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>> Download for free and get started troubleshooting in minutes.
>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>> Get 100% visibility into your production application - at no cost.
>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>> Download for free and get started troubleshooting in minutes.
>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>> Get 100% visibility into your production application - at no cost.
>> Code-level diagnostics for performance bottlenecks with <2% overhead
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap1
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
> 
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-30 20:15
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundGetModule()..
Oh, I noticed the code is there but not implemented on alsa yet. I will look at it.
Get portaudio and it will work.

Victor
On 30 Apr 2013, at 19:18, Victor Lazzarini wrote:

> Unrelated, but it needs to be csoundMessage() and not csound->Message()
> 
> If n is 0, there are no devices, which could mean you are running the dummy module, rather than alsa. In this case,
> you need to have -+rtaudio=alsa, if you don't have a portaudio devices (which is the default).
> 
> Here, on OSX I get
> 
> 0: dac0 (Built-in Output)
> 1: dac1 (Aggregate Device)
> 2: dac2 (output device)
> 
> So, in summary:
> 
> 1. csoundGetModule() to get the available modules.
> 2. select a module with -+rtaudio=
> 3. run csoundAudioDevList() to get the devices.
> 
> 
> 
> On 30 Apr 2013, at 17:33, Rory Walsh wrote:
> 
>> Looks about right, only n is always zero when I run this code:
>> 
>>  int i,n = csoundAudioDevList(csound,NULL,1);
>>  CS_AUDIODEVICE *devs = (CS_AUDIODEVICE *)
>>      malloc(n*sizeof(CS_AUDIODEVICE));
>>  csoundAudioDevList(csound,devs,1);
>>  for(i=0; i < n; i++)
>>      csound->Message(csound, " %d: %s (%s)\n",
>>            i, devs[i].device_id, devs[i].device_name);
>>  free(devs);
>> 
>> Does this have to be called before any devices are opened?
>> 
>> 
>> On 30 April 2013 17:21, Tim Neumann  wrote:
>>> http://csound.sourceforge.net/doc/html/group__RTAUDIOIO.html#gac7686b70bee6fe118cdabbc00397b2ae
>>> 
>>> looks about right, i guess.
>>> 
>>> 
>>> 2013/4/30 Rory Walsh 
>>>> 
>>>> Ah, I see, I totally misread that function. Is there a way to list all
>>>> available devices?
>>>> 
>>>> 
>>>> On 30 April 2013 17:10, Victor Lazzarini  wrote:
>>>>> 
>>>>> No, it should list all the modules present in your OPCODE6DIR64. I don't
>>>>> know why plugin in the keyboard would have an effect.
>>>>> So you say that the list changes after you plugin the keyboard? That's
>>>>> odd. What are the values before & after?
>>>>> 
>>>>> On 30 Apr 2013, at 17:03, Rory Walsh wrote:
>>>>> 
>>>>> No? Oh, hold on, I thought this listed the available devices? Not that
>>>>> ones already selected? Or? I'm missing something?
>>>>> 
>>>>> 
>>>>> On 30 April 2013 16:53, Victor Lazzarini 
>>>>> wrote:
>>>>>> 
>>>>>> But did you do -+rtmdi=alsa?
>>>>>> 
>>>>>> On 30 Apr 2013, at 16:38, Rory Walsh wrote:
>>>>>> 
>>>>>> One minute, alsa midi is not showing now when I plugin in my keyboard..
>>>>>> 
>>>>>> 
>>>>>> On 30 April 2013 16:31, Rory Walsh  wrote:
>>>>>>> 
>>>>>>> Working now. Looks like it was adding alsa as a midi module before. So
>>>>>>> the other question about hw: configs? is there a way to get that info?
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On 30 April 2013 16:17, Victor Lazzarini 
>>>>>>> wrote:
>>>>>>>> 
>>>>>>>> Try it again, I've changed the order, see if shows up.
>>>>>>>> 
>>>>>>>> On 30 Apr 2013, at 16:10, Rory Walsh wrote:
>>>>>>>> 
>>>>>>>> 
>>>>>>>> char *name, *type;
>>>>>>>> int n = 0;
>>>>>>>> while(!csoundGetModule(csound, n++, &name, &type))
>>>>>>>>      printf("Module %d:  %s (%s) \n", n, name, type);
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> Dept. of Music
>>>>>>>> NUI Maynooth Ireland
>>>>>>>> tel.: +353 1 708 3545
>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for
>>>>>>>> Java/.NET
>>>>>>>> Get 100% visibility into your production application - at no cost.
>>>>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>>> Get 100% visibility into your production application - at no cost.
>>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>> 
>>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> 
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>>> Get 100% visibility into your production application - at no cost.
>>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>> Get 100% visibility into your production application - at no cost.
>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>> Download for free and get started troubleshooting in minutes.
>>>>> 
>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> 
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>> Get 100% visibility into your production application - at no cost.
>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>> Download for free and get started troubleshooting in minutes.
>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>> Get 100% visibility into your production application - at no cost.
>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>> Download for free and get started troubleshooting in minutes.
>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>> Get 100% visibility into your production application - at no cost.
>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>> Download for free and get started troubleshooting in minutes.
>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>> 
>> ------------------------------------------------------------------------------
>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>> Get 100% visibility into your production application - at no cost.
>> Code-level diagnostics for performance bottlenecks with <2% overhead
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap1
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-30 22:58
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundGetModule()..
OK, this is working now for alsa. I've also made alsa the default on Linux.

Victor

On 30 Apr 2013, at 20:15, Victor Lazzarini wrote:

> Oh, I noticed the code is there but not implemented on alsa yet. I will look at it.
> Get portaudio and it will work.
> 
> Victor
> On 30 Apr 2013, at 19:18, Victor Lazzarini wrote:
> 
>> Unrelated, but it needs to be csoundMessage() and not csound->Message()
>> 
>> If n is 0, there are no devices, which could mean you are running the dummy module, rather than alsa. In this case,
>> you need to have -+rtaudio=alsa, if you don't have a portaudio devices (which is the default).
>> 
>> Here, on OSX I get
>> 
>> 0: dac0 (Built-in Output)
>> 1: dac1 (Aggregate Device)
>> 2: dac2 (output device)
>> 
>> So, in summary:
>> 
>> 1. csoundGetModule() to get the available modules.
>> 2. select a module with -+rtaudio=
>> 3. run csoundAudioDevList() to get the devices.
>> 
>> 
>> 
>> On 30 Apr 2013, at 17:33, Rory Walsh wrote:
>> 
>>> Looks about right, only n is always zero when I run this code:
>>> 
>>> int i,n = csoundAudioDevList(csound,NULL,1);
>>> CS_AUDIODEVICE *devs = (CS_AUDIODEVICE *)
>>>     malloc(n*sizeof(CS_AUDIODEVICE));
>>> csoundAudioDevList(csound,devs,1);
>>> for(i=0; i < n; i++)
>>>     csound->Message(csound, " %d: %s (%s)\n",
>>>           i, devs[i].device_id, devs[i].device_name);
>>> free(devs);
>>> 
>>> Does this have to be called before any devices are opened?
>>> 
>>> 
>>> On 30 April 2013 17:21, Tim Neumann  wrote:
>>>> http://csound.sourceforge.net/doc/html/group__RTAUDIOIO.html#gac7686b70bee6fe118cdabbc00397b2ae
>>>> 
>>>> looks about right, i guess.
>>>> 
>>>> 
>>>> 2013/4/30 Rory Walsh 
>>>>> 
>>>>> Ah, I see, I totally misread that function. Is there a way to list all
>>>>> available devices?
>>>>> 
>>>>> 
>>>>> On 30 April 2013 17:10, Victor Lazzarini  wrote:
>>>>>> 
>>>>>> No, it should list all the modules present in your OPCODE6DIR64. I don't
>>>>>> know why plugin in the keyboard would have an effect.
>>>>>> So you say that the list changes after you plugin the keyboard? That's
>>>>>> odd. What are the values before & after?
>>>>>> 
>>>>>> On 30 Apr 2013, at 17:03, Rory Walsh wrote:
>>>>>> 
>>>>>> No? Oh, hold on, I thought this listed the available devices? Not that
>>>>>> ones already selected? Or? I'm missing something?
>>>>>> 
>>>>>> 
>>>>>> On 30 April 2013 16:53, Victor Lazzarini 
>>>>>> wrote:
>>>>>>> 
>>>>>>> But did you do -+rtmdi=alsa?
>>>>>>> 
>>>>>>> On 30 Apr 2013, at 16:38, Rory Walsh wrote:
>>>>>>> 
>>>>>>> One minute, alsa midi is not showing now when I plugin in my keyboard..
>>>>>>> 
>>>>>>> 
>>>>>>> On 30 April 2013 16:31, Rory Walsh  wrote:
>>>>>>>> 
>>>>>>>> Working now. Looks like it was adding alsa as a midi module before. So
>>>>>>>> the other question about hw: configs? is there a way to get that info?
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 30 April 2013 16:17, Victor Lazzarini 
>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>> Try it again, I've changed the order, see if shows up.
>>>>>>>>> 
>>>>>>>>> On 30 Apr 2013, at 16:10, Rory Walsh wrote:
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> char *name, *type;
>>>>>>>>> int n = 0;
>>>>>>>>> while(!csoundGetModule(csound, n++, &name, &type))
>>>>>>>>>     printf("Module %d:  %s (%s) \n", n, name, type);
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> Dept. of Music
>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for
>>>>>>>>> Java/.NET
>>>>>>>>> Get 100% visibility into your production application - at no cost.
>>>>>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>>>> Get 100% visibility into your production application - at no cost.
>>>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>>> 
>>>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> 
>>>>>>> 
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>>>> Get 100% visibility into your production application - at no cost.
>>>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>>> Get 100% visibility into your production application - at no cost.
>>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>> 
>>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> 
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>>> Get 100% visibility into your production application - at no cost.
>>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>>> Get 100% visibility into your production application - at no cost.
>>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>>> Download for free and get started troubleshooting in minutes.
>>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>>> Get 100% visibility into your production application - at no cost.
>>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>>> Download for free and get started troubleshooting in minutes.
>>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>>> Get 100% visibility into your production application - at no cost.
>>> Code-level diagnostics for performance bottlenecks with <2% overhead
>>> Download for free and get started troubleshooting in minutes.
>>> http://p.sf.net/sfu/appdyn_d2d_ap1
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>> Get 100% visibility into your production application - at no cost.
>> Code-level diagnostics for performance bottlenecks with <2% overhead
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap1
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net