Csound Csound-dev Csound-tekno Search About

Re: Cabbage for Android

Date2016-01-20 20:51
FromArt Hunkins
SubjectRe: Cabbage for Android
AttachmentsCsound6 HTML5 GUI Clone with Trackpad & Spiritus2.csd  
Rory -
 
I don't know if the attached .csd is even relevant here but ...
 
It is part of an HTML5 GUI tutorial for Android Csound (currently in revision), and shows how to autoscale sliders, buttons and trackpad using HTML and JavaScript. My son Dave came up with the scaling (and other) code that here rather nicely simulates the "canonical" Android GUI equally on a smartphone and an 8-inch tablet.
 
The script is at the bottom of the file, and the scaling code is at the top of the script. The script scales slider and button height, and trackpad height and width. The trackpad coding is the most complicated by far.
 
The .csd requires Android 5.0 at least, but can also be run on < 5.0 with Mike's Android Csound6[.05]. For the latter only, channel names butt1-5 must be changed to but1-5 (or other name) and trackpad.x and trackpad.y to trackpadx and trackpady (or any name without a dot).
 
Art Hunkins 
----- Original Message -----
From: Rory Walsh
Sent: Wednesday, January 20, 2016 10:49 AM
Subject: Re: [Csnd] Cabbage for Android

Thanks for checking Tarmo, but I'm still not happy with it. I'm doing all the scaling manually, which is a pain. I think there are better ways to do this without having to hard code it myself. I'm currently looking into it. But thanks for letting me know that it's at least more usable now! 

On 20 January 2016 at 15:33, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:

Hi,

 

I saw I marked this e-mail TODO but never answered:

I donwloaded the new version and the scaling works really reasonably well also on my 4.7" smartphone.

 

Thanks!

tarmo

 

On Thursday 24 December 2015 15:27:55 you wrote:

> I've added some resizing methods that 'should' dynamically resize your

> instruments to the match the screen of your handset. It works Ok so long as

> the screen ratio is not too far off that of your instrument. I've uploaded

> the latest version here:

> https://copy.com/aZHgO20hAusZB4xY

>

>

> Regards,

> Rory.

>

> On 15 December 2015 at 20:29, Rory Walsh <rorywalsh@ear.ie> wrote:

> > The OpenGL rendering messed up my resizing method. I need to sort taht

> > asap. The previous version automatically chose the best fit. I'll get teh

> > same going with this one.

> >

> > On 15 December 2015 at 20:03, Tarmo Johannes <

> >

> > tarmo.johannes@otsakool.edu.ee> wrote:

> >> Hi, thanks!

> >>

> >> This version works for me on Android 5.0. It is a 4 inch phone and the

> >> screen is too small to display all the view and I am having hard time to

> >> turn the knobs as I want but otherwise it is great! I will try later on a

> >> 7" tablet.

> >>

> >> Congratulations!

> >> Tarmo

> >>

> >> 15.12.2015 20:21 kirjutas kuupäeval "Rory Walsh" <rorywalsh@ear.ie>:

> >>> I've uploaded an improved version for people to try out. I've switched

> >>> to an OpenGL renderer and it performs much better now. It's very

> >>> responsive

> >>> in comparison to the first version. I've also made it easier to launch

> >>> your

> >>> instruments and have included a way to tweak your buffer settings. I've

> >>> included two instruments with this one that I think work well for

> >>> handsets.

> >>> One is Iain McCurdy's outrageous bassline instrument, and the other is a

> >>> little instrument I wrote with a 303 style pattern editor.

> >>>

> >>> MIDI may be working now, but I don't have an Android6 phone to try it

> >>> out. I'm using the latest version of JUCE which adds MIDI support on

> >>> Android, only I can't test it. If anyone has any way of checking this it

> >>> would be great. Here's the link:

> >>>

> >>> https://copy.com/6Kkd6vI6HzFmpJ13

> >>>

> >>> On 27 November 2015 at 20:43, Rory Walsh <rorywalsh@ear.ie> wrote:

> >>>> Thanks Art. There is a known issue with launching the files. It seems

> >>>> that double-click at a rapid rate for a period of time will eventually

> >>>> launch the files! I'm working on a fix as we speak. I've not been able

> >>>> to

> >>>> get it to run on anything under 4.3, but I'd like to try.

> >>>>

> >>>> On 27 November 2015 at 20:24, Art Hunkins <abhunkin@uncg.edu> wrote:

> >>>>> Rory -

> >>>>>

> >>>>> CabbageAndroid will not run on OS 4.2.2 (Samsung Tab2 7.0 tablet), or

> >>>>> 4.1.2 (older Verizon smartphone).

> >>>>>

> >>>>> It sort of runs on my Verizon LG VK810 8" tablet. It gets to the Open

