Csound Csound-dev Csound-tekno Search About

Re: proof of concept, looping and granulation on an android tablet

Date2015-05-07 23:00
From"Art Hunkins"
SubjectRe: proof of concept, looping and granulation on an android tablet
AttachmentsNone  None  
Justin -
 
I've been valiantly trying to get Android to play a .csd with a TouchOSC layout (both mine). Can't get the duo to produce sound; .csd spawns no error messages, but will no stop when Stop button pushed. (I'm of course using Mike's 6.05 based Csound6.apk).
 
Here's an initial snippet of my .csd that shows that side of things; I think it's correct, but ?: (note that I'm attempting one-way communication only)
 
sr      = 44100 ; Sample Rate
ksmps = 100
nchnls  =       2
 
gichan  OSCinit 8000
 
 instr 1
  
gkamp   init     0
kans    OSClisten gichan, "slider1", "f", gkamp
gkamp   tab      gkamp * 511, 2
gkamp   =        gkamp * 12000
 
 
What's probably going wrong is what you had figured out by using tcpdump (which I've little wish to get into, not knowing anything about it): in my layout, I don't know how to set the Page (and perhaps also the Widget - here "slider1") names/references correctly. Seems *if I could get the Page address right*, and use "Auto" mode (as I have) with all the sliders, naming them "slider1" etc., I should be good to go. So I just don't think the TouchOSC messages are being sent from the right location.
 
Should it matter where TouchOSC is being run from, and where the layouts are stored, given that I'm doing these things in the normal way? And, for that matter, will the layout's Page name/address be the same on all Android devices, or different on most or all? (If the latter, this would be an impediment to distributing viable layouts.)
 
One other possible pitfall: in my layout Settings, should OSC Host address be set, as you seem to suggest, to 127.0.0.1, or to my Android device's local IP address: 192.168.1.104? I presume the former.
 
Thanks for your - or anyone else's - help with this.
 
Art Hunkins 
----- Original Message -----
Sent: Tuesday, April 28, 2015 2:12 PM
Subject: Re: [Csnd] proof of concept, looping and granulation on an android tablet

and I missed the first question - yes all of this was done on an android device (except for the external recorder taking an analog line in)

On Tue, Apr 28, 2015 at 11:11 AM, Justin Smith <noisesmith@gmail.com> wrote:
In touchosc select 127.0.0.1 as the remote address.

listen in csound for the channel touchosc sends (I used 8000), listen in touchosc for the channel csound sends (I used 9000)

touchosc of course uses its custom widget builder and default channels, I found it useful to use tcpdump (which can also dump UDP) to see exactly what touchosc was trying to send so that I could set up the channels for csound to listen to.

I can put together a basic demo later, I'm at work currently.

On Tue, Apr 28, 2015 at 10:57 AM, Art Hunkins <abhunkin@uncg.edu> wrote:
Is this possible on Android?
 
If so, could you outline the procedure and give:
 1) instructions for how the connection is made;
 2) a simple example (particularly a .csd)?
 
Art Hunkins
----- Original Message -----
Sent: Tuesday, April 28, 2015 12:18 PM
Subject: Re: [Csnd] proof of concept,looping and granulation on an android tablet

Yes, both running on the same tablet, it worked very smoothly.

On Tue, Apr 28, 2015 at 8:56 AM, Steven Yi <stevenyi@gmail.com> wrote:
Hi Justin,

Thanks for sharing! I'm curious, were you using TouchOSC and Csound6
at the same time on the same tablet?

Thanks!
steven

On Tue, Apr 28, 2015 at 10:28 AM, Justin Smith <noisesmith@gmail.com> wrote:
> An experiment / proof of concept for live granulation and looping of
> instrument input via csound on an inexpensive tablet (samsung galaxy 7).
> Audio Technica ATM450 mic, iRig mic preamp for mobile devices. The
> instrument is an inexpensive generic student viola. Captured via line out
> from the iRig on a hand held recorder (next step is surely recording the
> audio file from within the csound patch).
>
> https://soundcloud.com/information/tablet-and-viola-poc
>
> I made the UI with touchosc, which is very useful now that the OSC opcodes
> are part of the csound6.apk download for android.
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y


_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here