| Just FYI to list, I chatted with Rory and I think we've figured out
some things. We'll experiment offlist for this and hopefully get this
sorted out. :)
On Fri, Jan 18, 2013 at 12:41 PM, Steven Yi wrote:
> Okay, now I'm triply confused. :P What's the issue again? You have
> csoundo/processing sketches working on both desktop and Android it
> seems.
>
> On Fri, Jan 18, 2013 at 12:35 PM, Rory Walsh wrote:
>> When users hit send to device in Processing only the csoundandroid
>> library gets sent to the device. And when I compile Csoundo I compile
>> with csnd.jar, as far as I can tell at least. So far we've not had any
>> issues?
>>
>> On 18 January 2013 12:30, Steven Yi wrote:
>>> Hi Rory,
>>>
>>> I took a look at Csoundo from GIT but I'm still not sure of a couple
>>> things. It seems you distribute in the csoundo folder both csnd.jar
>>> and csoundanroid.jar. They should be used mutually exclusive of each
>>> other, as they both contain swig generated classes for csound (you'll
>>> likely get classloader issues and may get the wrong version of a
>>> class). Did I understand that part of what is going on correctly?
>>> Also, when you compile Csoundo.jar, is it compiled against csnd.jar or
>>> csoundandroid.jar? Again, this should be done only against one or the
>>> other (as they contain classes with mostly the same names but
>>> differences due to float/double).
>>>
>>> steven
>>>
>>>
>>>
>>> On Thu, Jan 17, 2013 at 11:18 PM, Rory Walsh wrote:
>>>> That's the thing. We have a member varialbe of type Csound in our
>>>> class, but we create an object of type AndroidCsound when the use is
>>>> running in Android mode. Once our csound member variable is created as
>>>> an AndroidCsound object everything else works fine on Android. I'm
>>>> still trying to get my head around it, but it means users only have to
>>>> swap out the following code to swap between desktop and android modes
>>>> when working with Csoundo in processing:
>>>>
>>>> //Android mode
>>>> cs = new Csoundo(this, super.getApplicationContext());
>>>> //Java mode
>>>> cs = new Csoundo(this, "filename..csd");
>>>>
>>>> Consider the following processing sketch. In it we can happily move
>>>> between devices by simply changing the constructor. It's pretty neat,
>>>> but I'm starting to suspect we are slightly lucky it works?
>>>>
>>>> import csoundo.*;
>>>>
>>>> Csoundo cs;
>>>> int cnt=0;
>>>> float x,y,amp;
>>>>
>>>> void setup() {
>>>> size(400, 400);
>>>> //orientation(LANDSCAPE);
>>>> background(0);
>>>> frameRate(5);
>>>> smooth();
>>>> //Android Mode (comment out either)
>>>> //cs = new Csoundo(this, super.getApplicationContext());
>>>> //Java Mode
>>>> cs = new Csoundo(this, "Random.csd");
>>>> cs.run();
>>>> }
>>>>
>>>> void draw() {
>>>> x = random(width);
>>>> y = random(height);
>>>> amp = random(1);
>>>> cs.setChn("pitch", y);
>>>> cs.setChn("pan", x/width);
>>>> cs.setChn("amp", amp);
>>>> fill(255, (x/width) * 255, 0, (y/height) * 255);
>>>> ellipse(x,y, 50*amp, 50*amp);
>>>> fill(0, 0, 0, 10);
>>>> rect(0, 0, width, height);
>>>> }
>>>>
>>>>
>>>>
>>>> On 17 January 2013 23:08, Steven Yi wrote:
>>>>> http://stackoverflow.com/questions/3310907/what-are-the-advantages-of-armv7-over-armv6-when-compiling-iphone-apps
>>>>>
>>>>> Seems like they took out hardware double precision support for armv7. I
>>>>> think on Android we compile w/Neon. Still, testing required to verify for
>>>>> both platforms.
>>>>>
>>>>> Rory: How is csoundo compiled to work with floats if it's used on the
>>>>> desktop? I'm a bit confused, but also on my cell phone. I'll be back online
>>>>> tomorrow when on campus and will be able to see what's going on better.
>>>>>
>>>>> On Jan 17, 2013 9:39 PM, "Rory Walsh" wrote:
>>>>>>
>>>>>> That's true Mike. I gues we could be surprised by the results.
>>>>>>
>>>>>> On 17 January 2013 21:20, Michael Gogins wrote:
>>>>>> > Don't make assumptions about the speed. Past tests have showed that on
>>>>>> > some platforms, doubles are faster than floats; on other platforms
>>>>>> > including Windows, floats are faster (15% or so) than doubles.
>>>>>> >
>>>>>> > Try both and measure it.
>>>>>> >
>>>>>> > Regards,
>>>>>> > Mike
>>>>>> >
>>>>>> > On Thu, Jan 17, 2013 at 4:05 PM, Rory Walsh wrote:
>>>>>> >> I don't think having several android builds is a god idea either. And
>>>>>> >> there isn't really much pint I guess in investigate doubles, it's
>>>>>> >> probably not going to run as fast as float.
>>>>>> >>
>>>>>> >>> Another option would be on your side to create a specific Csoundo for
>>>>>> >>> Android that works with float build. I assume then that a user working
>>>>>> >>> with
>>>>>> >>
>>>>>> >> I'm not sure I follow. At present it is a float build. At present we
>>>>>> >> don't use any eclipse project files at all. The main IDE IS
>>>>>> >> Processing. We go from there straight to the phone. It's savage :)
>>>>>> >>
>>>>>> >> p.s. can you enlighten me as to why I don't get the same errors with
>>>>>> >> SetChannel()?
>>>>>> >>
>>>>>> >>
>>>>>> >> 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"
>>>>>> >>
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > --
>>>>>> > Michael Gogins
>>>>>> > Irreducible Productions
>>>>>> > http://www.michael-gogins.com
>>>>>> > Michael dot Gogins at gmail dot com
>>>>>> >
>>>>>> >
>>>>>> > 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"
>>>>
>>>
>>>
>>> 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"
>>
|