Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Re: [Cs-dev] Android Build and Examples Committed to

Date2012-03-03 01:42
FromRoger Kelly
SubjectRe: [Csnd] Re: [Cs-dev] Android Build and Examples Committed to
I purchased an Asus prime recently. It is a quad core Tegra processor. It was about 500 US. Probably the most powerful to date. Can't wait to run Csound.

Ran it today on my Htc phone. Worked and sounded great! Much thanks to Victor and Steven.

Sent from my ASUS Eee Pad

"Dr. Richard Boulanger" <rboulanger@berklee.edu> wrote:

Dear Victor and Steven,

This is wonderful news.  

Congratulations and thanks for all your incredible work on this.

Congratulations also on your paper for the Linux Audio Developer's Conference on this subject.  

I am looking forward to reading it and possibly meeting up with you in California that weekend.  
(I will be performing at UC Santa Barbara with Curtis Roads on April 12, but will be rehearsing 
and recording in San Jose for five days prior to the 12th.  If  you, Victor, and Joachim arrive early,
I could have you down to the Open Path Recording studio and/or meet you up at Stanford.
Thomas Hass will be with me and Takahiko Tsuchiya - from the Hanover Conference will be with
me.) 

My questions, for you and the developers....

Which is the best Android device to purchase that will allow Csounders to take advantage of this work?

Which is the most powerful?

Which is the most affordable?

-dB
___________________________________

Dr. Richard Boulanger, Ph.D.

Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
1140 Boylston Street
Boston, MA 02215-3693

617-747-2485 (office)
774-488-9166 (cell)

____________________________________

____________________________________

____________________________________

On Mar 2, 2012, at 9:52 AM, Steven Yi wrote:

Hi All,

As there is increasing discussion of arm and Android/iOS, Victor and I
cleaned up what we had and have committed it to the Csound5 GIT
repository. It is placed in csound5/android.  Some notes if working
from GIT:

* The android folder is itself an Android project that can be opened
in Eclipse; use Import Project to get that project into your
workspace.

* To use the project, you will need to build the native library.
There is a build.sh file that automatically builds the .so's.  It uses
the Android NDK to do this.  The build.sh was done to run SWIG, then
call the NDK make.  The Android.mk file in the android/jni folder is
what builds the library.

* Building libcsoundandroid.so requires libsndfile.  You will need to
grab the libsndfile-android.zip that is in the file releases of Csound
on Sourceforge.  This zip contains libsndfile sources organized into
an Android NDK style build, together with an NDK Make file
(Android.mk).  The csound5/android/jni/Android.mk references
libsndfile-android's Android.mk to build.

* Change for build files you'll need to do: update ANDROID_NDK_PATH in build.sh:

export ANDROID_NDK_ROOT=$HOME/work/android-ndk-r7

as well as update LIBSNDFILE_SRC_DIR in android/jni/Android.mk:

LIBSNDFILE_SRC_DIR := $(LOCAL_PATH)/../../../android/libsndfile-android/jni/

* This build uses OpenSL, but also has code for AudioTrack. To use
AudioTrack, you will need to modify CsoundObj.java.

We have also put together a zip of the android folder that has
precompiled libcsoundandroid.so. This library has everything done
already, so you can just open the project in Eclipse, compile, and
run.  You can use this zip as a starter for your own project and won't
have to worry about compiling csound and libsndfile yourself.

The libsndfile-android.zip, csound-android.zip, and a pre-compiled
CsoundAndroid.apk of the example project is available at:

https://sourceforge.net/projects/csound/files/csound5/Android/

The APK file is directly installable on your Android device.  I've
created a short URL for it available at:

http://bit.ly/wrVGgg

for easier typing into your browser. You will need Android 2.3.3 or
higher (platform version 9) to run this application.

iOS will follow soon, likely in a few weeks.  It has a similar
folder/build system. We currently have documentation for iOS but not
Android, but they are similar API's.  For now, please look at the
examples project for how to use the API, and feel free to ask
questions here.

Thanks!
steven

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2012-03-03 14:33
Fromluis jure
SubjectRe: [Csnd] Re: [Cs-dev] Android Build and Examples Committed to
on 2012-03-02 at 19:42 Roger Kelly wrote:

>I purchased an Asus prime recently.

cool...

and what about handheld devices? i've never been too enthusiastic about
android, but i'm about to surrender, now that maemo is dead, and meego
isn't going anywhere.

i read very good reviews about the samsung galaxy S2, although i think
it's too expensive (it cost almost as much of what i paid for a fully
customized HP dm1z).

any suggestions?

Date2012-03-03 15:12
FromSteven Yi
SubjectRe: [Csnd] Re: [Cs-dev] Android Build and Examples Committed to
For phone, I have a Google Nexus One.  It's underpowered by today's
standards and doesn't have much RAM unfortunately.  I'm still able to
run the examples, though I don't think it'd be able to do too, too
much in terms of polyphony or just overall number crunching.

I have a Kindle Fire; it runs fine, not the fastest, but I'll likely
do blue development with it.  Unfortunately though, microphone in just
doesn't seem to work on it.

For tablets, we're sort of at a transition point with the next wave of
tablets likely to use Tegra 3, which is a quad-core chip.  The Asus
Prime was the first of that wave, but new ones are coming very soon.
The Samsung tablets are nice; most are dual-core, but since multi-core
isn't really taken advantage of in Csound, the choice to purchase a
quad-core or dual-core probably won't be a factor at the moment.  It
may be a factor though for work over the next year, as I'm sure we'll
get to working more on multi-core in Csound.

The Samsung tablets are pretty popular, so they're worth supporting.
If I'm thinking in terms of a software maker, I'd want to support what
is popular (hence, one factor in why I bought a Kindle Fire).  If I'm
thinking just in terms of personal use, I'd get the fastest thing
possible. :P  Samsung or Asus would be fine choices I think.

For phones, I can't comment myself but I'd probably get a Google Nexus
(the latest), but Nexus S II would be nice too I think.

Hope that helps!
steven


On Sat, Mar 3, 2012 at 2:33 PM, luis jure  wrote:
>
> on 2012-03-02 at 19:42 Roger Kelly wrote:
>
>>I purchased an Asus prime recently.
>
> cool...
>
> and what about handheld devices? i've never been too enthusiastic about
> android, but i'm about to surrender, now that maemo is dead, and meego
> isn't going anywhere.
>
> i read very good reviews about the samsung galaxy S2, although i think
> it's too expensive (it cost almost as much of what i paid for a fully
> customized HP dm1z).
>
> any suggestions?
>
>
> 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"
>


Date2012-03-04 11:05
Fromluis jure
Subject[Csnd] android and meego (derived thread)
on 2012-03-03 at 12:33 luis jure wrote:

> and meego isn't going anywhere.


may be i spoke too soon? i've just seen that the new nokia n9 is based on
meego (although it has some other disadvantages compared to the samsung
galaxy). 

has anyone experience with this OS? any ideas how easy/difficult it is to
cross-compile or port from plain linux to meego?

victor and steven discussed the latency problems with android. could meego 
be better in that sense?

best,


lj

Date2012-03-04 11:29
FromAndres Cabrera
SubjectRe: [Csnd] android and meego (derived thread)
Hi Luis,

I've got an N950 (the developer version of the N9), and I like it a
lot. I've never used Android or iOS, so I can't compare, but Meego is
very good. Unfortunately the N9 will be Nokia's last Meego phone, so
it is in a way dead. But there are many rumours that future feature
phones Nokia will make will be Linux based, and likely to be derived
from Meego. But it's mostly speculation and rumours so far.

Meego is a fairly standard Linux system at its base, and it uses
apt-get and debian packages, so porting things is pretty straight
forward. Your main issue will be dependencies, and their compatibility
 with ARM.

Cheers,
Andres

On Sun, Mar 4, 2012 at 11:05 AM, luis jure  wrote:
>
> on 2012-03-03 at 12:33 luis jure wrote:
>
>> and meego isn't going anywhere.
>
>
> may be i spoke too soon? i've just seen that the new nokia n9 is based on
> meego (although it has some other disadvantages compared to the samsung
> galaxy).
>
> has anyone experience with this OS? any ideas how easy/difficult it is to
> cross-compile or port from plain linux to meego?
>
> victor and steven discussed the latency problems with android. could meego
> be better in that sense?
>
> best,
>
>
> lj
>
>
> 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"
>


Date2012-03-05 12:29
Fromluis jure
SubjectRe: [Csnd] android and meego (derived thread)
thank you andrés for the report! it's a real pity that nokia is dropping
meego, i hope they'll keep some sort of linux-based OS on their devices.
in fact, i didn't even expect them to release the N9 on meego. let's see
what the future brings...

anyway, steven is of course right when he says that the best move is to
support platforms that are popular... within acceptable limits of
openness, i guess. i'm not crazy about android, but it's incomparably
better than anything apple. or microsoft. so i think it's a relatively good
thing that it's growing so much, compared to the alternatives... 

best!


lj