Recording session interval less than a second.

Questions/discussion about contributing to Alchemy

Re: Recording session interval less than a second.

Postby Karl DD on Tue, 21 Dec 2010 01:21:48 GMT

Ok here is what you need to do.
In AlcMenuBar.java, add an extra two values 500 & 1000 to the recordingInterval array like so:
Code: Select all
// Recording interval array in milliseconds
        int[] recordingInterval = {500, 1000, 5000, 15000, 30000, 60000, 120000, 300000, 600000};
You can try add smaller values, but I doubt it will work very well as the file gets bigger (i.e. to record long sessions).

Then in AlcResourceBundle.properties add a few extra interval* strings like so:
Code: Select all
interval500 = 1/2 sec
interval1000 = 1 sec
interval5000 = 5 secs
interval15000 = 15 secs
interval30000 = 30 secs
interval60000 = 1 min
interval120000 = 2 mins
interval300000 = 5 mins
interval600000 = 10 mins
I have committed these changes to the repository, so you can right click on the Alchemy project in Netbeans then go to Subversion > Update and it should download the changes.

Good luck.

Karl
User avatar
Karl DD
Site Admin
 
Posts: 592
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Pittsburgh, PA

Re: Recording session interval less than a second.

Postby vanakaru on Tue, 21 Dec 2010 20:39:09 GMT

OK. I got it to work. Pretty fantastic. It records 1/2sec fine if you do not go too crazy with your drawings. Otherwise it will stutter.
OOPS! I had After Effects render going on the background.
Could I compile this as app too so I can run it without netBeans open?
vanakaru
 
Posts: 16
Joined: Thu, 04 Nov 2010 09:47:30 GMT

Re: Recording session interval less than a second.

Postby Karl DD on Wed, 22 Dec 2010 01:08:59 GMT

You can compile an .exe file by first installing Launch4j from here: http://launch4j.sourceforge.net/
Install it to the default location, i.e. C:/Program Files/Launch4j

Then you should be able to hit the "Clean and Build Project" button in Netbeans and it will make the exe in the 'dist' directory.

Karl
User avatar
Karl DD
Site Admin
 
Posts: 592
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Pittsburgh, PA

Re: Recording session interval less than a second.

Postby vanakaru on Wed, 22 Dec 2010 21:09:53 GMT

Great! You can do the same on mac and you get an .app into *dist* directory.
vanakaru
 
Posts: 16
Joined: Thu, 04 Nov 2010 09:47:30 GMT

Previous

Return to Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron