Saturday, 2016-07-02

*** YuriW has joined #kxstudio01:13
FergusLrgareus: https://gist.github.com/Simon-L/86f6847f01dec494093c6c090825ca79 finally got it working01:32
rgareusinteresting results01:33
FergusLhad to dig quite a lot into OpenWRT stuff, recompiling, figuring out bugs etc...01:33
rgareuswhy would aplay hog the CPU      Max:    8394     (8ms)01:33
rgareusor maybe this is the NIC  (2 connections)01:34
FergusLactually this popped at a moment, the max rose very quickly and didn't move until the end01:34
rgareusFergusL: you could try with  screen (1)  or tmux01:34
rgareusyeah the average is low.01:34
FergusLrgareus: sure yes, or better finding a way to fork madplay, couldn't get it to run in background01:35
FergusLor well, I really should get a simple alsa/portaudio program doing some audio01:35
rgareusin so most of the time all is fine.   but then something can block the scheduler for 8ms  (or .8ms  in the last case)01:36
rgareusfor xruns worst case is what matters really.01:36
FergusLsomething weird that doesn't appear here, at some point the max would go negative and the avg become like a huuuuuge int01:36
FergusLthat's when I hit it hard with the web ui01:36
rgareusmmh, maybe some int/long ARM issue01:37
*** FatalDIX has joined #kxstudio01:38
FergusLOR, I should mention I did cross-compile the cyclictest program along with the complete toolchain for the platform as well as an image to flash to it, but I haven't flashed it yet, even though I patched libc, I have no idea how it relates to the kernel and the image01:38
FergusLbut I still scp'ed the file to the board and... it worked! with the stock firmware just like I received it01:39
rgareusFergusL: in that case I would not worry too much about it.  the results look reasonable otherwise.01:39
FergusL(this is MIPS arch, not ARM, hence the horrible hassle with 8GB-ish toolchains and hours long compile time for just a tiny uImage kernel :))01:39
rgareusFergusL: when you launch jack,  is that more like aplay?01:40
rgareusFergusL: I could imagine the difference being block-size.   aplay using 1024 or so  while madplay 8k or more01:40
FergusL(MIPS is typically found on network equipment, generally has several ethernet on an internal switch, several integrated wlan adapters, actually nothing to do with audio BUT net guys worry a lot about realtime capabilities for pro grade routers and gateways etc...)01:41
rgareusFergusL: well, hard to say what the cause it,  but this at least shows that there's some issues to be expected with low-latency audio with that kernel.01:43
FergusLbecause of the 8ms?01:44
rgareusFergusL: maybe network is hard prioritized in the kernel  (if the difference is really  ssh  vs  two ssh01:44
rgareusyeah.01:44
FergusLyeah, ultimately it totally wouldn't have ssh running01:44
rgareuson the MOD    Max:  40    # or so01:44
rgareusif you run   e.g  128 fpp  / 48SPS   =   2.66 msec  per cycle.     if worst-case the scheduler can schedule jack at only 1ms   -> only 1.66 msec available for procesing.01:46
FergusLps showed some other processes but it's great to feel like you're using linux yet "ps" is just 40 lines :)01:46
*** awolf has quit IRC01:46
FergusLabout network, I'd think that given the target market it would be indeed optimised a lot in hw, with some things being async01:47
FergusLI was surprised SSH didn't seem to have any effect01:47
FergusLabout the 8ms, I think I might have done something in the webui at that moment01:47
FergusLI'll retry tomorrow01:47
rgareuswell you do run   -p 80    so that's rather large priority01:48
rgareussshd is probably run at normal userspace priority01:48
rgareusFergusL: check           ps -eo pid,class,rtprio,ni,pri,pcpu,stat,comm --sort -rtprio01:48
FergusLrgareus: to give you an idea this is what I have next to me: https://dl2.pushbulletusercontent.com/qWreN3X67RPEM05011mZs4BY6T6A1lkJ/IMG_20160702_034243021.jpg :)01:49
FergusLerh, I'll remind about that tomorrow and will report back!01:49
rgareusnice headphone01:49
rgareus5 times as large as the board :)01:49
*** awolf has joined #kxstudio01:50
FergusLhehe, the plan was also to show it off and to note that the quality was really ok01:50
FergusLyes and cpu board itself being only the top part, one third of the base board that is only for audio01:50
rgareuspower via USB here?01:50
FergusLhttp://paste.leloop.org/?7a972f6f40c30200#Rx5onyjkSvv0LtAiIgcoWjr2REiIGyP6T+6PTY0NAMc=01:50
FergusLyes01:50
rgareusok that does not show priority of thr processes01:51
rgareusFergusL: uname -a ?01:51
rgareusmmh there's  ksoftirqd.   I guess that's a rather recent kernel.    can you specify  kernel boot options?01:52
FergusLit's 3.18 iirc01:52
rgareus  threadirqs       in particular01:52
FergusLi'll check all that tomorrow! thanks for your interest01:53
rgareusk.01:53
rgareus'night01:53
FergusLactually, are you still in France? if i'm not mistaken you used to work at Paris 801:54
rgareusI used to.01:54
rgareusI'm in Brussels now. for 2 more months01:54
*** FergusL has quit IRC01:58
*** awolf is now known as wolftune02:03
*** FergusL has joined #kxstudio02:04
FergusLsorry for this network interruptio rgareus02:05
rgareusn/p02:06
rgareusI didn't say anything.02:06
rgareusFergusL: are you based in France?02:06
rgareusaah yes you are, we had that before, didn't we?02:07
FergusLhu maybe we had! Yes I'm in Paris02:07
FergusLI mostly hang out with people who seemed to know you, people from /tmp/lab and Blackboxe, does that ring a bell?02:08
rgareusquelle arrondissement ?02:08
rgareusyes and yes :)02:08
FergusLok so maybe you're not aware of all of it but blackboxe moved, and then moved again, and then again etc... now it's merged as a new entity "Jack" in Montreuil02:09
FergusLI live outside of Paris, southern suburbs02:09
FergusLhttp://jack.tf02:09
LAbot`Title: Jack is alive! (at jack.tf)02:09
rgareusjack  that should be jacques, no :)02:10
FergusLI really insisted on Jacques but not everyone enjoys the vintage sounding legacy in names02:11
FergusLthe secret meaning is that it's JA and Hack, JA being Jardin d'Alice, the artist collective we're part of02:11
rgareusdid you run into Jason Cook ?02:11
FergusLhaaaa probably, from Canada right?02:12
rgareusUSA, but he emigrated ages ago long time in France02:12
rgareushe ran the Digital Arti Artlab02:12
rgareusMilo ?02:13
FergusLsure ! haha02:13
FergusLhe's not so much around these days, Barzi (Vincent R.) is much more02:13
rgareussay hi to him. I still owe him 20 euros02:13
rgareus:)02:14
rgareusBarzi does not ring a bell.02:14
FergusLi'm basically "the sound and music guy" at the space so they did tell me repeatedly about you02:14
rgareusVincent does though..  but there were two02:15
FergusLyes, we have lots of Vincent02:15
rgareusheh02:15
FergusLwas working with Maurin D. on etextile, also quite some Arduino stuff and Kinect interactive installations02:15
rgareuscool. sounds like it's thriving02:16
FergusLyou can hop by anytime when/if you're back in Paris, just tell me and i'll arrange to have as many of these guys around at the time!02:16
rgareuswell, I'm in progress of moving the other direction :(   via A'dam to Berlin.02:17
rgareusanyway next stop is the bed... bonne nuit02:18
*** ArturShaik has joined #kxstudio02:19
FergusLbonne nuit ! à bientôt02:19
FergusLthanks for the inspiring chat :)02:19
rgareusyou're welcome.02:19
rgareusI'll certainly ping you when I'm heading towards Paris again02:19
FergusLgreat!02:21
*** Yruama_Lairba has quit IRC03:26
*** falktx has joined #kxstudio03:54
*** falktx` has quit IRC03:59
*** wolftune has quit IRC04:35
*** wolftune has joined #kxstudio04:41
*** JackWinter_ has joined #kxstudio04:58
*** wolftune has quit IRC05:01
*** HeyCitiz` has joined #kxstudio05:03
*** FergusL has quit IRC05:04
*** JackWinter has quit IRC05:04
*** dreamer has quit IRC05:04
*** HeyCitizen has quit IRC05:04
*** rncbc has joined #kxstudio07:09
*** rghvdberg has joined #kxstudio09:06
*** dreamer has joined #kxstudio09:46
*** olinuxx has joined #kxstudio10:01
*** dreamer has quit IRC10:10
*** dreamer has joined #kxstudio10:11
*** rghvdberg has quit IRC10:14
*** ArturShaik has quit IRC11:19
*** FergusL has joined #kxstudio12:25
*** ArturShaik has joined #kxstudio12:45
*** nocomply has joined #kxstudio13:12
*** Xzu has joined #kxstudio13:54
*** YuriW has quit IRC13:56
*** nocomply has quit IRC14:11
*** Xzu has quit IRC14:35
*** Xzu has joined #kxstudio14:46
*** bill-auger_ has joined #kxstudio15:21
*** bill-auger has quit IRC15:21
*** wolftune has joined #kxstudio15:29
FergusLhm is https://enzienaudio.com/docs/index.html#1.introduction unavailable to you as well?15:39
*** wolftune has quit IRC16:02
falktxyes16:02
*** Xzu has quit IRC16:13
FergusLjust when I needed it! haha16:16
*** wolftune has joined #kxstudio17:02
*** ArturShaik has quit IRC17:10
FergusLrgareus: # uname -a Linux mylinkit 3.18.21 #5 Fri Nov 20 12:43:14 CET 2015 mips GNU/Linux you asked about that last night17:19
FergusLyou also suggested I run a specific ps command ps -eo... seems the stripped down version of base utils GNU executable doesn't have a ps with all the options, -e and -o aren't recognized17:21
FergusLalso was it you that linked to an example portaudio/alsa application a few days ago?17:22
*** ArturShaik has joined #kxstudio17:24
rgareusFergusL: portaudio no.  alsa: https://github.com/moddevices/mod-alsa-test17:25
FergusLhttp://equalarea.com/paul/alsa-audio.html#playex meanwhile I found that. Thanks17:26
LAbot`Title: A tutorial on using the ALSA Audio API (at equalarea.com)17:26
rgareusFergusL: but it's not likely to help unless you're going to debug the kernel driver.17:26
*** FatalDIX has quit IRC17:27
rgareusor if you want to write your own  ALSA-only  player17:27
FergusLI think that's something I'd like to do!17:28
rgareuswell, depends.  jackd is fine for most cases17:29
rgareus3.18 can be configured with threadirq (no rt-patch needed)  -- that may help (prioritize the audio i/o IRQ)17:30
FergusLagain I won't have jack on the board I'm using! also I mentioned Heavy from enzien audio last time, this is what I plan on using (make a pd match, compile it as "static" C in just a few files and use it to process the sound and feed that to alsa)17:32
FergusLdoes that make sense?17:32
FergusLalso really cool about threadirq you just mentioned! patching for rt seemed possibly needed but very daunting at the same time17:33
FergusLhttp://users.sussex.ac.uk/~thm21/ICLI_proceedings/2016/Practical/Workshops/129_Bela.pdf if you want to read a bit about what exactly I'm aiming at, it introduces similar project17:42
FergusLI've been digging these papers as well for my masters thesis, I realise I haven't seen Mod being mentioned anywhere :/17:43
*** wolftune has quit IRC17:44
*** FaTony has joined #kxstudio18:18
FaTonyfalktx, if it legal for DPF plugin to output values that exceed -1;1? I get xruns if I do18:19
*** ArturShaik has quit IRC18:31
*** Yruama_Lairba has joined #kxstudio18:34
falktxFaTony: depends on the host18:39
falktxnot sure if there's rules for it, but doesn't seem like good practice18:40
falktxsame as outputting denormals. if possible don't do it :)18:40
*** wolftune has joined #kxstudio18:40
FaTonyfalktx, carla host18:41
falktxdepends on the engine mode I guess18:42
falktxgoing over +1.0f means it will clip anyway18:42
falktxso yeah, I'd avoid it at all costs18:42
falktxif a host connects it directly to the speakers... you might break them ;)18:43
FaTonyok I will add saturator18:44
*** wolftune has quit IRC18:50
*** wolftune has joined #kxstudio19:03
*** YuriW has joined #kxstudio19:25
*** nocomply has joined #kxstudio19:35
nocomplyI've just installed debian testing, followed the steps on the kxstudio website to add the repos but I'm not sure what to do next, I am getting this when trying to install all http://kxstudio.sourceforge.net/paste/sSr6a19:42
LAbot`Title: KXStudio Paste (at kxstudio.sourceforge.net)19:42
*** nocomply has quit IRC19:42
*** nocomply has joined #kxstudio19:43
nocomplysorry, think konversation just died19:44
FergusLnocomply: hi, did you try installing lower sets ?19:45
FergusLthere are meta packets for smaller subsets19:45
FergusLmayber -audio or something (kx has video stuff too iirc)19:45
nocomplyFergusL: I didn't, I wasn't sure if that was what I should do or not, I guess it's the same thing right?19:46
FergusL$ apt-cache search kxstudio-meta kxstudio-meta-audio - KXStudio meta-packages - Audio kxstudio-meta-audio-plugins - KXStudio meta-packages - Audio plugins kxstudio-meta-audio-plugins-dssi - KXStudio meta-packages - DSSI Audio plugins kxstudio-meta-audio-plugins-ladspa - KXStudio meta-packages - LADSPA Audio plugins kxstudio-meta-audio-plugins-lv2 -19:48
FergusL KXStudio meta-packages - LV2 Audio plugins kxstudio-meta-graphics - KXStudio meta-packages - Graphics kxstudio-meta-video - KXStudio meta-packages - Video kxstudio-meta-restricted-extras - KXStudio meta-packages - Restricted extras kxstudio-meta-all - KXStudio meta-packages - All kxstudio-meta-audio-plugins-vamp - KXStudio meta-packages - Vamp Aud19:48
FergusLio plugins kxstudio-meta-audio-plugins-vst - KXStudio meta-packages - VST Audio plugins kxstudio-meta-audio-plugins-collection - KXStudio meta-packages - Collection of good audio plugins kxstudio-meta-wine - KXStudio meta-packages - Wine kxstudio-meta-live-conflicts - KXStudio meta-packages - live ISO conflicts19:48
FergusLerh sorry that's not pretty, I have kxstudio-meta-audio installed, does it work for you ?19:51
nocomplyI can do it I think but it's a long output which loads of suggested, guess I'll just do all the metas I want, I wasn't too bothered about the videos one anyway19:52
FergusLapt-cache show kxstudio-meta-audio shows a list in its "Depends:"19:56
nocomplyoh that's handy, thanks19:58
FergusLbut I think it installs more than just this list, falktx will know better there :)19:59
*** bill-auger_ has quit IRC20:07
*** bill-auger has joined #kxstudio20:11
nocomplyhmm ok got audio one installed but getting this now http://kxstudio.sourceforge.net/paste/EFuzd20:14
LAbot`Title: KXStudio Paste (at kxstudio.sourceforge.net)20:14
*** YuriW has quit IRC20:19
*** YuriW has joined #kxstudio20:22
FergusLnocomply: this is weird20:28
FergusLI haven't done this in a long time20:28
nocomplyFergusL: I have no idea, I've only ever used the distro before so I have no idea why it's not working20:31
nocomplyfalktx: do you know what might be causing this?20:31
FergusLhave you installed a supported version?20:33
nocomplyFergusL: of debian?20:34
FergusLi've never used Debian with Kx, I've always started from ubuntu20:34
FergusLyes20:34
nocomplyjust debian testing20:34
FergusLactually, I know those errors too well from repeated install failures that I have had20:38
FergusLand I find them deceptively (un)informative, it's like "no, it's not possible"20:39
nocomplyI'm starting to think perhaps I should just go back to kxstudio iso20:39
nocomplyyeah FergusL, that the problem I've always had with this package manager, I don't particularly like it20:39
FergusLstill I try to keep with Ubuntu as much as possible20:40
FergusLno really it should work20:40
FergusLdoes "apt-get install helm" work?20:40
FergusLoh, what's your architecture?20:40
nocomplyFergusL: no, another impossible situation, libpng not installable20:41
nocomplyit's 64 bit20:42
FergusLwhats the output of "apt-cache policy libpng" ?20:43
FergusLlibpng12-0 or something that's available20:43
nocomplyN: Unable to locate package libpng20:44
FergusLyes just libpng doesn't exist, what package is exactly "libpng[...] not installable", what did it put where I wrote the brackets?20:45
nocomplyhelm : Depends: libpng12-0 (>= 1.2.13-4) but it is not installable20:46
*** Yruama_Lairba has quit IRC20:47
FergusLok so apt-cache policy libpng12-0 ?20:49
nocomplynone for candinate or installed20:50
nocomplythis doesn't make sense20:50
falktxyou might need to enable the gcc5 repos20:50
falktxdo you use ubuntu 16.04?20:50
nocomplyfalktx: debian testing20:50
falktxyeah, that needs the gcc5 repos20:51
nocomplyfalktx: I installed them as the kxstudio website says, is there something else I need to do?20:51
falktxnot really20:52
falktxnocomply: did you install the updates yet?20:52
nocomplyfalktx: yeah there was a jack package but that's it20:53
FergusL(well at least it made the sense of not being installable)20:53
falktxtry installing helm first20:54
nocomplyfalktx: http://kxstudio.sourceforge.net/paste/mb3gQ20:55
LAbot`Title: KXStudio Paste (at kxstudio.sourceforge.net)20:55
FaTonynocomply, right, I'm on Debian testing too and get the same error message21:00
FaTonyI just don't use HElm etc.21:00
FaTonyI use JACK, Rosegarden, LinuxSampler21:00
nocomplyoh ok FaTony, maybe it's not just my install then. I might have to go back to kxstudio iso in that case21:03
falktxah that shit21:03
falktxI'll have to rebuild helm21:04
nocomplywell zam-plugins worked so at least the repo is working21:08
falktxI know what the issue is...21:09
falktxlet's see if I can push an update to fix it21:18
*** YuriW has quit IRC21:27
*** FaTony has quit IRC21:38
falktxupdate incoming21:43
falktxnocomply: fix should be available in a few hours21:43
nocomplyok thanks falktx, will that fix not being able to install the metas?21:44
falktxvery likely21:47
nocomplyok thanks again21:52
*** wolftune has quit IRC21:53
*** wolftune has joined #kxstudio21:54
*** nocomply has quit IRC22:03
*** Yruama_Lairba has joined #kxstudio22:11
FergusLrgareus: quick question, I want to test my low level dead simple alsa programs on my host running jack, do I really need to stop it? the programs get the obvious "device or resource is busy"22:15
rgareusFergusL: jack requires exclusive access to the device22:18
FergusLhm :/ I think I'll get another laptop on the table and test my programs there22:19
rgareusFergusL: as does the simple mod-alsa-test.    this is intentional so that no other program can change parameters (sample-rate buffersize etc)22:19
FergusLok, totally makes sense22:19
rgareusyou could write tools that don't require exclusive access.  but then you need to handle cases where  settings can change anytime.22:20
rgareusFergusL: there's an alsa dummy (loopback) device.22:21
rgareuswhich you could use for testing22:21
FergusLrgareus: I have tested with these devices (Cadence starts it iirc) for now I get an error when I try to use them, PCM set format returns "invalid argument", I'll dig this error a bit22:34
FergusLI'm using pretty old example code I think, I should find newer examples22:35
*** rncbc has quit IRC23:10
*** stuartcnz_ has joined #kxstudio23:20
*** stuartcnz has quit IRC23:20
*** stuartcnz_ is now known as stuartcnz23:21
*** wolftune has quit IRC23:31
*** wolftune has joined #kxstudio23:46
*** wolftune has quit IRC23:59
*** wolftune has joined #kxstudio23:59

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