> >>>>> menu of available .csds - but I am unable to select any of the five

> >>>>> files

> >>>>> to open. Once only - I don't know how - SpookEpad decided to display.

> >>>>> Once

> >>>>> displayed, it seemed to perform just fine.

> >>>>>

> >>>>> I also added one of my own Cabbage .csds to the Cabbage folder. Though

> >>>>> it too appeared as a menu selection, but I was unable to select it

> >>>>> either.

> >>>>>

> >>>>> I'd be happy to test new incarnations of CabbageAndroid on any of my

> >>>>> devices. It may well be that CabbageAndroid will work well only on

> >>>>> smartphones, as size doesn't seem configurable for larger screens.

> >>>>> Auto-resizing has certainly proved a challenge for me as I've been

> >>>>> working

> >>>>> with HTML5 on all sizes of mobile devices. (My personal interest has

> >>>>> been

> >>>>> largely in tablets, as - for one thing - my aging eyes appreciate

> >>>>> increasingly larger displays.)

> >>>>>

> >>>>> Art Hunkins

> >>>>>

> >>>>> ----- Original Message -----

> >>>>> *From:* Rory Walsh <rorywalsh@EAR.IE>

> >>>>> *To:* CSOUND@LISTSERV.HEANET.IE

> >>>>> *Sent:* Thursday, November 26, 2015 8:30 AM

> >>>>> *Subject:* [Csnd] Cabbage for Android

> >>>>>

> >>>>> I've uploaded a beta version of Cabbage for Android here:

> >>>>>

> >>>>> https://copy.com/j2rF21esgctiogIh

> >>>>>

> >>>>> This version will play any desktop Cabbage instrument, depending on

> >>>>> how powerful your Android phone is. It ships with a few basic

> >>>>> examples(3 by

> >>>>> Iain, and one of my own), but you can try out any instrument you wish

> >>>>> by

> >>>>> placing the .csd file into the Cabbage folder in your home directory.

> >>>>> I

> >>>>> plan to put a bit of time into developing this further but for now

> >>>>> it's

> >>>>> more a proof of concept. Let me know how you get on.

> >>>>>

> >>>>> p.s. tested with Android v4.3 and higher. I've no idea if it will run

> >>>>> on an older version of Android.

> >>>>> 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

> >>>>>

> >>>>> 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

> >>>

> >>> 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

> >>

> >> 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

>

> 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

 

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

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

Date2016-01-21 10:52
FromRory Walsh
SubjectRe: Cabbage for Android
Thanks Art. I'm doing a similar thing myself now. But if I think I can find a better way. If not, I can always fall back on this type of approach. 

On 20 January 2016 at 20:51, Art Hunkins <abhunkin@uncg.edu> wrote:
Rory -
 
I don't know if the attached .csd is even relevant here but ...
 
It is part of an HTML5 GUI tutorial for Android Csound (currently in revision), and shows how to autoscale sliders, buttons and trackpad using HTML and JavaScript. My son Dave came up with the scaling (and other) code that here rather nicely simulates the "canonical" Android GUI equally on a smartphone and an 8-inch tablet.
 
The script is at the bottom of the file, and the scaling code is at the top of the script. The script scales slider and button height, and trackpad height and width. The trackpad coding is the most complicated by far.
 
The .csd requires Android 5.0 at least, but can also be run on < 5.0 with Mike's Android Csound6[.05]. For the latter only, channel names butt1-5 must be changed to but1-5 (or other name) and trackpad.x and trackpad.y to trackpadx and trackpady (or any name without a dot).
 
Art Hunkins 
----- Original Message -----
From: Rory Walsh
Sent: Wednesday, January 20, 2016 10:49 AM
Subject: Re: [Csnd] Cabbage for Android

Thanks for checking Tarmo, but I'm still not happy with it. I'm doing all the scaling manually, which is a pain. I think there are better ways to do this without having to hard code it myself. I'm currently looking into it. But thanks for letting me know that it's at least more usable now! 

On 20 January 2016 at 15:33, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:

Hi,

 

I saw I marked this e-mail TODO but never answered:

I donwloaded the new version and the scaling works really reasonably well also on my 4.7" smartphone.

 

Thanks!

tarmo

 

On Thursday 24 December 2015 15:27:55 you wrote:

> I've added some resizing methods that 'should' dynamically resize your

> instruments to the match the screen of your handset. It works Ok so long as

> the screen ratio is not too far off that of your instrument. I've uploaded

> the latest version here:

> https://copy.com/aZHgO20hAusZB4xY

>

>

> Regards,

> Rory.

>

> On 15 December 2015 at 20:29, Rory Walsh <rorywalsh@ear.ie> wrote:

> > The OpenGL rendering messed up my resizing method. I need to sort taht

> > asap. The previous version automatically chose the best fit. I'll get teh

