ADPCM_java_v0_9_4.zip

15 views
Skip to first unread message

Kevin Rice (via Google Drive)

unread,
Oct 30, 2016, 1:15:17 AM10/30/16
to remote-tra...@googlegroups.com
Kevin Rice has shared the following file:
Sender's profile photoThis is a port of Mark's ADPCM to Java. I've been working on it for months in my spare time with long droughts between that... But it's by my reckoning nearing a 1.0 general release... but you can try it before that!

The package referred to in this email includes pre-made jar that is executable program -- and sample sound and image files in a zip file. You can download more from MTH's website for your model of interest.

So unzip the package and go to the directory in it. The top level is the jar file, a data directory which can ignored, and the two mth directories containing the sample sound and image files.

To run it, again the.jar file is the executable software.

You'll need to install java's run time if you don't have it already and I suggest going to oracle's website on the topic for details. Note: it's compiled using Java 8.

On windows at least once java is installed, double clicking the .jar file will run it. Otherwise you may need to invoke it from the command line with a "java -jar <jar file of interest>" command.

I don't provide any explanatory material with the package right now and hope it's mostly self evident as to what to do & this email will get you going...

If not I'll try to help ... or if it explodes, build a new package, etc...

(further: only run on Windows to date but in theory should run on linux or mac with java installed)



Google Drive: Have all your files within reach from any device.
Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA
Logo for Google Drive

Ray Leiter

unread,
Oct 31, 2016, 11:49:27 AM10/31/16
to remote-tra...@googlegroups.com
Kevin;
What is this thing of Mark’s that you have ported to JAVA? Since you mention sound files, I suspect it has something to do with, perhaps installing new sound files in an engine?
I’m not familiar with the ADPCM thing you mention and I suppose if I go to Mark’s web site, I’ll be able to read all about it?
 
Are you familiar with what it would take to provide the control sequences via a JAVA port of some kind so we could use the JMRI capabilities without re-writing an entire JAVA application?
 
I’m under the impression the folks who maintain the JMRI project can control some trains but do not, as of now, have any capability to control MTH’s DCS!
 
When I originally mentioned to Mark about the possibility of porting his C++ program (RTC) to JAVA, he suggested it would probably be less work to deal with the actual control sequences alone rather than dealing with the complete user interface.
 
I haven’t yet been able to communicate with anyone about the details of how to go about providing a JAVA based  module of some kind to interface with the JMRI project.
 
If you have any ideas of how to go about that, I’d be interested.
 
Thanks
Ray
--
You received this message because you are subscribed to the Google Groups "Remote Train Control" group.
To unsubscribe from this group and stop receiving emails from it, send an email to remote-train-con...@googlegroups.com.
To post to this group, send email to remote-tra...@googlegroups.com.
Visit this group at https://groups.google.com/group/remote-train-control.
To view this discussion on the web visit https://groups.google.com/d/msgid/remote-train-control/f403045dd56046294005400e2db0%40google.com.
For more options, visit https://groups.google.com/d/optout.

Mark DiVecchio

unread,
Oct 31, 2016, 12:01:19 PM10/31/16
to remote-tra...@googlegroups.com

Kevin Rice

unread,
Oct 31, 2016, 12:16:21 PM10/31/16
to remote-tra...@googlegroups.com
Mark wrote a program to read the .mth sound files in the spring time frame & play them.   I aided and abetted but didn't really write any code -- he calls it ADPCM (http://www.silogic.com/trains/ADPCM.html).  

What I did do though was try to get his code to run on the more recent Embarcadaro tool line, which we managed to pull off.  I think somewhere in there did the same for RTC.

Further I thought at the time it might be useful to port the code to the GNU C/C++ tools and Q for example... to maybe get it a little broader coverage on the tool options for the code. 

I found this to be more work than anticipated.  I then switched gears to Java.   Instead of RTC which was my original idea, I ended up trying the smaller simpler ADPCM.

This I envisioned as a short "few week" effort.   I figured after that maybe I could go back to the GNU tool chain idea... 

Yet it's taken me months!   Partially this is due to the fact that I had a long gap in the effort over the summer.

Anyway, that's what this is -- it's the Java version of ADPCM which mostly matches the current feature set.   I just did it for fun -- which I might now put in quotes now as "fun"...   har har..

