summaryrefslogtreecommitdiff
path: root/main/NOTES
blob: 7a62491739a24a76405655922f5332b56472d04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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  ................