Csound Csound-dev Csound-tekno Search About

[Csnd] CsoundAndroid and html support

Date2014-08-24 20:48
FromTarmo Johannes
Subject[Csnd] CsoundAndroid and html support
Hi,

I want to share my joy over the html5 widgets' support Michael Gogins 
introduced some time ago.

I needed to make a simple app with two buttons that send an OSC message when 
clicked. Everything I needed to do was to write a csd:



-odac -d








My html test




sr = 44100 nchnls = 1 0dbfs = 1 ksmps = 32 instr 1 ; send 1 for NEXT and -1 for previous ivalue = p4 print ivalue OSCsend 1, "192.168.1.201",7077,"/android","i", ivalue endin
I opened it in android device with recent CsdPlayer and it worked without any problems. So simple!!! You can imagine how much work it would have been creating an Eclipse android project or even making it with Qt. Thanks a lot! And thanks again for the OSC support in CsoundAndroid! tarmo

Date2014-08-24 20:51
FromVictor Lazzarini
SubjectRe: [Csnd] CsoundAndroid and html support
Nice. Who’s going to write a Csound Journal article on this? =)
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 24 Aug 2014, at 20:48, Tarmo Johannes  wrote:

> Hi,
> 
> I want to share my joy over the html5 widgets' support Michael Gogins 
> introduced some time ago.
> 
> I needed to make a simple app with two buttons that send an OSC message when 
> clicked. Everything I needed to do was to write a csd:
> 
> 
> 
> -odac -d
> 
> 
> 
> 
> 
> 
> 
> 
> 

My html test

>


> > > >
> > > sr = 44100 > nchnls = 1 > 0dbfs = 1 > ksmps = 32 > > instr 1 ; send 1 for NEXT and -1 for previous > ivalue = p4 > print ivalue > OSCsend 1, "192.168.1.201",7077,"/android","i", ivalue > endin > > > > >
> > I opened it in android device with recent CsdPlayer and it worked without any > problems. > > So simple!!! You can imagine how much work it would have been creating an > Eclipse android project or even making it with Qt. > > Thanks a lot! And thanks again for the OSC support in CsoundAndroid! > > tarmo > > > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > > >