Csound Csound-dev Csound-tekno Search About

[Cs-dev] weirdness on android...

Date2014-07-16 10:32
FromRory Walsh
Subject[Cs-dev] weirdness on android...
I get a constant unwanted tone out of my Csound instruments when I run
them on my own CsoundAndroid player. Could it be something to do with
my build settings, in particular I'm wondering if USE_DOUBLE is at
fault. My installed Csound defines USE_DOUBLE, and I point my
Android.mk points to this include folder. But in my Android.mk file I
use
-D "USE_DOUBLE=0"

When I run ant I get lots of:

/usr/local/include/csound/float-version.h:31:0: warning: "USE_DOUBLE"
redefined [enabled by default]

But that's expected right because I'm overriding the USE_DOUBLE
definition in float-version.h? Apart from that I can't think what is
producing this pretty awful tone for me.Any ideas?

------------------------------------------------------------------------------
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-16 10:53
FromVictor Lazzarini
SubjectRe: [Cs-dev] weirdness on android...
Should USE_DOUBLE be defined for android? I thought that was supposed to be single floats instead.

Anyway, if there was a mismatch in the size of floats, then you’d get weird compilation errors, as the
parsing would go awry.

Is your frontend your own code? Have you checked whether the examples work?
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 16 Jul 2014, at 10:32, Rory Walsh  wrote:

> I get a constant unwanted tone out of my Csound instruments when I run
> them on my own CsoundAndroid player. Could it be something to do with
> my build settings, in particular I'm wondering if USE_DOUBLE is at
> fault. My installed Csound defines USE_DOUBLE, and I point my
> Android.mk points to this include folder. But in my Android.mk file I
> use
> -D "USE_DOUBLE=0"
> 
> When I run ant I get lots of:
> 
> /usr/local/include/csound/float-version.h:31:0: warning: "USE_DOUBLE"
> redefined [enabled by default]
> 
> But that's expected right because I'm overriding the USE_DOUBLE
> definition in float-version.h? Apart from that I can't think what is
> producing this pretty awful tone for me.Any ideas?
> 
> ------------------------------------------------------------------------------
> 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-16 11:07
FromRory Walsh
SubjectRe: [Cs-dev] weirdness on android...
That's why I use USE_DOUBLE=0 in my .mk file, to override its
definition in float-versions.h. Anyhow, I don't think that works as I
get the same problems whether I define USE_DOUBLE or not. I'll try to
simply change the floats-version.h in my usr/local/include/csound dir
and see if that works.

------------------------------------------------------------------------------
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-16 11:15
FromVictor Lazzarini
SubjectRe: [Cs-dev] weirdness on android...
The problem is that you are using the desktop headers for the Android project.
You should use the project in the Android/CsoundAndroid/jni to build an
Android library. You will see a float-version.h there correctly not setting USE_DOUBLE.

But the problem might be elsewhere.
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 16 Jul 2014, at 11:07, Rory Walsh  wrote:

> That's why I use USE_DOUBLE=0 in my .mk file, to override its
> definition in float-versions.h. Anyhow, I don't think that works as I
> get the same problems whether I define USE_DOUBLE or not. I'll try to
> simply change the floats-version.h in my usr/local/include/csound dir
> and see if that works.
> 
> ------------------------------------------------------------------------------
> 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-16 11:24
FromRory Walsh
SubjectRe: [Cs-dev] weirdness on android...
I'd rather not build the CsoundAndroid project myself at all if I can
avoid it, right not I'm just using the pre-built one. Anyhow, removing
the USE_DOUBLE from my installed floats-version.h did the trick.
That's another hurdle cleared.

On 16 July 2014 12:15, Victor Lazzarini  wrote:
> The problem is that you are using the desktop headers for the Android project.
> You should use the project in the Android/CsoundAndroid/jni to build an
> Android library. You will see a float-version.h there correctly not setting USE_DOUBLE.
>
> But the problem might be elsewhere.
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 16 Jul 2014, at 11:07, Rory Walsh  wrote:
>
>> That's why I use USE_DOUBLE=0 in my .mk file, to override its
>> definition in float-versions.h. Anyhow, I don't think that works as I
>> get the same problems whether I define USE_DOUBLE or not. I'll try to
>> simply change the floats-version.h in my usr/local/include/csound dir
>> and see if that works.
>>
>> ------------------------------------------------------------------------------
>> 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