[Cs-dev] Csound 6 for Android
Date | 2013-07-01 14:30 |
From | Michael Gogins |
Subject | [Cs-dev] Csound 6 for Android |
Attachments | None None |
Steven, could you see if http://sourceforge.net/projects/csound/files/csound6/Csound6.0rc4/Csound6.apk/download runs for you? I uploaded this based on your changes plus a few more changes of mine. Be aware that there seems to be some sort of bug with the alwayson opcode so you should try csds that don't use it such as Trapped or Xanadu.
The changes I made are to always link all libraries dynamically, to preload the sndfile and gnustl_shared library both in csndJNI.java and in CsoundAppActivity.java, and to use the NDK "include" functionality to build without need for shell scripts (although the build-all.sh script is still used to build the plugin libs).
Let me know if this runs when you get a chance, Mike P.S. The static build I make seems to work for everyone who has tried it, but I agree with you that the shared library approach is better if we can get it to work for everyone.
Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com |
Date | 2013-07-01 14:39 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 6 for Android |
Hi Michael, This runs as it did before. I can run trapped and CloudStrata, but upon 2nd time of rendering it crashes. I think we need to try loading opcode libs outside of the libs folder as a next step. I'm hunting a UDO polymorphism bug at the moment, but may have some time to experiment later today/tonight. Thanks! steven On Mon, Jul 1, 2013 at 9:30 AM, Michael Gogins |
Date | 2013-07-01 14:50 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
I do understand why we need to load opcodes from outside the app local lib directory, because on the device it is not accessible to users, who therefore are unable to install their own or third party plugins for the app. However, I'm curious - why do you think loading from a user-accessible directory will help with your crashing issue? (which I don't have, by the way). If plugins load once, why not a second time? If if loading twice is a crime, why not just put in code to stop that from happening?
Regards, Mike ===========================
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jul 1, 2013 at 9:39 AM, Steven Yi <stevenyi@gmail.com> wrote: Hi Michael, |
Date | 2013-07-01 15:08 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 6 for Android |
My guess at the moment is that the OS is pre-loading all libraries in the libs folder. On the first load by Csound it'd open, run fine, then close libs, then upon 2nd load the error message I posted about the library loading crashing could happen. Just a guess really. I think the libraries should still be packaged with the APK, just loaded from assets. So I'm not suggesting to force loading from a user-accessible folder (i.e. /data/sdcard or something like that), just changing where in the APK it loads from. On Mon, Jul 1, 2013 at 9:50 AM, Michael Gogins |
Date | 2013-07-01 15:23 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
I don't think the os pre loads from lib because load order is known to be critical and the os has no way of knowing the load order. I've read dozens of docs and posts about this. I'll now Google about loading a second time. I'm inferring you think that by loading from another dir we avoid the os doing it wrong. I still think we need to give users the ability to load plugins from user storage. Best, On Jul 1, 2013 10:08 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
My guess at the moment is that the OS is pre-loading all libraries in |
Date | 2013-07-01 15:36 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
Does this seem relevant? Do you see the logcat message that is mentioned in the post? Regards, Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jul 1, 2013 at 10:23 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2013-07-01 15:36 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
Does this seem relevant? Do you see the logcat message that is mentioned in the post? =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jul 1, 2013 at 10:23 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2013-07-01 15:39 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 6 for Android |
Well that's the strange thing, before I modified CsoundAppActivity, I saw error messages with not finding libgnustl_shared but it reported it when loading some of the opcode libraries. This was on app startup, before any Csound was run. That was what made me think the OS pre-loaded libraries from that folder. (Yes, that sounds odd to me too, but seemed to be what was happening.) On Mon, Jul 1, 2013 at 10:23 AM, Michael Gogins |
Date | 2013-07-01 15:40 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
Here's another one. I did as suggested to get the load order for my device, but is possible that it is different on your device! Regards, Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jul 1, 2013 at 10:36 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2013-07-01 15:40 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 6 for Android |
I don't think this one is relevant as I don't remember seeing that message. I'll have to double check though later (focusing on the polymorphic bug at the moment). On Mon, Jul 1, 2013 at 10:36 AM, Michael Gogins |
Date | 2013-07-01 15:43 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
... in particular, there is a potential load order/static object clash/dependency issue with libstdc++.so and libgnustl_shared.so. Possibly, we need to preload stdc++ and gnustl_shared in the correct order.
Note that stdc++ is minimal on Android (hence the introduction of gnustl) and that the OS does preload stdc++ but not gnustl. Best, Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jul 1, 2013 at 10:40 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2013-07-01 16:14 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
That is strange, and I think this is our clue. I think we need to know why this happens. Is it still happening? Best, Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jul 1, 2013 at 10:39 AM, Steven Yi <stevenyi@gmail.com> wrote: Well that's the strange thing, before I modified CsoundAppActivity, I |
Date | 2013-07-01 17:20 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 6 for Android |
Hi Michael, I was about to test and I went to do a rebuild and got: Building in LuaCsound Android NDK: jni/Android.mk: Cannot find module with tag 'luajit-2.0/jni' in import path Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ? Android NDK: The following directories were searched: Android NDK: Are you using a jni/Android.mk file now with luajit? If so, we'll need to add that to GIT and make downloadDependencies.sh automatically copy that to the luajit-2.0/jni folder. Thanks! steven On Mon, Jul 1, 2013 at 11:14 AM, Michael Gogins |
Date | 2013-07-01 17:21 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 6 for Android |
Also to note, I get errors with libfluidsynth: jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:630: error: undefined reference to 'fluid_synth_set_interp_method' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:276: error: undefined reference to 'fluid_synth_program_select' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:339: error: undefined reference to 'fluid_synth_cc' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:373: error: undefined reference to 'fluid_synth_noteoff' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:366: error: undefined reference to 'fluid_synth_noteon' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:303: error: undefined reference to 'fluid_synth_cc' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:419: error: undefined reference to 'fluid_synth_write_float' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:805: error: undefined reference to 'fluid_synth_get_settings' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:806: error: undefined reference to 'delete_fluid_synth' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:807: error: undefined reference to 'delete_fluid_settings' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:210: error: undefined reference to 'fluid_is_soundfont' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:214: error: undefined reference to 'fluid_synth_sfload' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:228: error: undefined reference to 'fluid_synth_get_sfont_by_id' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:566: error: undefined reference to 'fluid_synth_program_change' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:531: error: undefined reference to 'fluid_synth_noteoff' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:579: error: undefined reference to 'fluid_synth_pitch_bend' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:558: error: undefined reference to 'fluid_synth_cc' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:544: error: undefined reference to 'fluid_synth_noteon' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:470: error: undefined reference to 'fluid_synth_write_float' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:137: error: undefined reference to 'new_fluid_settings' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:141: error: undefined reference to 'fluid_settings_setnum' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:143: error: undefined reference to 'fluid_settings_setint' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:145: error: undefined reference to 'fluid_settings_setint' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:146: error: undefined reference to 'new_fluid_synth' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:157: error: undefined reference to 'fluid_synth_set_chorus_on' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:158: error: undefined reference to 'fluid_synth_set_reverb_on' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:137: error: undefined reference to 'new_fluid_settings' jni/../../../../Opcodes/fluidOpcodes/fluidOpcodes.cpp:151: error: undefined reference to 'delete_fluid_settings' collect2: error: ld returned 1 exit status On Mon, Jul 1, 2013 at 12:20 PM, Steven Yi |
Date | 2013-07-01 18:02 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
My apologies, I thought I had this all checked in. I will get the you the Android.mk for LuaJIT as soon as I get home from dinner this evening, and the other thing too. Sorry, Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jul 1, 2013 at 12:21 PM, Steven Yi <stevenyi@gmail.com> wrote: Also to note, I get errors with libfluidsynth: |
Date | 2013-07-01 18:14 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 6 for Android |
No worries, I've got my hands full with iOS at the moment. :) I'll take a look later tonight when the files are uploaded. Thanks! steven On Mon, Jul 1, 2013 at 1:02 PM, Michael Gogins |
Date | 2013-07-02 01:07 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
I think I've got all the called-for Android makefiles into git now. Thanks for putting in the .gitignore files. Let me know if there are any more problems...
Victor's fix for the strings seems to be working. Best, Mike ===========================
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Mon, Jul 1, 2013 at 1:14 PM, Steven Yi <stevenyi@gmail.com> wrote: No worries, I've got my hands full with iOS at the moment. :) I'll |
Date | 2013-07-02 03:29 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
Hi Michael, Thanks for those. Unfortunately I'm out of time for tonight as I got hung up chasing an iOS bug. I've got to pack up the car as we're driving back to Rochester starting tomorrow. I'll be on the road all day tomorrow and part of Wednesday. I'll try to pick up on Android either late night tomorrow or Wednesday evening.
Thanks! Steven
On Monday, July 1, 2013, Michael Gogins wrote:
|
Date | 2013-07-02 03:32 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
Where are you driving from? Best, Mike On Jul 1, 2013 10:29 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
Hi Michael, |
Date | 2013-07-02 04:15 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
Atlanta. We did the drive a few weeks ago and it's about 1100 miles over two days. Have to go make a driving playlist now. :) On Monday, July 1, 2013, Michael Gogins wrote:
|
Date | 2013-07-02 08:39 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound 6 for Android |
Attachments | None None |
Woo! Are you driving up the Mississippi valley? I suppose that's further West but it's so beautiful. .. On Jul 1, 2013 11:16 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
Atlanta. We did the drive a few weeks ago and it's about 1100 miles over two days. Have to go make a driving playlist now. :) |
Date | 2013-07-02 08:40 |
From | Rory Walsh |
Subject | Re: [Cs-dev] Csound 6 for Android |
Wow, that's going to be quite a playlist Steven! On 2 July 2013 05:15, Steven Yi |
Date | 2013-07-02 11:41 |
From | Anders Genell |
Subject | [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
White Steven might already have compiled his and put it to use, I thought it would be nice to have the residing musical gourmets supplying suggestions for inclusion on a playlist for an 1100 mile road trip. While I perhaps am not one of those very refined gourmets, I'll start by suggesting Mike Oldfield's Amarok. I borrowed it simultaneously with The Hitchhikers Guide to the Galaxy from a friend when the album was newly released and had the music as a soundtrack to my first acquaintance with the book. They are since forever linked and the music makes for an hour of highly efficient escapism. Regards, Anders 2 jul 2013 kl. 09:40 skrev Rory Walsh |
Date | 2013-07-02 16:46 |
From | Rory Walsh |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
One could get through the entire Ring cycle in one sitting! ffitchy might be up for that but I think I'd go nuts On 2 July 2013 12:41, Anders Genell |
Date | 2013-07-02 16:51 |
From | peiman khosravi |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None |
They're doing that at the proms this year. I learned my lesson 12 years ago, after 4 hours of standing behind a pillar during Parsifal. Now I'm content with the concert preludes! P On 2 July 2013 16:46, Rory Walsh <rorywalsh@ear.ie> wrote: One could get through the entire Ring cycle in one sitting! ffitchy |
Date | 2013-07-02 16:57 |
From | Rory Walsh |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
I'm pretty sure there is some long-playing Satie works that I might find more interesting, the titles of which elude me now... On 2 July 2013 17:51, peiman khosravi |
Date | 2013-07-02 17:13 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Why would one do that beats me. ;) On 2 Jul 2013, at 16:46, Rory Walsh wrote: > One could get through the entire Ring cycle in one sitting! ffitchy > might be up for that but I think I'd go nuts > > > > On 2 July 2013 12:41, Anders Genell |
Date | 2013-07-02 17:30 |
From | Anders Genell |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
I really don't thing it would be advisable while driving... 2 jul 2013 kl. 18:13 skrev Victor Lazzarini |
Date | 2013-07-02 18:08 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
> I really don't thing it would be advisable while driving... Exactly what I was thinking -- listening to the Ring is an all embracing experience and I could not drive at the same time; same for Bruckner. Actually as a non car owner since I sold my sportscar about 1995 I do most of my driving in France, and listen to France Musique. As a back up I take CDs of string quartets; various Haydn, Maconchy's complete thirteen, Montague, Fitkin..... Somehow I rarely drive to computer music; perhaps the same as Wagner. ==John ff Hope we hear what Steven axctually constructed > > 2 jul 2013 kl. 18:13 skrev Victor Lazzarini |
Date | 2013-07-03 02:42 |
From | Steven Yi |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None |
Hi all, This thread is highly entertaining. :) I have to say when I was younger I would listen to classical music on drives but these days I find it requires to much attention. Oddly though I'd have no problems listening while walking or on the train. We had an early start to or trip do I ended up going with upbeat music, mostly dance and pop. From what I remember from today's drive: Mark Farina: Live in Tokyo And the recent episode of NPR's "Wait wait don't tell me". All pretty mundane but enjoyable and kept us up for the drive! I've been listening to David Bowie's "Let's Dance" album quite a bit recently and imagine it'll be on for tomorrow's drive. Other than that, I've got a long Xenakis playlist I've been meaning to get to as well as had in mind to listen to more Messiaen, particularly Turangalila. There's some compositional things that I've had in mind that I want to listen to in their music. Those though will certainly not be on while driving! :) All best! On Jul 2, 2013 1:08 PM, <jpff@cs.bath.ac.uk> wrote:
> I really don't thing it would be advisable while driving... |
Date | 2013-07-03 06:21 |
From | Anders Genell |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None |
Yes, that was one thing I didn't consider - masking from road noise. It really means you need stuff with limited dynamic or you'll end up missing the quiet parts or get damaged hearing by the loud parts. I suppose it's one reason behind the loudness war. Much contemporary pop music is produced to be listened to in the car or otherwise noisy environments. Makes it kind of dull on decent speakers though. Here is a cover of Let's Dance that I really like by the way: http://www.youtube.com/watch?v=bTSztPm3D5s Regards, Anders
|
Date | 2013-07-03 07:04 |
From | Rory Walsh |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None |
And if we are too stay on the theme of dancing it.... http://m.youtube.com/#/watch?v=7pA5UhNaYw0&desktop_uri=%2Fwatch%3Fv%3D7pA5UhNaYw0 sent from a mobile device... On 3 Jul 2013 07:22, "Anders Genell" <anders.genell@gmail.com> wrote:
|
Date | 2013-07-03 10:02 |
From | peiman khosravi |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None |
And maybe this one? https://www.youtube.com/watch?v=3SpG7C4vHZQ On 3 July 2013 07:04, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2013-07-03 10:37 |
From | Rory Walsh |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None |
Won't play for me in Germany but I've saved the link. YouTube can be a frustrating venture here... sent from a mobile device... On 3 Jul 2013 11:02, "peiman khosravi" <peimankhosravi@gmail.com> wrote:
|
Date | 2013-07-03 15:07 |
From | Edward Costello |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None None None |
Date | 2013-07-03 15:33 |
From | Rory Walsh |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Nice one Ed! Thanks for this. I was starting to go barmy! On 3 July 2013 16:07, Edward Costello |
Date | 2013-07-03 16:14 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
what exactly is the problem? You tube blocked? Censorship? On 3 Jul 2013, at 15:33, Rory Walsh wrote: > Nice one Ed! Thanks for this. I was starting to go barmy! > > > On 3 July 2013 16:07, Edward Costello |
Date | 2013-07-03 16:16 |
From | Edward Costello |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None None None |
Date | 2013-07-03 16:18 |
From | Edward Costello |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None None None |
Date | 2013-07-03 22:31 |
From | Rory Walsh |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None |
That's exactly what you get! If I could only stream hurling matches I might never return! But alas, even with that add on it seems it's not possible to steam certain broadcasts from rte. Oh well. I shouldn't complain to much! sent from a mobile device... On 3 Jul 2013 17:18, "Edward Costello" <edwardcostello@gmail.com> wrote:
|
Date | 2013-07-03 22:46 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None |
Try tunlr: http://tunlr.net/ It works well for BBC and Hulu. Victor On 3 Jul 2013, at 22:31, Rory Walsh wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-07-04 07:45 |
From | Rory Walsh |
Subject | Re: [Cs-dev] OT: Steven's Playlist (was Csound 6 for Android) |
Attachments | None None |
Great. If that works for BBC it should probably work for rte too :) sent from a mobile device... On 3 Jul 2013 23:46, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
|