Commit 14d5a20a by Jacob Vosmaer

simplifiy arithmetic

parent 950aae78
......@@ -42,8 +42,9 @@ func main() {
log.Fatal(err)
}
for i := 0; i < 32; i++ {
v := data[i*128 : (i+1)*128]
for len(data) > 0 {
var v []byte
v, data = data[:128], data[128:]
voiceName := string(v[118:128])
fileName := fmt.Sprintf("%03d-%s.d7v", count+1, strings.Replace(voiceName, "/", "_", -1))
fmt.Println(fileName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment