Friday, 2017-10-06

*** Yruama_Lairba has quit IRC00:26
*** artfwo has quit IRC01:56
*** son0p has joined #lv202:07
*** son0p has quit IRC02:21
*** grejppi_ has joined #lv202:33
*** grejppi has quit IRC02:35
*** drobilla has quit IRC03:50
*** diqidoq has joined #lv204:00
*** diqidoq has quit IRC04:55
*** diqidoq has joined #lv205:36
*** diqidoq has quit IRC06:39
*** oofus_lt has joined #lv206:39
*** ssam2 has joined #lv207:57
*** sigma6 has joined #lv208:06
*** drobilla has joined #lv210:02
*** diqidoq has joined #lv210:26
*** diqidoq has quit IRC10:53
*** diqidoq has joined #lv210:54
*** diqidoq has quit IRC11:17
*** JackWinter has quit IRC11:30
*** JackWinter has joined #lv211:33
*** drobilla has quit IRC11:52
*** yann-kaelig has joined #lv212:37
*** artfwo has joined #lv212:41
*** son0p has joined #lv213:11
*** HarryHaaren has joined #lv213:28
*** drobilla has joined #lv213:56
*** artfwo has quit IRC14:25
*** artfwo has joined #lv214:38
*** HarryHaaren has quit IRC15:01
*** dsheeler has quit IRC15:39
*** sigma6 has quit IRC15:51
*** artfwo has quit IRC15:51
*** artfwo has joined #lv216:07
*** HarryHaaren has joined #lv216:12
*** ssam2 has quit IRC16:37
*** gabrbedd has quit IRC16:40
*** gabrbedd has joined #lv216:42
*** rncbc has joined #lv217:45
*** nixlappy has quit IRC18:04
*** nixlappy has joined #lv218:05
*** HDaemon has joined #lv218:11
HDaemonHi everyone!18:11
HDaemonHave lv2rack issue in Ubuntustudio 17.0418:13
*** deva has joined #lv218:13
HDaemonHereis traceback: https://pastebin.com/uk2k2zQj18:14
*** HDaemon has quit IRC18:19
rgareusis lv2rack still a thing? I thought it died about 2009 with Nedko leaving18:23
*** oofus_lt has quit IRC18:27
*** son0p has quit IRC18:40
arguyHi folks! I'm trying to build an lv2 plugin that uses the new xiph's RNNoise library and I'm building the library statically. The thing is that I got it to compile without errors but is not processing the signal as expected. Could that be a problem of how I'm linking against the static build of the library or more like a problem of the library itself. Code is here https://github.com/lucianodato/speech-denoiser if you are19:27
arguyinterested19:27
arguyI'm a gnu-make noob so don't expect me to know what I'm doing. Sorry!19:29
rgareusarguy: static_rnnoise.sh looks fine to me.19:48
rgareusas does  https://github.com/lucianodato/speech-denoiser/blob/master/Makefile#L59-L6519:49
arguyThanks rgareus ! I will talk to Xiph folks then19:52
rgareusarguy: knowing some xiph projects (e.g. opus) my first guess is that it doesn't like the buffersize.19:53
rgareusmost of their tools are msec aligned. e.g. 480 sample chunks at 48k.19:54
arguyCould be. Although with a 48 khz session it does not work either19:55
rgareusarguy: check the return value of  rnnoise_process_frame()19:55
arguyIt's 019:56
rgareusnot sure what it means, but it seems that 0 samples were processed.  it seems to be phase-offset (float) though.19:57
arguyIt's a percentage of voice detection if I'm not wrong19:58
rgareusthat would make sense, indeed19:58
arguythe problem is when it reaches to compute frame features19:59
rgareusarguy: where do you tell rnoise how large the buffer is?19:59
rgareusoh it's one sample at a time?19:59
arguythe api of that library is not finished yet19:59
arguyyeah19:59
arguyFRAME_SIZE20:00
arguyneeds to be hardcoded20:00
rgareusarguy: in any case your approach to statically link and use the library is correct.20:02
rgareusIt could well be a bug in the lib (not ready for static usage) or perhaps the issue is elsewhere, how you use the API20:03
arguyFantastic I was worried that I might be getting that wrong20:03
rgareusarguy: I think your fifo is not right though20:04
rgareussay your plugin gets called with 64 samples per cycle.20:04
rgareusyou need to keep apending them an offset each cycle20:05
rgareus self->rnnoise_input_frame[k] = self->in_fifo[k];   seems wrong20:05
rgareusand  self->read_ptr  won't be the same for input and output20:05
rgareusarguy: in case there have not yet been enough samples to process.  the output needs to be zeroed.20:07
rgareusalignement will be different.  e.g. you get  7 * 64 samples = 448.  no output, just store them.   next 64 samples you have 512 total samples that's > 480 you process20:08
arguyOhhh20:09
rgareusyou have 32 samples left-over  (512 - 480) = 32  that you need to keep.   but you do write 64 sample of output from those 480 processed ones20:09
arguyyep my bad20:09
rgareusperhaps start jackd ...  -p 480 and it'll work :)20:14
rgareusarguy: an easy way: just use jack_ringbuffer  (and link against libjack for prototyping).  or just copy its code.20:18
rgareus1) write all incoming data into a ringbuffer. 1 sample at a time.   check if it contains >= 480 samples. if so: read them to  rnnoise_input_frame[]  and go.20:19
rgareus2) write results from   rnnoise_output_frame[]  into the output-ringbuffer.20:20
rgareus3) if output-ringbuffer contains >= n_frames samples   pop the them from the ringbuffer and write the to the plugin's output.20:21
rgareusjack_ringbuffer is a bit overkill here, since your case all is in sync.   but it does the job just fine for prototying.20:22
*** deva has quit IRC20:57
*** edo_pc has joined #lv221:04
*** yann-kaelig has quit IRC21:22
*** dsheeler has joined #lv221:32
arguyI'm using 2 fifos one for the input and one for the output and they are in sync so what you are describing won't happen. And the output fifo is initialized with zeros so it will output zeros correctly the first frame. In fact I double checked that it works correctly as a delay line and it does work. Unless I'm totally wrong here It must be something I'm doing wrong with the library21:37
arguyBut using a ring buffer is a more sane option yes. I'm just lazy21:39
arguyI saw a ringbuffer implementation in tuna.lv2 maybe I will look at that21:40
rgareusarguy: that's also used to decouple threads21:43
rgareuslike jack-ringbuffer it's aimed as reading/writing being async.21:43
rgareusarguy: your fifos should be fine for the case at hand.21:44
arguyThanks anyways rgareus!21:45
rgareusjust the offset pointer will be different for input and output.21:45
rgareusarguy: and you're welcome.  keep up the good work!21:51
*** grejppi_ is now known as grejppi22:06
*** edo_pc has quit IRC22:17
*** HarryHaaren has quit IRC22:28
*** rncbc has quit IRC22:37
*** drobilla has quit IRC23:30

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!