Re: Android and OSClisten
Date | 2015-05-13 13:28 |
From | Russell Pinkston |
Subject | Re: Android and OSClisten |
Attachments | None None |
Your Csound code looks fine. Have you tried running it on a different machine? I.e., run Csound on a PC or Mac connected to the same network as your tablet and see if your code works correctly with TouchOSC. I use TouchOSC all the time with Csound, and I use the TouchOSC editor to define the layouts, so I don't think that's your problem. Sent via the Samsung Galaxy Alpha™, an AT&T 4G LTE smartphone -------- Original message -------- From: Art Hunkins <abhunkin@uncg.edu> Date: 05/12/2015 9:38 PM (GMT-06:00) To: Justin Smith <noisesmith@gmail.com>, csound users' discussions <csound-users@lists.sourceforge.net> Subject: Re: [Csnd] Android and OSClisten Unfortunately, it doesn't. No difference from what reported. One confusing thing about the TouchOSC Editor, is that whatever you do, the editor automatically adds "/" to all widget names - e.g., "fader1" becomes "/fader1". And if you set the Page to anything, such as "1", fader1 becomes "/1/fader1". No way of getting rid of the slash that I see (the same with Auto mode). Of course, I'm using the Windows TouchOSC Editor. Is the action perhaps different for the Mac? (I understand there is no Linux editor.) I note that all the default Layouts (in the Windows editor) use Auto mode for both Pages and widgets. As Page 1 is always named "1" (which causes it to be sent as "/1"), fader1 will be sent as "/1/fader1". So I assume this is what happens even if you are not using a TouchOSC Editor. Or am I wrong? Art Hunkins ----- Original Message ----- From: "Justin Smith" <noisesmith@gmail.com> To: "Art Hunkins" <abhunkin@uncg.edu>; "csound users' discussions" <csound-users@lists.sourceforge.net> Sent: Tuesday, May 12, 2015 8:45 PM Subject: Re: [Csnd] Android and OSClisten > if the slider is set to send "fader1", this should be working as written > > On 5/12/15, Art Hunkins <abhunkin@uncg.edu> wrote: >> In Mike's latest Csound6 for Android (6.05), I've been having a difficult >> time getting OSClisten to receive OSC messages sent from a TouchOSC >> Layout, >> >> all on my Android device (Samsung Galaxy Tab 2, Android OS 4.2.2). >> >> Here's my simple test.csd: >> ---------------------------------- >> <CsoundSynthesizer> >> <CsOptions> >> >> -odac -d >> >> </CsOptions> >> <CsInstruments> >> >> sr = 44100 >> ksmps = 100 >> nchnls = 2 >> >> gichan OSCinit 8000 >> >> instr 1 >> >> gkamp init 0 >> kans OSClisten gichan, "/1/fader1", "f", gkamp >> aout lfo gkamp * 12000, 440, 1 >> outs aout, aout >> >> endin >> >> </CsInstruments> >> <CsScore> >> >> i1 0 3600 >> >> </CsScore> >> </CsoundSynthesizer> >> --------------------- >> The TouchOSC Host is set to 127.0.0.1 >> Its outgoing port to 8000 >> Its slider is identified as /1/fader1 >> Slider range: 0 - 1 >> >> Even with a -v flag set in CsOptions, the .csd runs with no errors, Only >> WARNING: OSC listener #0 started at port 8000. Stops normally. There is >> no >> output amplitude. >> The only negative hint is a single console message: handle=0 - which to >> me >> indicates that no OSC message has been received. >> >> I've the definite impression that the OSClisten destination address >> "/1/fader1" is wrong (or its corresponding identification in TouchOSC, or >> maybe both). >> >> Can anyone shed any light? >> >> Art Hunkins >> >> >> ------------------------------------------------------------------------------ >> 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 |