> > same going with this one.

> >

> > On 15 December 2015 at 20:03, Tarmo Johannes <

> >

> > tarmo.johannes@otsakool.edu.ee> wrote:

> >> Hi, thanks!

> >>

> >> This version works for me on Android 5.0. It is a 4 inch phone and the

> >> screen is too small to display all the view and I am having hard time to

> >> turn the knobs as I want but otherwise it is great! I will try later on a

> >> 7" tablet.

> >>

> >> Congratulations!

> >> Tarmo

> >>

> >> 15.12.2015 20:21 kirjutas kuupäeval "Rory Walsh" <rorywalsh@ear.ie>:

> >>> I've uploaded an improved version for people to try out. I've switched

> >>> to an OpenGL renderer and it performs much better now. It's very

> >>> responsive

> >>> in comparison to the first version. I've also made it easier to launch

> >>> your

> >>> instruments and have included a way to tweak your buffer settings. I've

> >>> included two instruments with this one that I think work well for

> >>> handsets.

> >>> One is Iain McCurdy's outrageous bassline instrument, and the other is a

> >>> little instrument I wrote with a 303 style pattern editor.

> >>>

> >>> MIDI may be working now, but I don't have an Android6 phone to try it

> >>> out. I'm using the latest version of JUCE which adds MIDI support on

> >>> Android, only I can't test it. If anyone has any way of checking this it

> >>> would be great. Here's the link:

> >>>

> >>> https://copy.com/6Kkd6vI6HzFmpJ13

> >>>

> >>> On 27 November 2015 at 20:43, Rory Walsh <rorywalsh@ear.ie> wrote:

> >>>> Thanks Art. There is a known issue with launching the files. It seems

> >>>> that double-click at a rapid rate for a period of time will eventually

> >>>> launch the files! I'm working on a fix as we speak. I've not been able

> >>>> to

> >>>> get it to run on anything under 4.3, but I'd like to try.

> >>>>

> >>>> On 27 November 2015 at 20:24, Art Hunkins <abhunkin@uncg.edu> wrote:

> >>>>> Rory -

> >>>>>

> >>>>> CabbageAndroid will not run on OS 4.2.2 (Samsung Tab2 7.0 tablet), or

> >>>>> 4.1.2 (older Verizon smartphone).

> >>>>>

> >>>>> It sort of runs on my Verizon LG VK810 8" tablet. It gets to the Open

> >>>>> menu of available .csds - but I am unable to select any of the five

> >>>>> files

> >>>>> to open. Once only - I don't know how - SpookEpad decided to display.

> >>>>> Once

> >>>>> displayed, it seemed to perform just fine.

> >>>>>

> >>>>> I also added one of my own Cabbage .csds to the Cabbage folder. Though

> >>>>> it too appeared as a menu selection, but I was unable to select it

> >>>>> either.

> >>>>>

> >>>>> I'd be happy to test new incarnations of CabbageAndroid on any of my

> >>>>> devices. It may well be that CabbageAndroid will work well only on

> >>>>> smartphones, as size doesn't seem configurable for larger screens.

> >>>>> Auto-resizing has certainly proved a challenge for me as I've been

> >>>>> working

> >>>>> with HTML5 on all sizes of mobile devices. (My personal interest has

> >>>>> been

> >>>>> largely in tablets, as - for one thing - my aging eyes appreciate

> >>>>> increasingly larger displays.)

> >>>>>

> >>>>> Art Hunkins

> >>>>>

> >>>>> ----- Original Message -----

> >>>>> *From:* Rory Walsh <rorywalsh@EAR.IE>

> >>>>> *To:* CSOUND@LISTSERV.HEANET.IE

> >>>>> *Sent:* Thursday, November 26, 2015 8:30 AM

> >>>>> *Subject:* [Csnd] Cabbage for Android

> >>>>>

> >>>>> I've uploaded a beta version of Cabbage for Android here:

> >>>>>

> >>>>> https://copy.com/j2rF21esgctiogIh

> >>>>>

> >>>>> This version will play any desktop Cabbage instrument, depending on

> >>>>> how powerful your Android phone is. It ships with a few basic

> >>>>> examples(3 by

> >>>>> Iain, and one of my own), but you can try out any instrument you wish

> >>>>> by

> >>>>> placing the .csd file into the Cabbage folder in your home directory.

> >>>>> I

> >>>>> plan to put a bit of time into developing this further but for now

> >>>>> it's

> >>>>> more a proof of concept. Let me know how you get on.

> >>>>>

> >>>>> p.s. tested with Android v4.3 and higher. I've no idea if it will run

> >>>>> on an older version of Android.

> >>>>> 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

> >>>>>

> >>>>> 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

> >>>

> >>> 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

> >>

> >> 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

>

> 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

 

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

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
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

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