Csound Csound-dev Csound-tekno Search About

[Cs-dev] OSX: CsoundObj

Date2014-07-20 18:15
FromSteven Yi
Subject[Cs-dev] OSX: CsoundObj
Hi All,

I'm working with Aure who is working on a version of CsoundObj on OSX.
The problem is that the audio output is extremely loud and distorted.
The code is based mainly on the iOS CsoundObj.  It is available at:

https://github.com/aure/csound/tree/updates-for-osx-ios

You can use these two commands to get his dev branch:

git clone https://github.com/aure/csound.git
git checkout updates-for-osx-ios


I looked into this a little but and so far I've determined that
AudioUnitSampleType on iOS defaults to SInt32, while on OSX it is
defaulting to Float32.  I think this is causing problems when the
AudioUnit is setup.

If anyone has a chance to assist here, it'd be very much appreciated!

Thanks!
steven

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-07-20 19:41
FromVictor Lazzarini
SubjectRe: [Cs-dev] OSX: CsoundObj
That should be simple to fix. The Float32 sample will be normalised between +1 and -1, as in
the InOut/rtauhal.c code.

Regards
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 20 Jul 2014, at 18:15, Steven Yi  wrote:

> Hi All,
> 
> I'm working with Aure who is working on a version of CsoundObj on OSX.
> The problem is that the audio output is extremely loud and distorted.
> The code is based mainly on the iOS CsoundObj.  It is available at:
> 
> https://github.com/aure/csound/tree/updates-for-osx-ios
> 
> You can use these two commands to get his dev branch:
> 
> git clone https://github.com/aure/csound.git
> git checkout updates-for-osx-ios
> 
> 
> I looked into this a little but and so far I've determined that
> AudioUnitSampleType on iOS defaults to SInt32, while on OSX it is
> defaulting to Float32.  I think this is causing problems when the
> AudioUnit is setup.
> 
> If anyone has a chance to assist here, it'd be very much appreciated!
> 
> Thanks!
> steven
> 
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-07-22 00:13
FromSteven Yi
SubjectRe: [Cs-dev] OSX: CsoundObj
Thanks Victor,

Taking a look at rtauhal.c sorted it out.  I just had to take out the
coefficient code from both the ins and outs and that got it working.

Thanks!
steven

On Sun, Jul 20, 2014 at 2:41 PM, Victor Lazzarini
 wrote:
> That should be simple to fix. The Float32 sample will be normalised between +1 and -1, as in
> the InOut/rtauhal.c code.
>
> Regards
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 20 Jul 2014, at 18:15, Steven Yi  wrote:
>
>> Hi All,
>>
>> I'm working with Aure who is working on a version of CsoundObj on OSX.
>> The problem is that the audio output is extremely loud and distorted.
>> The code is based mainly on the iOS CsoundObj.  It is available at:
>>
>> https://github.com/aure/csound/tree/updates-for-osx-ios
>>
>> You can use these two commands to get his dev branch:
>>
>> git clone https://github.com/aure/csound.git
>> git checkout updates-for-osx-ios
>>
>>
>> I looked into this a little but and so far I've determined that
>> AudioUnitSampleType on iOS defaults to SInt32, while on OSX it is
>> defaulting to Float32.  I think this is causing problems when the
>> AudioUnit is setup.
>>
>> If anyone has a chance to assist here, it'd be very much appreciated!
>>
>> Thanks!
>> steven
>>
>> ------------------------------------------------------------------------------
>> Want fast and easy access to all the code in your enterprise? Index and
>> search up to 200,000 lines of code with a free copy of Black Duck
>> Code Sight - the same software that powers the world's largest code
>> search on Ohloh, the Black Duck Open Hub! Try it now.
>> http://p.sf.net/sfu/bds
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net