Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Csound Mac Standalone

Date2011-02-16 13:10
Fromloucohen@jolc.net
SubjectRe: [Csnd] Csound Mac Standalone

My experience using QuteCsound+5.11 with a new IO controller (having 1 input and 4 outputs) was very frustrating. I posted my problem to this list; none of the suggestions turned out to help. When I switched to MacCsound the IO problems disappeared. So I agree with Matt that Csound's IO is not very compatible with OSX 10.5 at least.

-Lou


On Wed 16/02/11 6:21 AM , Victor Lazzarini Victor.Lazzarini@nuim.ie sent:

That is because it was written for 10.3 and it has not been updated. I
am discontinuing it for the next release.

Matt can correct me on this, but what he does with his IO is to stick
a call to Csound::PerformKsmps (or PerformBuffer) inside
the coreaudio callback, dispensing with intermediary circular buffers
(as in the portaudio and coreaudio modules). This is
what a frontend can do.

However, in my experience the portaudio module performs well.

Victor
On 16 Feb 2011, at 07:41, Andres Cabrera wrote:

> Hi Matt,
>
> Very nice work. You mentioned on your video that the coreaudio
> module's performance in Csound is really bad. Do you have any idea
> why, or how it can be fixed?
>
> Cheers,
> Andres
>
> On Tue, Feb 15, 2011 at 11:00 PM, matt ingalls <matt@sonomatics.com>
> wrote:
>> i just made another video showing how to clean up your app more
>> with new
>> icon, about box, & removed menus:
>> http://gallery.me.com/mattingalls#100076
>> -m
>> (hey lou!!!!!)
>> On Feb 15, 2011, at 1:57 PM, loucohen@jolc.net wrote:
>>
>> Matt, this is an incredibly valuable gift to csound users! thanks,
>> thanks,
>> thanks!!!!
>> -Lou
>>
>>
>>
>> ----- Original Message -----
>> From:
>> csound@lists.bath.ac.uk
>> To:
>> Cc:
>> Sent:
>> Tue, 15 Feb 2011 12:09:25 -0800
>> Subject:
>> [Csnd] Csound Mac Standalone
>>
>>
>> Hi -
>>
>> I am working on an OSX Standalone that you can import your own .csd
>> and design your own Cocoa interface. Here is a movie i made
>> explaining it.
>> (please forgive my stammering!)
>>
>> http://gallery.me.com/mattingalls/100066
>>
>>
>> If you want to try it out for yourself you can download the
>> standalone here:
>> (Universal 32-bit - OSX 10.5 or higher needed)
>> http://csounds.com/matt/CsoundApp.zip
>>
>> Still in-progress (optimization needed especially)
>> but let me know if you think it is of any use!
>>
>> If there's enough interest, i could create a "compiler" application
>> to
>> handle the
>> hackiness for you.
>>
>> Thanks!
>> m@
>>
>> 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"
>



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"



Date2011-02-16 17:59
Frommatt ingalls
SubjectRe: [Csnd] Csound Mac Standalone
well...i didn't say "really bad", i said "really not happy"  :)
- and what i was referring to when you call CsoundPerform() and let csound do all the audio.

but i should probably even take that back because it might just be *MY* implementation --
(like priority of thread calling CsoundPerform() and directly accessing Cocoa widgets every k-pass!)

and (as victor and lou described) i have a known-to-work method and was going to go with that.
btw, i had identical peformance "problems" with coreaudio and portaudio (maybe another clue that
my code is at fault)

having said that, there is clearly something not right with QuteCsound's real-time - audio should not stop when you click on
a menu bar!!!!!  i would guess the Csound render needs to be put in a separate thread somehow with no way that the
host/gui stuff can suspend it.  

(perhaps this discussion to move over to the dev list?)

-m

On Feb 16, 2011, at 5:10 AM, loucohen@jolc.net wrote:

My experience using QuteCsound+5.11 with a new IO controller (having 1 input and 4 outputs) was very frustrating. I posted my problem to this list; none of the suggestions turned out to help. When I switched to MacCsound the IO problems disappeared. So I agree with Matt that Csound's IO is not very compatible with OSX 10.5 at least.

-Lou


On Wed 16/02/11 6:21 AM , Victor Lazzarini Victor.Lazzarini@nuim.ie sent:
That is because it was written for 10.3 and it has not been updated. I 
am discontinuing it for the next release.

Matt can correct me on this, but what he does with his IO is to stick 
a call to Csound::PerformKsmps (or PerformBuffer) inside
the coreaudio callback, dispensing with intermediary circular buffers 
(as in the portaudio and coreaudio modules). This is
what a frontend can do.

However, in my experience the portaudio module performs well.

Victor
On 16 Feb 2011, at 07:41, Andres Cabrera wrote:

> Hi Matt,
>
> Very nice work. You mentioned on your video that the coreaudio
> module's performance in Csound is really bad. Do you have any idea
> why, or how it can be fixed?
>
> Cheers,
> Andres
>
> On Tue, Feb 15, 2011 at 11:00 PM, matt ingalls <matt@sonomatics.com> 
> wrote:
>> i just made another video showing how to clean up your app more 
>> with new
>> icon, about box, & removed menus:
>> http://gallery.me.com/mattingalls#100076
>> -m
>> (hey lou!!!!!)
>> On Feb 15, 2011, at 1:57 PM, loucohen@jolc.net wrote:
>>
>> Matt, this is an incredibly valuable gift to csound users! thanks, 
>> thanks,
>> thanks!!!!
>> -Lou
>>
>>
>>
>> ----- Original Message -----
>> From:
>> csound@lists.bath.ac.uk
>> To:
>> Cc:
>> Sent:
>> Tue, 15 Feb 2011 12:09:25 -0800
>> Subject:
>> [Csnd] Csound Mac Standalone
>>
>>
>> Hi -
>>
>> I am working on an OSX Standalone that you can import your own .csd
>> and design your own Cocoa interface. Here is a movie i made 
>> explaining it.
>> (please forgive my stammering!)
>>
>> http://gallery.me.com/mattingalls/100066
>>
>>
>> If you want to try it out for yourself you can download the 
>> standalone here:
>> (Universal 32-bit - OSX 10.5 or higher needed)
>> http://csounds.com/matt/CsoundApp.zip
>>
>> Still in-progress (optimization needed especially)
>> but let me know if you think it is of any use!
>>
>> If there's enough interest, i could create a "compiler" application 
>> to
>> handle the
>> hackiness for you.
>>
>> Thanks!
>> m@
>>
>> 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"
>



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"




Date2011-02-16 18:09
FromVictor Lazzarini
SubjectRe: [Csnd] Csound Mac Standalone
Never noticed that. Btw, was I right to say that your IO  
implementation calls CsoundPerformKsmps or CsoundPerformBuffer
from the coreaudio callback?

Also, if you have any suggestions to revamp the coreaudio module  
(InOut/rtcoreaudio.c), by all means go ahead.

Victor
On 16 Feb 2011, at 17:59, matt ingalls wrote:

> having said that, there is clearly something not right with  
> QuteCsound's real-time - audio should not stop when you click on
> a menu bar!!!!!  i would guess the Csound render needs to be put in  
> a separate thread somehow with no way that the
> host/gui stuff can suspend it.



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"

Date2011-02-16 18:11
FromVictor Lazzarini
SubjectRe: [Csnd] Csound Mac Standalone
yep, just tested now and I can't reproduce this. I can click anywhere  
and there is no interruption. What do you mean?

Victor
On 16 Feb 2011, at 17:59, matt ingalls wrote:

> having said that, there is clearly something not right with  
> QuteCsound's real-time - audio should not stop when you click on
> a menu bar!!!!!  i would guess the Csound render needs to be put in  
> a separate thread somehow with no way that the
> host/gui stuff can suspend it.
>



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"

Date2011-02-16 18:21
Frommatt ingalls
SubjectRe: [Csnd] Csound Mac Standalone
hmm.. well i just checked and the audio indeed stops when running a realtime render
and i click on qutecsound's menu bar.  (i'm running 10.6 intel macbook)

both coreaduio and portaudio do this

maybe i don't have something configured properly?


On Feb 16, 2011, at 10:11 AM, Victor Lazzarini wrote:

> yep, just tested now and I can't reproduce this. I can click anywhere and there is no interruption. What do you mean?
> 
> Victor
> On 16 Feb 2011, at 17:59, matt ingalls wrote:
> 
>> having said that, there is clearly something not right with QuteCsound's real-time - audio should not stop when you click on
>> a menu bar!!!!!  i would guess the Csound render needs to be put in a separate thread somehow with no way that the
>> host/gui stuff can suspend it.
>> 
> 
> 
> 
> 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"


Date2011-02-16 18:27
FromVictor Lazzarini
SubjectRe: [Csnd] Csound Mac Standalone
I think you have not checked "run in a separate thread" in the  
preferences general tab.
On 16 Feb 2011, at 18:21, matt ingalls wrote:

> hmm.. well i just checked and the audio indeed stops when running a  
> realtime render
> and i click on qutecsound's menu bar.  (i'm running 10.6 intel  
> macbook)
>
> both coreaduio and portaudio do this
>
> maybe i don't have something configured properly?
>
>
> On Feb 16, 2011, at 10:11 AM, Victor Lazzarini wrote:
>
>> yep, just tested now and I can't reproduce this. I can click  
>> anywhere and there is no interruption. What do you mean?
>>
>> Victor
>> On 16 Feb 2011, at 17:59, matt ingalls wrote:
>>
>>> having said that, there is clearly something not right with  
>>> QuteCsound's real-time - audio should not stop when you click on
>>> a menu bar!!!!!  i would guess the Csound render needs to be put  
>>> in a separate thread somehow with no way that the
>>> host/gui stuff can suspend it.
>>>
>>
>>
>>
>> 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"
>



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"

Date2011-02-16 19:17
Frommatt ingalls
SubjectRe: [Cs-dev] [Csnd] Csound Mac Standalone
(on dev list now..)

> Never noticed that. Btw, was I right to say that your IO implementation calls CsoundPerformKsmps or CsoundPerformBuffer
> from the coreaudio callback?

well i do use the real-time API callbacks and CsoundPerformBuffer()..
it actually doesnt matter much if Csound is called from the coreaudio thread or another high priority thread - both seem to work well for me.

> 
> Also, if you have any suggestions to revamp the coreaudio module (InOut/rtcoreaudio.c), by all means go ahead.

OK - will i be able to make an Xcode project for it? :)


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-02-16 19:25
FromVictor Lazzarini
SubjectRe: [Cs-dev] [Csnd] Csound Mac Standalone
Of course, you can make up an XCode project, it's up to you  to chose  
your development tools.
Not sure how it would help since you're just dealing with a particular  
IO module that is loaded by Csound.
An editor and the terminal should be the only thing you need...

Victor

On 16 Feb 2011, at 19:17, matt ingalls wrote:

> OK - will i be able to make an Xcode project for it? :)


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net