mrchay's Recent Forum Activity

  • Hi all,

    I really haven't followed this properly. any interest email me directly at

    The best thing would be if someone could take on this tool; If there is interest I can do a handover to someone who knows at least some stuff around this area.

    I think its really nice to have a 1-click solution to package up an APK, even if it is only for test purposes.

    I'd prefer to do a handover in person (im in london), or I could do skype.

    Chay

  • RookieDev and felix,

    there are some problems at the moment with the tool and c2 it seems right now!

    I try to iron these out before making a proper tutorial.

  • hmmmm

    so I have some problem at the moment, it transpires that re-encoding the XML AndroidManifest.xml is non trivial without the whole android sdk so I need to dirty my hands with some java dev to create a quick packer for this purpose. until I do this it wont be possible to change the app name :-(

    It would be worth investigating audio from a HTML POV; I know that advanced audio functionality involving audio web api works very well, because that is the demo code I built first (realtime synth).

    But I do not know how standard <audio> tag assets behave and this is probably what construct 2 uses.... Perhaps construct 2 is being clever and detecting that the WebAudio api is available, but then some limitation of it on mobile prevents it working?

    i will try to look into this when I have more time - jayderyu, if you like I can make you an admin on the bitbucket project for it if you want to take it further...?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ok peoples,

    I will test properly with construct 2 today.

    , good suggestions.

    I will do a config file where the name ad icon can be changed. To change the signing keys, you can just replace the key files in the key folder.

    In answer to your other questions:

    * Do I need Android SDK?

    No, not needed.

    * Do I need to download Crosswalk sdk?

    No, not needed.

    * Do I need the JDK

    No, not needed (but you do need java runtime - if you dont have it the script will try to make you download it)

    * Does your program just use the the source apk rather than compile an entire program.

    My program (well its just a script) takes a previously generated crosswalk APK (which I made with the Intel XDK), strips it down then inserts the ew html into it, before repacking it.

    * Does your system support Cordova(I need cordova for Ouya support)

    Yes it supports cordova. I'd be interested to know how you get on with that, I may need to do some tweaking but it wont be hard.

    * Which version of chrome does this one use?

    Its the latest build of crosswalk - whatever they use as per last friday.

    * Are you awesome

    not really. I was annoyed with the XDK stuff; on the face of it Intel are making a great gift to the community, until one realises that all of the work is already done by other open source projects, except for compiling nodejs for android - not difficult, but an annoying job and boring.

    It is naughty of intel to try to push people into a service model (cloud compile) on the ack of open source projects that they did not create IMHO.

    I think this way is prob even legit :-)

    I'll fix these little things today and post again

  • Hi,

    I have made a super easy APK packer based on Intel crosswalk, which IMHO is the best native android experience at the moment.

    You can use it with any HTML.

    Basically, download it, put yout html (construct2 game, etc) into the folder named 'html5', then run 'go.bat' and it creates an android APK.

    I will be improving it in future - for now its the easiest way to build a native APK.

    mrchay.com/projects/HTML5toAPK

    Chay

  • Right all, sorry a little time away.

    I have put in pattern looping, and everything works pretty nicely.

    It needs global load and save - I may get round to these if any demand.

    Also I had to resort to using a plugin in the end, in order to get values from js back into construct 2 without really bad hacking.

    I want to follow other directions on related audio projects at the moment so I have opened it all up by putting the whole source on the lovely github.

    If anyone would like to do some better graphics I would be much obliged - there only needs to be a knob, piano button, tab, etc - about 6 assets total.

    I dont think there is more that can be done with TML5 audio than this until the WebAudio stuff by google really kicks off properly on all browsers.

    So, github.com/mrchay/c2synth for the whole project (put the plugin into your plugins directory as you will be accustomed, i have modified it a little I think to give more robustness, nothing major)

    I forget who did the javascript plugin - but thankyou very much.

    The working latest is at bassmoi.com/c2synthbeta for now

    All best!

  • New version, with sequencer work.

    Its very primitive, but you can see how it needs to come along.

    Pressing play button plays the sequence in a loop. As it is playing, you can play some notes on keyboard. They will be played in the loop.

    You can use keyboard to play notes now as well, though the layout is hard! (It is hard to simulate a keyboard on a keyboard, if you see what I mean).

    bassmoi.com/c2synthbeta

  • Nice tracking down Lemo! I will do that right now, thankyou very much

  • yeah duly noted!

    I must defend the knobs, they work jolly well on mobile as well! But they are a little unusual.

    Click on the knob, drag mouse off the knob, and presto! the knob points towards the mouse. If you drag around, it will follow.

    if you think they do just suck then I am very open to another possible way of controlling them..? drag up and down is tricky because there may not be enough screen space above.....

    I will try to get the keyboard on the go but this keycode business is giving me the hump.....

  • Not meaning to be rude; are you sure your iframe is transparent itself?

    stackoverflow.com/questions/1234127/iframe-transparent-background

  • The synth sounds are generated in script - I cannot take full credit for this, its been done before. But its a fun trick.

    What happens is that there are no samples at all at the beginning. When you click a key, we notice that there is no sample, and a sample is generated in javascript (as an audio object) then played, and stored in a hashmap/dictionary. When you press the same key again, we retrieve the already generated audio tag for that exact note and synth setting.

    So if you go mad and play a lot of notes, you use up more memory! A small price to pay for bleepy goodness.

    The audio is generated in javascript by creating in memory a WAV file, then base64 encoding it, and creating a new audio object then setting the source of that object to the base64 encoded wav file.

    The future:

    Once I have got the sequencer bit working, I will make it so the sounds and tunes you have made can easily be downloaded, saved or shared.

    I love old CHIP / SID music, so hope it will encourage people to make some using this tool for their games and whatnot :-)

  • Any interest in this: bassmoi.com/c2synthbeta

    Its a work in progress of course - I am hoping to have a step sequencer and song mode soon, in order to make it into a fun online tool to make retro chip style sound effects and music for games.

    What do people think?

mrchay's avatar

mrchay

Member since 9 Nov, 2011

None one is following mrchay yet!

Connect with mrchay

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies