¿ªÔÆÌåÓý

Locked Making A VSD File -- Was: Virtual Sound Decoder - Clicks on looped sound files


 

Steve,
Need more info. I assume you are using JMRI since you are on this group. Have you downloaded the basic .vsd files? What specifically are your sound files? Are they .wav and what format (8/16 bit, sample rate, compressed/uncompressed)?
***
Conrad,

Thank you. I am using JMRI with an Arduino DCC++ setup. I have downloaded a couple of vsd files. Still trying to get the overall picture.

I will record these (diesel) sound files in a few days. They can be wav files in any required sample rate, uncompressed.

.

To make this all work you will need an .xml editor, an audio editor and an "unzipper" utility. And, per below, "You must also have the OpenAL or JavaSound audio system installed on your computer."


I'll have to get an xml editor. I have several audio editors, can unzip files, and have OpenAL.



I'd start here:

I have looked through that. Will keep looking through the JMRI site.


Also are you in linux, windows or apple?

Windows 10 in a Lenovo T410. One hard drive is solid state, making for quick access.




Once you get the basic going I'd search this site for VSD. You will see lots of info going back to 2011. I reversed the date scroll to look at earliest to latest.

Lots of work, but well worth it. You'll be shaking the walls.

Conrad


 

Steve,

Looks like you are good to go.? ready to step into the swamp.? My technique (which, when I don't follow it, leads to disaster) is as follows

copy and paste a BACKUP loco.vsd folder. I CANNOT STRESS THIS ENOUGH.??
make two desktop folders - one "vsd-zip" and the other "loco_blah_blah"
put the loco.vsd folder into the empty "vsd-zip" folder.
vsd is just an extension of a zip file so rename .vsd to .zip
extract the zip flles
now you will see a sound folder, a config file and maybe a text file with copyright info.
copy and paste the sound folder and config file from the "vsd-zip" folder to the empty "loco" folder
in the "loco" folder, look at the sound files (.wav) - almost always 8 bit, 11KHz sample, uncompressed, mono.? the format of all sound files has to be the same.
add your sounds to the particular sub folder (common, engine, horn) AND add the same sounds to the sound folder in the "vsd-zip" folder by file copy and paste.??

tedious, but I sometimes get a vsd crash if I just copy and paste the whole sound folder from "loco" folder to "vsd-zip" folder.? your option though.

now for the config file - open it from the "loco" folder? with an XML editor and change the particular wav file that you are working with (say bell to double clap bell).
each action has its own .wav file.? some have start, run, end .wav files.? engines are more complicated.
this is (I think) javascript so every character counts: caps, lower case, spaces, dashes, etc.? It will drive you crazy.
bty <!--? blah, blah, blah --> can be used for notes.? also can be used to "blank" out whole sections of the script.
save the xml file.

status - "loco" folder has updated sound folder and a modified config file? ----? ?"vsd-zip" folder has an extracted sound folder (updated), an unmodified config file
and a text file (maybe).

copy/overwrite the modified config file to the "vsd-zip" folder.
??backstep?? the "vsd-zip" folder so you end up with loco.zip.? ????backstep??? what kind of techie term is that?
now you can run JMRI's VSDecoder.? the program will accept the .zip file (this saves a step as you go back and forth adding changes).
when finished or your brain starts to melt, rename the loco.zip to loco.vsd and move it to the "loco_blah_blah" folder
you will now have an empty "vsd-zip" folder and a "loco_blah_blah" folder with the loco.vsd folder, a sound folder and the config file.
run a train to chill.? whew!

Conrad

ps go slow, make one or two changes then see if program runs.??








 

Conrad,

Thank you very much, and, "Wow!" I will work through this I saved your reply as a separate file for reference.

The config file is the confusing part. I tried several text editors trying to see it as more than a solid block of text. Two just gave me error messages.

"Notepad++," a free download I got to do something now forgotten, displayed the file with colors, separate lines, and indentations.

I have to learn more about that language.

Steve Bartlett


 

Steve,

"Notepad++" is a good choice. It's on the list of XML editors, see

I find the use of indentations very helpful.

Klaus


Am 09.09.2019 um 22:00 schrieb Stephen Bartlett via Groups.Io:

Conrad,
Thank you very much, and, "Wow!" I will work through this I saved your reply as a separate file for reference.
The config file is the confusing part. I tried several text editors trying to see it as more than a solid block of text. Two just gave me error messages.
"Notepad++," a free download I got to do something now forgotten, displayed the file with colors, separate lines, and indentations.
I have to learn more about that language.
Steve Bartlett


 

Steve,

Klaus is the real guru on this.? See his many posts of years past.

For XML, I use the free "XML Copy Editor".? It's not on the JMRI list but has indentations, colors, etc.

Rember, slow and steady wins the race.? Maybe try just a function key label change, say? <sound-event name="BELL" label="Bell" buttontype="TOGGLE">
to?<sound-event name="BELL" label="Ding-Dong" buttontype="TOGGLE">.? Or, whatever rings your bell:).

Conrad