Csound Csound-dev Csound-tekno Search About

[Csnd] Cell phone Csound

Date2009-11-24 14:40
FromMichael Gogins
Subject[Csnd] Cell phone Csound
I note that for Android phones, there is a native development kit
(NDK) enabling the use of C and C++ code on Android phones. I will
investigate further. Because Csound has a Java API, it probably is
possible to produce a fairly complete Csound port for the Android
phones.

Or, as I suggested npreviously, native Csound could be scripted with
Lua right on the phone.

The phones would of course run more slowly than any desktop or
notebook, so perhaps we should think about a facility for running
Csound on a server (for those who have fixed IP addresses) from
scripts and Csound files generated on phones, and returning audio to
the phone either in real time or as soundfiles.

I expect that fairly interesting real-time apps could be developed to
perform Csound scripts on phones, thus turning them into actual
instruments, especially because they have motion and orientation
sensors; a reasonably sophisticated software instrument could probably
run on a phone in real time, even if only with a few voices.

-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2009-11-24 14:53
Fromchris kummerer
SubjectRe: [Cs-dev] Cell phone Csound
re Michael,

I read:
> I note that for Android phones, there is a native development kit
> (NDK) enabling the use of C and C++ code on Android phones. 

at last!

> I will
> investigate further. Because Csound has a Java API, it probably is
> possible to produce a fairly complete Csound port for the Android
> phones.

please correct me if I'm wrong but so far all the actual android 
phones I found lack an FPU ... 

regards,

x

-- 
chris@lo-res.org        Postmodernism is german romanticism with better
http://pilot.fm/        special effects. (Jeff Keuss / via ctheory.net)

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-11-24 16:35
FromSteven Yi
SubjectRe: [Cs-dev] Cell phone Csound
Last I looked at the NDK, there were limitations on what libraries
were being included.  It looks like the 1.6r1 NDK has included a few
more things:

    * libc (C library) headers
    * libm (math library) headers
    * JNI interface headers
    * libz (Zlib compression) headers
    * liblog (Android logging) header
    * OpenGL ES 1.1 (3D graphics library) headers
    * A Minimal set of headers for C++ support

I imagine floating point will be slow but haven't seen any metrics on it.

On Tue, Nov 24, 2009 at 9:53 AM, chris kummerer  wrote:
> re Michael,
>
> I read:
>> I note that for Android phones, there is a native development kit
>> (NDK) enabling the use of C and C++ code on Android phones.
>
> at last!
>
>> I will
>> investigate further. Because Csound has a Java API, it probably is
>> possible to produce a fairly complete Csound port for the Android
>> phones.
>
> please correct me if I'm wrong but so far all the actual android
> phones I found lack an FPU ...
>
> regards,
>
> x
>
> --
> chris@lo-res.org        Postmodernism is german romanticism with better
> http://pilot.fm/        special effects. (Jeff Keuss / via ctheory.net)
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-11-24 17:04
FromFelipe Sateler
SubjectRe: [Cs-dev] Cell phone Csound
AttachmentsNone  None  
How hard would it be to use integer for internal processing? Very?

On Tue, 2009-11-24 at 11:35 -0500, Steven Yi wrote:
> Last I looked at the NDK, there were limitations on what libraries
> were being included.  It looks like the 1.6r1 NDK has included a few
> more things:
> 
>     * libc (C library) headers
>     * libm (math library) headers
>     * JNI interface headers
>     * libz (Zlib compression) headers
>     * liblog (Android logging) header
>     * OpenGL ES 1.1 (3D graphics library) headers
>     * A Minimal set of headers for C++ support
> 
> I imagine floating point will be slow but haven't seen any metrics on it.
> 
> On Tue, Nov 24, 2009 at 9:53 AM, chris kummerer  wrote:
> > re Michael,
> >
> > I read:
> >> I note that for Android phones, there is a native development kit
> >> (NDK) enabling the use of C and C++ code on Android phones.
> >
> > at last!
> >
> >> I will
> >> investigate further. Because Csound has a Java API, it probably is
> >> possible to produce a fairly complete Csound port for the Android
> >> phones.
> >
> > please correct me if I'm wrong but so far all the actual android
> > phones I found lack an FPU ...
> >
> > regards,
> >
> > x
> >
> > --
> > chris@lo-res.org        Postmodernism is german romanticism with better
> > http://pilot.fm/        special effects. (Jeff Keuss / via ctheory.net)
> >
> > ------------------------------------------------------------------------------
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> > trial. Simplify your report design, integration and deployment - and focus on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-- 
Saludos,
Felipe Sateler

Date2009-11-24 17:09
FromMichael Gogins
SubjectRe: [Cs-dev] Cell phone Csound
I'm trying to figure this out for my own phone, the MyTouch 3G (aka
HTC Magic or Sapphire). The ARM1136 CPU that the phone uses has an
optional FPU. I'm trying to figure out if the phone contains the
optional FPU or not.

Regards,
Mike

On Tue, Nov 24, 2009 at 9:53 AM, chris kummerer  wrote:
> re Michael,
>
> I read:
>> I note that for Android phones, there is a native development kit
>> (NDK) enabling the use of C and C++ code on Android phones.
>
> at last!
>
>> I will
>> investigate further. Because Csound has a Java API, it probably is
>> possible to produce a fairly complete Csound port for the Android
>> phones.
>
> please correct me if I'm wrong but so far all the actual android
> phones I found lack an FPU ...
>
> regards,
>
> x
>
> --
> chris@lo-res.org        Postmodernism is german romanticism with better
> http://pilot.fm/        special effects. (Jeff Keuss / via ctheory.net)
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-11-24 17:25
FromMichael Gogins
SubjectRe: [Cs-dev] Cell phone Csound
Very.

Mike

On Tue, Nov 24, 2009 at 12:04 PM, Felipe Sateler  wrote:
> How hard would it be to use integer for internal processing? Very?
>
> On Tue, 2009-11-24 at 11:35 -0500, Steven Yi wrote:
>> Last I looked at the NDK, there were limitations on what libraries
>> were being included.  It looks like the 1.6r1 NDK has included a few
>> more things:
>>
>>     * libc (C library) headers
>>     * libm (math library) headers
>>     * JNI interface headers
>>     * libz (Zlib compression) headers
>>     * liblog (Android logging) header
>>     * OpenGL ES 1.1 (3D graphics library) headers
>>     * A Minimal set of headers for C++ support
>>
>> I imagine floating point will be slow but haven't seen any metrics on it.
>>
>> On Tue, Nov 24, 2009 at 9:53 AM, chris kummerer  wrote:
>> > re Michael,
>> >
>> > I read:
>> >> I note that for Android phones, there is a native development kit
>> >> (NDK) enabling the use of C and C++ code on Android phones.
>> >
>> > at last!
>> >
>> >> I will
>> >> investigate further. Because Csound has a Java API, it probably is
>> >> possible to produce a fairly complete Csound port for the Android
>> >> phones.
>> >
>> > please correct me if I'm wrong but so far all the actual android
>> > phones I found lack an FPU ...
>> >
>> > regards,
>> >
>> > x
>> >
>> > --
>> > chris@lo-res.org        Postmodernism is german romanticism with better
>> > http://pilot.fm/        special effects. (Jeff Keuss / via ctheory.net)
>> >
>> > ------------------------------------------------------------------------------
>> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> > trial. Simplify your report design, integration and deployment - and focus on
>> > what you do best, core application coding. Discover what's new with
>> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> --
> Saludos,
> Felipe Sateler
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-11-24 17:27
FromMichael Gogins
SubjectRe: [Cs-dev] Cell phone Csound
I should add, the "bionic" libc that the NDK contains will
automatically use the FPU, if it exists, if the code is built for
"soft" float.

I'd bet that whether or not MY phone has an FPU, or my wife's more
recent Eris phone has an FPU, the next one I get in a year or so
definitely will have an FPU and the NDK will support it.

Regards,
Mike

On Tue, Nov 24, 2009 at 12:09 PM, Michael Gogins
 wrote:
> I'm trying to figure this out for my own phone, the MyTouch 3G (aka
> HTC Magic or Sapphire). The ARM1136 CPU that the phone uses has an
> optional FPU. I'm trying to figure out if the phone contains the
> optional FPU or not.
>
> Regards,
> Mike
>
> On Tue, Nov 24, 2009 at 9:53 AM, chris kummerer  wrote:
>> re Michael,
>>
>> I read:
>>> I note that for Android phones, there is a native development kit
>>> (NDK) enabling the use of C and C++ code on Android phones.
>>
>> at last!
>>
>>> I will
>>> investigate further. Because Csound has a Java API, it probably is
>>> possible to produce a fairly complete Csound port for the Android
>>> phones.
>>
>> please correct me if I'm wrong but so far all the actual android
>> phones I found lack an FPU ...
>>
>> regards,
>>
>> x
>>
>> --
>> chris@lo-res.org        Postmodernism is german romanticism with better
>> http://pilot.fm/        special effects. (Jeff Keuss / via ctheory.net)
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-11-24 17:36
FromSteven Yi
SubjectRe: [Cs-dev] Cell phone Csound
That's great news!  I'll be very interested to see how well this
performs when it can be compiled!

On Tue, Nov 24, 2009 at 12:27 PM, Michael Gogins
 wrote:
> I should add, the "bionic" libc that the NDK contains will
> automatically use the FPU, if it exists, if the code is built for
> "soft" float.
>
> I'd bet that whether or not MY phone has an FPU, or my wife's more
> recent Eris phone has an FPU, the next one I get in a year or so
> definitely will have an FPU and the NDK will support it.
>
> Regards,
> Mike
>
> On Tue, Nov 24, 2009 at 12:09 PM, Michael Gogins
>  wrote:
>> I'm trying to figure this out for my own phone, the MyTouch 3G (aka
>> HTC Magic or Sapphire). The ARM1136 CPU that the phone uses has an
>> optional FPU. I'm trying to figure out if the phone contains the
>> optional FPU or not.
>>
>> Regards,
>> Mike
>>
>> On Tue, Nov 24, 2009 at 9:53 AM, chris kummerer  wrote:
>>> re Michael,
>>>
>>> I read:
>>>> I note that for Android phones, there is a native development kit
>>>> (NDK) enabling the use of C and C++ code on Android phones.
>>>
>>> at last!
>>>
>>>> I will
>>>> investigate further. Because Csound has a Java API, it probably is
>>>> possible to produce a fairly complete Csound port for the Android
>>>> phones.
>>>
>>> please correct me if I'm wrong but so far all the actual android
>>> phones I found lack an FPU ...
>>>
>>> regards,
>>>
>>> x
>>>
>>> --
>>> chris@lo-res.org        Postmodernism is german romanticism with better
>>> http://pilot.fm/        special effects. (Jeff Keuss / via ctheory.net)
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>> trial. Simplify your report design, integration and deployment - and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-11-24 19:11
FromBrian Redfern
Subject[Csnd] Re: Cell phone Csound
I would bet that most of the OLPC subset could run on at least some
android devices, my moto droid has a 550 mghz processor, so its not
much slower than the OLPC.

On Tue, Nov 24, 2009 at 6:40 AM, Michael Gogins
 wrote:
> I note that for Android phones, there is a native development kit
> (NDK) enabling the use of C and C++ code on Android phones. I will
> investigate further. Because Csound has a Java API, it probably is
> possible to produce a fairly complete Csound port for the Android
> phones.
>
> Or, as I suggested npreviously, native Csound could be scripted with
> Lua right on the phone.
>
> The phones would of course run more slowly than any desktop or
> notebook, so perhaps we should think about a facility for running
> Csound on a server (for those who have fixed IP addresses) from
> scripts and Csound files generated on phones, and returning audio to
> the phone either in real time or as soundfiles.
>
> I expect that fairly interesting real-time apps could be developed to
> perform Csound scripts on phones, thus turning them into actual
> instruments, especially because they have motion and orientation
> sensors; a reasonably sophisticated software instrument could probably
> run on a phone in real time, even if only with a few voices.
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-11-24 19:30
FromErik de Castro Lopo
SubjectRe: [Cs-dev] Cell phone Csound
Michael Gogins wrote:

> I note that for Android phones, there is a native development kit
> (NDK) enabling the use of C and C++ code on Android phones.

Another possibilty is the Palm Pre which seems a little more open
than the Android phones.  The Palm Pre comes with libsndfile
version 1.0.17 pre-installed (as a shared library).

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net