00:06:28  * pfrazequit (Remote host closed the connection)
00:43:43  * contrahaxjoined
01:04:26  * contrahaxquit (Ping timeout: 240 seconds)
01:10:41  * contrahaxjoined
01:20:22  * freeallquit (Remote host closed the connection)
01:20:55  * freealljoined
01:30:46  * freeallquit (Remote host closed the connection)
01:42:19  <jjjohnny>mikolalysenko: can you help me with this https://gist.github.com/NHQ/6ad423f367fd1de9b9a2
01:42:27  <jjjohnny>i have struggled with ffts so long
01:42:57  <jjjohnny>I want to be able to analyze music for all/arbitary freqs
01:49:50  * freealljoined
01:51:32  <substack>jjjohnny: ffts compute a series for amplitudes for the different frequencies in the waveform
01:52:08  <jjjohnny>so like data[0] is frequency of 0?
01:52:17  <jjjohnny>er, no
01:52:26  <jjjohnny>actually im reading your freq viewer now
01:53:19  <substack>https://github.com/substack/frequency-viewer/blob/master/index.js#L85-L87
01:53:53  <substack>here's where I compute the frequency https://github.com/substack/frequency-viewer/blob/master/index.js#L102
01:54:26  * freeallquit (Ping timeout: 240 seconds)
01:55:06  <jjjohnny>substack: is the reals.data a window of half the samplerate?
01:55:41  <substack>it's just the output of the fft
01:56:34  <jjjohnny>d is the value of that frequency?
01:57:08  <substack>d is the amplitude
01:57:42  <substack>frequency => amplitude, in key/value terminology
02:01:55  <jjjohnny>https://gist.github.com/NHQ/6ad423f367fd1de9b9a2
02:01:57  <jjjohnny>updated
02:02:00  <jjjohnny>i am getting zero
02:02:10  <jjjohnny>for the freq that I set
02:02:58  <jjjohnny>and zero for a freq that should be naught
02:03:23  <jjjohnny>oh wait
02:03:49  <jjjohnny>duhm
02:06:28  <jjjohnny>okay updated after fuckup
02:06:32  <jjjohnny>getting results!
02:07:02  <jjjohnny>but how do i read?
02:07:15  <jjjohnny>the one that should be less amplitude is higher
02:07:20  <jjjohnny>and they are both very high
02:09:35  <substack>you're getting harmonics
02:10:02  <substack>https://en.wikipedia.org/wiki/Pitch_detection_algorithm
02:10:30  * contrahaxquit (Quit: Sleeping)
02:11:22  <substack>brains have complicated heuristic engines to sort out the fundamental frequencies from harmonics
02:11:37  <jjjohnny>but im looking at the exact freqs i set
02:12:30  <substack>it's a limitation of fft, not the quality of the inputs
02:13:39  <jjjohnny>so basically if it is a high number, the frequency is there, if its a tiny number prolly not
02:14:04  <substack>something like that
02:14:25  <substack>and also you will get peaks at harmonic frequencies
02:14:38  <substack>without a compensation algorithm
02:15:44  <jjjohnny>thats fine
02:16:04  <jjjohnny>exact freq measurements doesn't matter for my purposes anyway
02:17:57  <jjjohnny>this i can work with thx
02:33:29  * nickleeflyquit (Quit: Connection closed for inactivity)
02:34:10  * contrahaxjoined
02:51:17  * freealljoined
02:56:21  * freeallquit (Ping timeout: 265 seconds)
03:22:31  <mikolalysenko>jjjohnny: hey, what's up?
03:22:40  <mikolalysenko>what are you trying to do?
03:24:49  <mikolalysenko>jjjohnny: are you in oakland? I could stop by sudo room tomorrow and explain it in person
03:25:17  * freealljoined
03:25:43  <mikolalysenko>but I think the problem here may be some conceptual misunderstanding about what the fft is doing
03:25:57  <mikolalysenko>it doesn't give you pitch in the sense that you or I would perceive it
03:26:10  <mikolalysenko>instead the fft decomposes a signal into a sum of waves
03:26:32  <mikolalysenko>the coefficients of the fft give the phase and magnitude of the waves encoded in complex numbers
03:26:46  <mikolalysenko>this is of the form: |r| e^i p
03:26:56  <mikolalysenko>where r is the magnitude of the wave and p is the phase
03:30:21  * freeallquit (Ping timeout: 250 seconds)
03:30:31  * dguttmanquit (Quit: dguttman)
04:07:46  <jjjohnny>mikolalysenko: i'll be back in oakland next week orthereabouts, would love to get a lesson on ffts!
04:08:38  <jjjohnny>i am getting very large numbers for frequencies I know are there
04:09:00  <jjjohnny>i haveit working usefull enough to gauge if a frequency is present
04:09:25  <jjjohnny>and as it is music I know enough about harmonics to make guesses, but that's it
04:10:53  <jjjohnny>perhaps if we go over how the fft break down a signal into discreet frequencies I will better understand
04:11:10  <jjjohnny>cuz i can sure build up waves from discreet frequency
04:36:45  <mikolalysenko>in any signal, usually all frequencies are present to some degree or other
04:37:11  <mikolalysenko>all real world sounds are mixes of many (usually infinitely so!) different frequencies
04:37:26  <mikolalysenko>but what we perceive as a pitch is a bit of a tricky concept
04:37:41  <mikolalysenko>it is related to the fft, but it is more complicated than just that
04:38:28  <mikolalysenko>a reasonable approximation would be something like "loudest" frequency, but there are other things that can affect this like harmonics
05:27:32  * freealljoined
05:32:05  * freeallquit (Ping timeout: 246 seconds)
05:49:09  * freealljoined
05:54:52  * freeallquit (Ping timeout: 256 seconds)
06:11:00  * Tristitiaquit (Ping timeout: 260 seconds)
06:32:44  * dguttmanjoined
06:45:56  * dguttmanquit (Quit: dguttman)
07:00:48  * freealljoined
07:09:45  * djcoinjoined
07:30:51  * freeallquit (Remote host closed the connection)
07:38:29  * fotoveritequit (Quit: fotoverite)
07:40:19  * freealljoined
07:45:15  * freeallquit (Ping timeout: 240 seconds)
08:11:17  * phatedquit (Remote host closed the connection)
08:23:57  <yangwao>09:15 < redtime> mno jelikoz v patek vydal svoje CD
08:24:04  <yangwao>nono, shhh
08:29:35  * freealljoined
08:43:30  * So_Noobjoined
08:47:27  * So_Noobquit (Quit: Leaving)
08:54:45  * contrahaxquit (Quit: Sleeping)
09:01:14  * peutetrejoined
09:02:48  * freeallquit (Remote host closed the connection)
09:04:06  * contrahaxjoined
09:07:17  * peutetre_joined
09:09:55  * peutetrequit (Ping timeout: 240 seconds)
09:11:30  * freealljoined
09:18:50  * drptbljoined
09:23:02  * drptbl_joined
09:24:57  * drptblquit (Ping timeout: 265 seconds)
09:31:30  * phatedjoined
09:36:02  * phatedquit (Ping timeout: 246 seconds)
10:00:27  * bytearcherquit (Ping timeout: 255 seconds)
10:01:35  * gildeanquit (Ping timeout: 276 seconds)
10:02:08  * gildeanjoined
10:02:20  * bytearcherjoined
10:10:03  * Tristitiajoined
10:37:01  * contrahaxquit (Quit: Sleeping)
10:58:29  * freeallquit (Remote host closed the connection)
11:19:48  * phatedjoined
11:25:00  * phatedquit (Ping timeout: 272 seconds)
11:32:45  * peutetre_quit (Quit: ...)
11:34:48  * freealljoined
11:40:22  * djcoinquit (Quit: WeeChat 1.0.1)
11:44:18  * peutetrejoined
12:07:34  * peutetrequit (Quit: ...)
12:08:58  * peutetrejoined
12:11:55  * phatedjoined
12:16:20  * phatedquit (Ping timeout: 246 seconds)
13:30:21  * fotoveritejoined
13:41:25  * knownasilyajoined
13:44:30  * freeallquit (Read error: Connection reset by peer)
13:44:45  * freealljoined
14:00:10  * phatedjoined
14:02:55  * peutetrequit (Ping timeout: 240 seconds)
14:04:29  * phatedquit (Ping timeout: 246 seconds)
14:11:03  * freeallquit (Remote host closed the connection)
14:25:06  * freealljoined
14:51:50  <feross>mafintosh: check it out: https://github.com/nodejs/node/commit/101bca988cebce584d5b6098c316a6e7bf89b69d
14:52:37  <feross>looks like core is pretty receptive to removing old crap from the early days
15:04:19  * Widdershinquit (Quit: Connection closed for inactivity)
15:47:43  * freeallquit (Remote host closed the connection)
15:48:14  * phatedjoined
15:48:23  * freealljoined
15:50:36  * coderzachjoined
15:52:26  * phatedquit (Ping timeout: 240 seconds)
16:10:59  * dguttmanjoined
16:11:53  * phatedjoined
16:16:43  * phatedquit (Ping timeout: 260 seconds)
16:22:50  * phatedjoined
16:24:18  * freeallquit (Remote host closed the connection)
16:29:53  * coderzachquit (Remote host closed the connection)
16:38:38  <feross>ogd, jhiesey, mafintosh, karissa: the standards folks are debating whether or not webrtc data channels make sense in ServiceWorker
16:38:52  <feross>please leave a comment in support: https://github.com/w3c/webrtc-pc/pull/317#issuecomment-170610532
16:39:11  <feross>^ substack, jbenet
16:39:12  * coderzachjoined
16:52:37  * shamajoined
17:11:38  * drptbl_quit (Quit: My MAC has gone to sleep. zZz..)
17:20:48  <emilbayes>Anyone know of a good source to read about TCP hole punching?
17:24:49  <wa7son>feross mafintosh: what’s up?
17:25:07  <feross>wa7son: i'm just hacking at riccos
17:25:26  <wa7son>feross: did you guys find an airbnb?
17:25:30  <feross>wa7son: mafintosh went to pick up something from the post office
17:25:35  <feross>wa7son: yeah
17:26:13  <wa7son>feross: cool :) I thought riccos was closed now? But maybe it's 7pm? Plans?
17:26:45  <feross>wa7son: i'm working on getting webtorrent to use IDB instead of in-memory in the browser
17:26:59  <feross>wa7son: it's still open rn
17:27:28  <wa7son>feross: I’m ready to leave the office now - don’t want to drive all the way to Riccos if they close in 30 min
17:28:05  <wa7son>feross: we could of case fall back to mafintosh apartment ;)
17:28:10  <wa7son>*of cause
17:28:28  <wa7son>feross: did you get the keys to your airbnb?
17:28:52  <feross>wa7son: oh, it's for jan 13th. wasnt available earlier
17:29:02  <wa7son>feross: ah :(
17:58:40  <mafintosh>wa7son: it closes at 8
18:00:57  * coderzachquit (Remote host closed the connection)
18:08:56  <ogd>emilbayes: google 'tcp open simultaneous' or 'tcp simultaneous open', i forget which one
18:20:32  * coderzachjoined
18:42:00  * freealljoined
18:44:10  * coderzachquit (Remote host closed the connection)
18:46:25  * freeallquit (Ping timeout: 260 seconds)
18:58:25  * coderzachjoined
19:04:36  * freealljoined
19:09:09  * freeallquit (Client Quit)
19:38:13  * coderzachquit (Remote host closed the connection)
19:47:14  * coderzachjoined
20:07:15  * coderzachquit (Remote host closed the connection)
20:12:56  * dguttmanquit (Quit: dguttman)
20:13:48  * dguttmanjoined
20:22:15  * serapathjoined
21:21:31  * dguttmanquit (Quit: dguttman)
21:36:56  * pfrazejoined
21:49:02  * dguttmanjoined
21:58:50  * coderzachjoined
22:04:21  * pfrazequit (Read error: Connection reset by peer)
22:10:24  * fotoveritequit (Quit: fotoverite)
22:11:20  * pfrazejoined
22:48:35  * coderzachquit (Remote host closed the connection)
23:14:00  * fotoveritejoined
23:16:50  * pfraze_joined
23:22:05  * dguttmanquit (Quit: dguttman)
23:23:11  * dguttmanjoined
23:28:12  * pfraze_quit (Read error: Connection reset by peer)
23:29:23  * pfraze_joined
23:41:48  * pfraze_quit (Read error: Connection reset by peer)
23:42:25  * pfraze_joined
23:48:11  * coderzachjoined
23:56:46  * pfraze_quit (Read error: Connection reset by peer)
23:58:02  * pfraze_joined