I have some additional ideas for it and may pursue them partially because I would like them:

1)  Add the ability to save off clips to files
2)  Add the ability to import clips "into" the table
3)  Add the ability the export a new .mth file  (this gets to your original question on what the usefulness of it is)
4)  Because the .mth file format is not really public, what the tools does is both limited and guesswork in which the user may tweak certain values.   Thus it would be nice to remember those values between sessions...

As for JMRI -- I recall months ago Mark suggesting this as a way forward.  I support it and may be able to help.   Before this I had thought a "quick" port of RTC to Java might be useful as a foundational exercise.

I still would like to think that but realize it would take months of effort on my part... which might be ok.

I downloaded JRMI in that time and recall thinking how "huge" it seemed... another issue.   Oh one more, lacking a DCC control system at the moment, I've no way to run it which for me would be a first step (I have 1 DCC loco).  

It's been on my list to get one of those too, just never quite made it yet into "bought it" column.   (& I also a found a homebrew approach called DCC++ I think, also did not pursue yet to completion)...



To unsubscribe from this group and stop receiving emails from it, send an email to remote-train-control+unsub...@googlegroups.com.
To post to this group, send email to remote-train-control@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Remote Train Control" group.
To unsubscribe from this group and stop receiving emails from it, send an email to remote-train-control+unsub...@googlegroups.com.
To post to this group, send email to remote-train-control@googlegroups.com.

Ray Leiter

unread,
Nov 1, 2016, 12:54:26 PM11/1/16
to remote-tra...@googlegroups.com
Mark;
Where do you get these sound files -- MTH website?

I assume since your ADCPM program plays the sound files directly as opposed
to loading them into an engine, there is then no problem with things like
sound files for PS2 upgrade kits not necessarily working in non-upgraded PS2
engines?

If I understand what little I've read, you play files with extensions of
".mth" and ".vox", is that correct?

Ray

-----Original Message-----
From: Mark DiVecchio
Sent: Monday, October 31, 2016 12:01 PM
To: remote-tra...@googlegroups.com
Subject: Re: [RTC] ADPCM_java_v0_9_4.zip

Ray:

http://www.silogic.com/trains/ADPCM.html

Mark

--
You received this message because you are subscribed to the Google Groups
"Remote Train Control" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to remote-train-con...@googlegroups.com.
To post to this group, send email to remote-tra...@googlegroups.com.
Visit this group at https://groups.google.com/group/remote-train-control.
To view this discussion on the web visit
https://groups.google.com/d/msgid/remote-train-control/58176ACC.23697.547A01%40markd.silogic.com.

Kevin Rice

unread,
Nov 1, 2016, 12:57:58 PM11/1/16
to remote-tra...@googlegroups.com
Go to the MTH website and look up the engine of interest by model # (or inventory #?) that -- check your box(es).

Then under support, you can download the sound file.   You can also now get a zip with the image(s) they put on the web page for that model.

Note that the PS3 files are a .zip with both a .mth and other info them ...   my java program will read these (or so I tried!) directly without having to unzip them.

On Tue, Nov 1, 2016 at 12:54 PM, Ray Leiter <ray.l...@verizon.net> wrote:
Mark;
Where do you get these sound files -- MTH website?

I assume since your ADCPM program plays the sound files directly as opposed to loading them into an engine, there is then no problem with things like sound files for PS2 upgrade kits not necessarily working in non-upgraded PS2 engines?

If I understand what little I've read, you play files with extensions of ".mth" and ".vox", is that correct?

Ray

-----Original Message----- From: Mark DiVecchio
Sent: Monday, October 31, 2016 12:01 PM
To: remote-train-control@googlegroups.com
Subject: Re: [RTC] ADPCM_java_v0_9_4.zip


Ray:

http://www.silogic.com/trains/ADPCM.html

Mark

--
You received this message because you are subscribed to the Google Groups "Remote Train Control" group.
To unsubscribe from this group and stop receiving emails from it, send an email to remote-train-control+unsubscrib...@googlegroups.com.
To post to this group, send email to remote-train-control@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Remote Train Control" group.
To unsubscribe from this group and stop receiving emails from it, send an email to remote-train-control+unsubscrib...@googlegroups.com.
To post to this group, send email to remote-train-control@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages