Question on Android csound
Date | 2016-03-11 20:30 |
From | jpff |
Subject | Question on Android csound |
I have been working on a couple demo programs on a phone or tablet using Mike's csound with HTML5 and I have a couple of problems. 1: Both csd files take sound in from the microphone, modify it and output. One works beautifully, the other is a disaster! The broken one is basically Victor's autotuner with some interaction, but all I hear it electronic clicks (file attached). If I output the microphone input it is just the same and the slider controls of the amplitudes do nothing. The only difference I can see is in the autotuner the input and output happen in the same cycle, where the working program stores the input in a table first. I should add that both programs work on my laptop, apart from a feedback problem and a button not working exactly the same. Any suggestions? 2: It would be so nice to change the labels on the sliders/buttons to reflect the usage -- can that be done? ==John ffitch Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-03-11 21:01 |
From | Michael Gogins |
Subject | Re: Question on Android csound |
Don't know about the table for audio, but suspect things aren't all happening in the same kperiod which is necessary. As for labels, consider using an HTML GUI. There are examples in GIT you can re-use. Best, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Mar 11, 2016 at 10:30 PM, jpff |
Date | 2016-03-11 21:16 |
From | jpff |
Subject | Re: Question on Android csound |
I looked at the examples but they made zero sense. Seemed to require knowledge I just do not have, like javascript and bits of html not related to layout. Shame there is not a simple way to change labels, but I can possibly accept that. I do not think I could learn javascript in less than a week. The substantial problem is that reading from the microphone does not work on android but does not linux. I have replaced the input by a simple oscilator and that sort of works now, so it relates to the micrphone somehow. ==John Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-03-11 21:56 |
From | Michael Gogins |
Subject | Re: Question on Android csound |
Victor knows more about the audio driver, I think., Best, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Mar 11, 2016 at 11:16 PM, jpff |
Date | 2016-03-11 21:58 |
From | Steven Yi |
Subject | Re: Question on Android csound |
John, could you post the problematic CSD? On Fri, Mar 11, 2016 at 4:56 PM, Michael Gogins |
Date | 2016-03-11 22:12 |
From | Victor Lazzarini |
Subject | Re: Question on Android csound |
Did you try a simple in - out instrument? Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 11 Mar 2016, at 21:16, jpff |
Date | 2016-03-11 22:37 |
From | Tarmo Johannes |
Subject | Re: Question on Android csound |
Attachments | test-html5.csd intonationhelper.csd |
Hi John, have you considered using a Cabbage solution? Cabbage for Android is in early phase but works well. Creating widgets in Cabbage does not need much expertise, but frankly, John, I am dead certain that with your experience in programming, you would grasp sufficient info how to manipulate necessary html5 elements in an hour or less. If it is of any help, I attach a very simple csd that used two html5 buttons that trigger one csound instrument that sends OSC messages. Using Csound channels is almost as easy, I don't have an example now but I am sure someone can provide one. What concerns audio input, unfortunately I have no deeper experience with android. Once I used microphone input for kind of tuning app within a native android app using Csound API, then there was no problem. For any case I attach that csd as well. The header looked |
Date | 2016-03-12 15:42 |
From | jpff |
Subject | Re: Question on Android csound |
I took a qyick look at your examples; I think you have an inflated view of my ability to handle anything visual or GUI like. Lots of words that mean next to zero for me. OK only 30mins so far! Not sure about moving to Cabbage, as I had little sucess in understanding it last time I tried and I never understood the videos. Is Android Cabbage available? I suppose I could try. ==John On Sat, 12 Mar 2016, Tarmo Johannes wrote: > Hi John, > > have you considered using a Cabbage solution? Cabbage for Android is in early > phase but works well. Creating widgets in Cabbage does not need much > expertise, but frankly, John, I am dead certain that with your experience in > programming, you would grasp sufficient info how to manipulate necessary html5 > elements in an hour or less. > > If it is of any help, I attach a very simple csd that used two html5 buttons > that trigger one csound instrument that sends OSC messages. Using Csound > channels is almost as easy, I don't have an example now but I am sure someone > can provide one. > > What concerns audio input, unfortunately I have no deeper experience with > android. Once I used microphone input for kind of tuning app within a native > android app using Csound API, then there was no problem. For any case I attach > that csd as well. > > The header looked > > |
Date | 2016-03-12 16:00 |
From | Rory Walsh |
Subject | Re: Question on Android csound |
Attachments | Jffitch.csd |
You can find it here:
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
I've also attached simple file that will allow you to control the gain of the input microphone, displays the Csound output console and add a button that does nothing but print its value when pressed. Just a few things to note first, and things you will see in the attached .csd file. - Your Csound instrument should be on all the time, or at least use an fZ 0 in the score to keep the things running. - You can access the microphone input using "inch 1". On most Android phones I've tested the input has been mono. - You don't need to set anything in the .csd options. Cabbage is looking after audio IO. - All Cabbage instruments output in stereo on Android. After you install the .apk, place the attached file into your CabbageFiles directory. It will have been created when you installed the .apk. It can be found in the user home directory of your phone. When you launch Cabbage you should see a list of files to choose from. Scroll to yours and launch it. If you've any problems let me know. I've been testing mostly on Android 4.4 or upwards. |