summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mxml2csv.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mxml2csv.go b/src/mxml2csv.go
index 610998f..21dcbb4 100644
--- a/src/mxml2csv.go
+++ b/src/mxml2csv.go
@@ -20,11 +20,6 @@ var partFlag *int = flag.Int("p", 0, "The part to process.")
20func init() { 20func init() {
21 flag.Parse() 21 flag.Parse()
22 22
23 if *versionFlag {
24 fmt.Println("Version:", APP_VERSION)
25 return
26 }
27
28 if *outputFlag == "" { 23 if *outputFlag == "" {
29 *outputFlag = *inputFlag + ".csv" 24 *outputFlag = *inputFlag + ".csv"
30 } 25 }
@@ -126,6 +121,11 @@ func calcDuration(noteDuration int, divisions int, tempo float64) float64 {
126 121
127func main() { 122func main() {
128 123
124 if *versionFlag {
125 fmt.Println("Version:", APP_VERSION)
126 return
127 }
128
129 // read and parse MusicXML file 129 // read and parse MusicXML file
130 130
131 inputFile, err := os.Open(*inputFlag) 131 inputFile, err := os.Open(*inputFlag)