summaryrefslogtreecommitdiff
path: root/main/NOTES
diff options
context:
space:
mode:
Diffstat (limited to 'main/NOTES')
-rw-r--r--main/NOTES101
1 files changed, 101 insertions, 0 deletions
diff --git a/main/NOTES b/main/NOTES
new file mode 100644
index 0000000..7a62491
--- /dev/null
+++ b/main/NOTES
@@ -0,0 +1,101 @@
+
+0000000: 5249 4646 2848 4a02 5741 5645 666d 7420 RIFF(HJ.WAVEfmt
+0000010: 1400 0000 0100 0200 44ac 0000 10b1 0200 ........D.......
+0000020: 0400 1000 0000 0000 6461 7461 0048 4a02 ........data.HJ.
+0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+
+0000090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+
+
+
+
+//ok good
+0000000: 5249 4646 2848 4a02 5741 5645 666d 7420 RIFF(HJ.WAVEfmt
+0000010: 1400 0000 0100 0200 44ac 0000 10b1 0200 ........D.......
+0000020: 0400 1000 0000 0000 6461 7461 0048 4a02 ........data.HJ.
+0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+
+
+
+
+
+$ cat /tmp/test2.wav | xxd | head
+0000000: 5249 4646 2470 db01 5741 5645 666d 7420 RIFF$p..WAVEfmt
+0000010: 1000 0000 0100 0200 44ac 0000 10b1 0200 ........D....│··
+0000020: 0400 1000 6461 7461 0070 db01 0000 0000 ....data.p...│··
+0000030: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000040: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000050: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000060: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000070: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000080: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+ok well the last thing that needs to be done with mrswatson, I need some sort of way to pass tempo on the commandline. for some reason, there is
+a commandline argument for it, but it doesn't seem to work? we had to hardcode tempo, if you remember
+seems like it should be easy to fix yeah just change hardcoded value with value from cli variable it already have let's take a look at it? sure
+
+https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
+5249 4646 2470 db01 5741 5645 # riff , size, wav
+666d 7420 # fmt
+1000 0000 # chunck1 size
+0100 0200 # PCM, 2 ch
+44ac 0000 # Sample rate. so wee that in original wav it's 00 00 0000. yeah also
+
+it's 1000 0000 vs 1400 0000
+4 is tbytes longer htoo, yeah it is...
+
+kww
+ok
+5249 4646 === "RIFF"
+2870 db01 === size of whole file
+
+but in the second one
+2470 db01 is the size of the whole file...is that an error do you think? could be but it's looks like 4 bytes short only well
+docs say:
+This is the size of the
+entire file in bytes minus 8 bytes for the
+two fields not included in this count:
+ChunkID and ChunkSize.
+almost like he forgot to subtract one of them? y or subtracted too many...not sureep, can fiix that too. ok
+should it all be in this function in the code we were looking at? yep. ok I'll try to fix it I guess hoping I'm not going
+to get confused about subtracting binary or something, are the lengths we're dealing with here all integers/decimals? yes
+so it should be easy? yep
+
+
+yeah thanks, slow connection can't find anything
+
+
+
+bash-3.2$ cat test1419968848.wav | xxd | head
+0000000: 5249 4646 2870 db01 5741 5645 666d 7420 RIFF(p..WAVEfmt
+0000010: 1400 0000 0100 0200 0000 0000 10b1 0200 .............
+0000020: 0400 1000 0000 0000 6461 7461 0070 db01 ........data.p..
+0000030: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000040: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000050: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000060: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000070: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000080: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+0000090: 0000 0000 0000 0000 0000 0000 0000 0000 .............│··
+bash-3.2$ cat test142*.wav | xxd | head
+0000000: 5249 4646 2870 db01 5741 5645 666d 7420 RIFF(p..WAVEfmt
+0000010: 1400 0000 0100 0200 44ac 0000 10b1 0200 ........D.......
+0000020: 0400 1000 0000 0000 6461 7461 0070 db01 ........data.p..
+0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+0000090: 0000 0000 0000 0000 0000 0000 0000 0000 ................