One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/bin/bash | |
# loop through files in the currently active directory | |
for f in *.$1 | |
do | |
# case statement for arguments (you can convert wav, flac, and ogg to mp3) | |
case $1 in | |
wav) | |
# converts wav files to mp3 using lame | |
lame -b320 "$f" "${f%.*}".mp3 |
prototype: { | |
"builder": "EMD", //This is displayed to the client and can be anything | |
"name": "F7-A", //This is also displayed to the client and can be anything | |
"type": "locomotive", //This must be "locomotive" | |
"weight": 250000, //Weight of the locomotive in lbs | |
"maxHP": 1500, //Horsepower of the locomotive | |
"notchRPM": [300, 362, 425, 487, 550, 613, 675, 738, 800], //This is an array of RPMs for the notch values. Start with idle, end with RUN8, for a total of 9 array items. | |
"notchMaxSpeeds": [null, 7.5, 15, 22.5, 30, 37.5, 45, 52.5, 60], //This is an array of max speeds for the notch values. Set the first item to null. This is so we can look things up by just feeding the notch into it, but the max speed for IDLE is obviously zero. | |
"engineRunning": 0, //This is NOT A BOOLEAN! This is a binary value (0 is off, 1 is on). You should set this to 0, sim.js will redefine it as needed. |