Archive for July, 2016

back to real recording

I did a lot of vocals recording Monday – some tracks I intend to keep, some more or less placeholders, scratch tracks for other vocalists – all on the new system, all at the absolutely goofy 0.7ms buffer setting, just to see if the system would actually work, being driven that hard all the time, over hours.

It does.

It hiccoughed a couple of times. Nothing involving data loss – after waking back up from screen lock mode, the audio subsystem had to be restarted by me, rather than coming back up on its own. I need to disable screen locking anyway. Once during some playback, I heard a momentary pause, though no XRUNs showed up in the status monitor, so I’m not sure what’s up with that.

I should probably, I dunno, step back a bit? Give it some margin for error? But so far, I’m not being forced to.

In other news, all 39 episodes of Revolutionary Girl Utena are legally on YouTube now. YOU HAVE NO MORE REASONS TO DELAY AND MAY START WATCHING NOW.

(Because jfc the chemistry between Utena and Anthy is smokin’ right out the goddamn gate. I do not like the series’s ending, because reasons addressed pretty directly by Avatar: The Legend of Korra, but everything up until that is amazing.)

so hey, usb chipsets totally matter

In yesterday’s post, I posed a question: do USB chipsets matter in the 2.0 environment? I had reason to suspect they might.

The answer is holy crap yes they matter they matter so much it is unbelievable.

First, let me talk about what prompted this research, so you’ll know why this matters.

On my old sound interfaces I had live monitoring in hardware, so I didn’t have a lot of need to care about latency. Since that won’t mean much to most people, I’ll explain; when recording, it’s good if you can hear yourself, in headphones. If you’re multitracking, it’s critical.

My old audio interfaces did this with direct connections in the hardware. Whatever came in the microphones also went out the headset. There are advantages to this method, but also disadvantages, in that you aren’t actually hearing what’s being recorded, just what’s being sent in the microphone jack.

But now, I have this shiny new 1818vsl, which doesn’t do hardware monitoring under Linux. Higher-level kit generally doesn’t provide that; they’re assuming you have enough computer that your computer can send back what is actually being recorded, effects and all, and that you’ll do that instead.

This means I now have to care about latency in my system. Latency is basically delay, between mic and computer, and computer and headset. And if the computer is feeding my monitor headphones, that delay matters. You want to hear yourself live, or close to it, not with, oh, a quarter second of delay or something horrible like that.

Now, the good news was that straight out of the box on Ubuntu 16.04 (the latest long-term support version), I had better, lower latency numbers on my new 1818vsl than on my old hardware, when I was using that on 12.04. I could get down to a buffer size of 256 samples, and three frames, which gave me about 30ms basic latency – roughly half what I had with my old hardware and old install. I could use it as-was.

But I couldn’t go any lower on those buffers. One more setting down, and even playback would lag. It’d be okay until the system had to do anything else, then you’d get a playback pause, or a skip, or if recording – presumably, I didn’t bother trying – lost sound. That’s unacceptable, so 30ms was the lower limit, and I wasn’t sure it was a safe lower limit.

And that’s what got me doing all that chipset research I talked about yesterday, and I ordered a new USB card (plugs into PCI sockets) based on that research. I was hoping for a couple fewer milliseconds of latency, that I wouldn’t actually even use; I just wanted a safety margin.

So that new card arrived on Sunday, with its OHCI-compliant chipset made by NEC, and I popped it into the machine and started things up with normal settings.

At first, I was disappointed, because I only saw about half a millisecond less lag, instead of the 1-2ms drop I’d hoped to see. But across tests, it was more consistent – it was always at that same number, which meant I could rely on that 30ms latency in ways I wasn’t sure I could before.

They I decided to see what would happen moving the sample buffer setting one level lower, into what had been failure mode. And the result was 1) it actually worked just fine, where it hadn’t before, and 2) when running analysis, tests showed much lower latency at that setting than with the previous USB ports.

That was an ‘oh ho‘ moment, because it implied that the 256-sample run rate was basically the spot at which the on-motherboard USB could just keep up, and trying to run faster wouldn’t actually produce any actual processing improvement. It’d try, but fail, and time out.

So I did a couple of recordings on that, and they all worked. Then I dropped it another level, until finally, I just said hell with it, let’s just set it as far down as the software will allow and see how hilariously we explode.

I just successfully recorded test tracks four times with these settings, on the new card:

0.7 milliseconds isn’t even something you think about on USB 2.0. 2.8ms, maybe, okay. I’ve seen that managed a few times before, and that’s genuinely indistinguishable from realtime/hardware monitoring. But 0.7ms?

Seriously, this is well into “…is that actually possible?” territory. I’ve never even heard of someone running over USB 2.0 at latencies this low.

So, I guess it looks like the chipset matters a whole lot. Maybe not for most applications, and maybe not in the same way as in USB 3.0 or in FireWire, were there are serious compatibility issues. But in the 2.0 world, in realtime audio, it appears that the chipset makes all the difference in the world.

And yet, I can find this nowhere online. I’m beginning to think nobody bothered until now. Certainly when I’ve asked about it, the response has “why are you on USB get firewire” or “why are you on USB get PCI” because sure I want to throw out all this hardware and start over THANKS NO.

I think USB users have been trained just to accept it and deal. But surprise! You don’t have to! You can actually get a better USB card, if your system allows it, and it’s $30 instead of $1300!

So, HELLO, OTHER SMALL-STUDIO MUSICIANS! You want a chipset that uses OHCI on the USB 1.1 level even if it’s a USB 2.0 card or later because the 1.1 layer still matters, and still gets invoked by the higher-order drivers for card management. See previous post for why that’s important.

This means avoid Intel and VIA chipsets, and look for NEC or SiS – or anything else that loads OHCI drivers and not UHCI. If you’re on Linux, you want to:

cat /proc/interrupts | grep usb

If you see “uhci_hcd” in there, you have a UHCI chipset running your USB port and getting a new USB card with an OHCI-compatible chipset (and disabling whatever’s already installed) might help you with your latency issues.

Good luck!

usb 2.0 chipsets, digital audio workstations, and linux

I’ve been trying to find out whether there’s any sort of difference between USB 2.0 cards, specifically as addresses the needs of digital audio workstations on Linux.

Very few people in linux communities seem to have addressed this question at all, and none I can find on the audio side. (Firewire, oh my gods yes – huge lists. Just not USB.)

But I did a lot (a lot) of digging, and discovered via the Linux USB kernel driver dev mailing list(!) that while there’s not much difference on the USB 2.0 side, there are important differences on the 1.1 side. These difference manifest in two different driver models. That still matters at least a little bit in 2.0, because those 1.1 drivers still get loaded.

Anyway, that difference is that there are two very different driver interface models. One is UHCI, created by Intel and used by Intel and Via, mostly. The other is OHCI, which Compaq pushed when it was still around, and Microsoft preferred; it has less intellectual-property load, and NEC, SiS, and some other makers use it. If you see a “Mac compatible” card? It’s going to be OHCI.

The OHCI model puts a lot more of the business of doing USB into hardware on the card. UHCI has the processor do that work. And while that isn’t a heavy load, it is a nonzero load, and more importantly means that UHCI chipsets require more CPU attention than OHCI chipsets, on a recurring basis. And that is something we don’t need in a digital audio workstation; there are only so many board interrupt opportunities; I want them for moving data, not servicing USB mechanics.

Once I knew that, I did more searching and found people saying how switching to a NEC chipset card had (in one case in particular) ‘saved their bacon’ specifically on their digital audio workstation. They were using ProTools on Windows, not Linux, but it was still with a USB audio interface.

The chipset used by my on-motherboard USB ports is, of course, Intel, and therefore UHCI. (And UHCI drivers are actually loaded, I checked.) There’s also an on-motherboard hub between the outside world and the one true root device; that doesn’t help anything either. So there’s a nonzero chance I’ll see improvement both from changing from UHCI to OHCI, and from moving to a true root USB device instead of a hub device. It won’t be much, but I’m only looking for a few milliseconds of latency here. And even that’s more for… reliability buffer, I suppose? Yeah. Reliability buffer, rather than pure necessity.

I’m mostly posting this 1) so I remember it and 2) so other people looking for this data can find it. HI! I can’t be the only one!

I’ll update this post if I get interesting results.

eta: INTERESTING RESULTS AHOY: CHIPSETS MATTER SO MUCH OMG. I’ll write up a post with details, post it tomorrow.

swearing in welsh and playing in mandolin

@elwoodicious responded to my button-mashing arglebargle on Twitter with, “when you swear in Welsh you know it’s serious XD” but if you might know why I would be having client timeouts against the webcache varnish, but only when using the faster segment of the network, here’s today’s/last night’s data dump.

Otherwise, I’ll be adding mandolin to “We’re Not Friends,” which I’ve been working when not working on servers. (I haven’t talked about our DNS server also deciding that the login daemon was both optional and needed to be restarted every 60 seconds, have I? No. Well, it did, I fixed that too.) But…

“We’re Not Friends” is pushing me. Not from a technical standpoint, or even from an emotional standpoint, but from a communicating that emotion standpoint. Musically speaking, it’s of about average complexity – I’ve released far more complicated material. (Particularly “Stars,” hoo boy. That thing is a tiny opera.) But…

There’s an emotional complexity here that I have to get across, and I need every part of it onboard to make it work. That’s all there is to it, but it’s subtle, and most songs only have time for one emotional tone, and I’m trying to communicate an substantial emotion tonal change in three and a half minutes. But if I can do that…

Right then, back to it.

anybody out there know wordpress internals?

Anybody know anything about what the comments page in the WordPress administrative interface might be doing to call into themes?

I’ve been trolling through the codex for a while, but hey surprise wordpress is a big project and this is a lot of code to troll. But basically, the comments page in the administrative interface takes a very long time to load (>20s) if my current desktop theme is in use.

If I switch to twentysixteen (the current standard included theme), it takes very little time – basically, an immediate load. That’s changing nothing else, and it is 100% reproducible.

My suspicion is that it’s running some sort of check against the comments contents and/or metadata. I suspect specifically something to do with the avatars, but that’s very much a guess.

This is 100% unrelated to my digital audio workstation woes – completely different machines – and is something that has been bugging me for a while. It started all at once, after we rebuilt the server following the hax0r last year.

Anybody out there with knowledge? Do I get lucky?

eta: I was chatting with mpol on the wordpress IRC channel, who found something in the theme’s functions.php that I’d looked at askance before, and it’s this filter call:

add_filter('get_comments_number', 'comment_count', 0);

And if I comment that out, suddenly we behave a lot better and I don’t see a functionality loss. Anybody know what this might even be doing? It’s line 364 here.

eta2: I know what that filter was doing now. I think without that filter their custom comments counter (which added behaviour I didn’t actually like and had worked around elsewhere) becomes redundant and I’ve commented it out entirely with no bad beahviour so far. Anyone see anything weird with comment counts?

eta3: So far this is working much better! But possibly related, and possibly not, I am still getting admin-panel connection resets at random. Reloads always work, and of course, Query Monitor is not helpful here because the reload works fine without issues or errors. All of Firefox’s explanations are wrong, and this happens under Safari too.

The connection was reset

The connection to the server was reset while the page was loading.

The site could be temporarily unavailable or too busy. Try again in a few moments.

eta4: Many super-thanks to Kirrus on Twitter who has been majorly helpful on this. I’m still seeing the connection reset, but the comment issue is cleared out and along the way, using tools he and mpol recommended, I found an assortment of bugs affecting performance in the two abandonware plugins I still run and more or less privately maintain. Also, one in my now-custom once-piano-black theme which would’ve meant White Screen of Death under PHP7. I’LL NEVER CHANGE THEMES NOW XD

eta5: For even more confusing information on the remaining problem, see this entry on Dreamwidth. Honestly, what the hell?

fit and finish

So, I’ve had my Gnome3 desktop up and running for a while (because Unity has not improved with time), and mostly things are okay! But there are small things bugging me.

My desktop, in tiny form, for reference:


Yes, that offset is intentional. The monitor mounting points don’t match.

ONE: Why aren’t these tips being clipped?


Peek-a-boo!

All the windows have them. Sometimes they’re black. So some sort of clipping isn’t. Is this because I’m using the open-source nvidia driver instead of the official one, or is something else going on?

TWO: I can’t run gnome-tweak-tool because it fails out if you don’t run pulseaudio. Is there a way around that? I suspect I might be able to solve item one if I could run item two.

THREE: I can make a link on the desktop to directories with ln -s, of course. But if I make one to Dropbox, the local-instance directory path ends up being /home/kahvi/Desktop/Dropbox instead of /home/kahvi/Dropbox, and even if I put things in the directory, and it is the right directory, Dropbox won’t sync it because the local reference at time of addition was wrong, and it never notices later so never syncs.

I can alt-F2 and type “Dropbox” and get the folder with the right local path, but that’s kind of lame. I can also pull up the Dropbox mini-app and go through a couple of menus to get there, but that’s also kind of lame. It’d be nicer if I could just click on the icon like I used to do. Or better yet, drag onto the icon, that’d be best.

None of these are really big deals, but it’d be nice to get them worked out, so if you have some tips, throw them into comments? Thanks!

less an annoyatron and more an annoyaharmonica?

Friday night, a bunch of the Lair went out to see the Seattle Symphony and Chorale do Lord of the Rings: Fellowship of the Ring, and 1) holy crow, what a marathon for the performers, I mean damn, and 2) that worked surprisingly well as an art form. Also, the soloists were great.

I know that soundtrack better than I realised, too – I kept picking up small differences in performance, mostly breathing points with winds. There’s a bit towards the end with tin whistle that I don’t know how you do without a breath, and my suspicion now is “you don’t, you do it in post.”

Of course, as soon as we got to Boromir at the Council of Elrond, the entire room exploded in laughter, as was inevitable. DAMN YOU INTERNETS

I also picked up this monster in the gift shop:

And posted on Twitter, “YAY! I’ve found a whole way to be annoying!” and then played bits from Lord of the Rings all the way home. But after playing around with it a while – really, it’s not so much an annoyatron. It’s more a harmonica with a keyboard. That maybe could still be super annoying, but it will, nonetheless, be musical.

Sadly, it’s not chromatic – it’s C-major only – but it’s more flexible than you’d expect, and you can get a bit of vibrato out of it. I have no idea what if anything I’ll ever do with it, but it’s a legit addition to the noisemaker collection.

George (the cat), though, really hates it. So I guess it’s still an annoyatron for some of us. Poor kitty. 😀

oh look, i’ve stopped screaming

After we got back, I discovered that my digital audio workstation had decided to Not anymore. No idea why; it was fine when I turned it off, it was Not At All Fine when I turned it back on.

I blame Bond, James Bond, somehow. Or maybe that turncoat Q. He used to be a supervillain scientist, you know. That bastard.

Anyway, since Ubuntu 12.04 LTS was going to fall out of support in the spring anyway, and since the problem appeared to be some sort of USB driver issue with the new sound interface, I decided I’d upgrade. That went… very badly. (See also, see also, see also, see also, there’s even more on my personal Facebook account, and none of this even covers the first half.)

But I did eventually get it working, and! I found a good use for an under-desk add-on keyboard tray. Look! It’s a LazyRack!


Hello!


Are you still there?


Targeting acquired!

I can do this because unlike my old interface, it’s meant to rack-mount, so almost everything is front-facing. Reclaimed desk space, and pushed back, all the cable ends are still out of the way! It’s great.

Also, I love these mic preamps oh my gods they are so much better. This probably won’t mean much to you listening on laptop speakers, but here’s a quick zouk sample straight into the mics I recorded last night, once I had things up and running. No processing at all, as there shouldn’t be… it’s… it’s just that these preamps (and same mics I’ve had before!) are picking up all these subtleties in the low-end that the TASCAM buried, and I’d have to dig back out with EQ and stuff. This is an absolutely raw recording and it’s all just there already.

It’s kind of like I didn’t just get new mic preamps, I got new microphones too thrown in.

I’ve written many times that you can do a lot on the cheap, and I think I’ve proven that, but I’ve also always said you’re trading time and knowledge (work) for money. I finally decided to run that trade the other way, and still ended up with a boatload of work thanks to Ubuntu. But for the improvements I’m hearing so far, in the studio? I’ll take it.

clallam bay comicon 2016 post-con report

So, yeah! Back at the lair, back directly from Clallam Bay Comicon! The Party on the Peninsula, Donna’s Weird Little Comic Show, Clallam Fun Days Adjunct and excuse to go relax on the coast for a weekend. Call it what you will, we even made the sign this year:


In a small town, that’s a big deal
Leanne Franson, this year’s GoH in from Montreal, does not stop. She’s the only person I’ve met who can match Donna Barr one-on-one. I bought a bunch of her books. I also finally picked up the Stinz collections – both volumes – and Volume 2 of Winging It, which I’d somehow never read back in the day.

Aside from the usual stuff, CBCC is where I will run little experiments, in front of tiny audiences who are just kind of surprised you’re there at all, so extremely tolerant. TO WIT:

Experiment number one! Remember “USSR,” that YMCA-based Soviet Disco song I wrote in response to a challenge on Tumblr? Well, here’s me doing it live, karaoke-style. I’d embed, but I had to put it on Tumblr because YouTube doesn’t like you uploading Karaoke performances, even if you wrote your own lyrics.

The crowd at the show was quite good, as you can maybe hear in the camera microphone, until about halfway through the show when the sky – which had been threatening all day – really opened up and the rain got serious, at which point an outdoor concert is not the most fun thing ever invented and a lot of people ran off. (Hey, I was sheltered…)

Still, a good day for me – as was, honestly, the whole weekend. You don’t go to CBCC to make money, but damned if I didn’t. Not sure what to make of that.

Experiment number two! I’d gone with the intent of running a panel on building old-technology microphones, but I realised as I was packing that I could haul along enough gear for people to hear their own voices, and make recordings I could hand them via Dropbox.

So I set up at our table, with the carbon mic hooked up to my laptop, and let people go at it all weekend. This was surprisingly popular. Several people made recordings – even when not in use, the microphone remained an attention magnet.

Interestingly, everyone wanted to use the carbon mic, and not the crystal, though they were curious about how both worked.

Experiment number three! I can’t tell you about experiment number three, so instead, have a picture of this other bay that’s on the way there, but I’ve never stopped to visit until now. Very nice.


The Other Bay
Experiment number four! Very similar to experiment number one, except for being “Kaiju Meat” instead of “USSR” and being able to properly mic up for a Godzilla footwear bridge solo. YOU WANT SOME GIANT LIZARD PODORYTHMIE I HAVE SOME GIANT LIZARD PODORYTHMIE

From a technical standpoint, this worked far better than it had any right to. As a performance experience… I think I’ll hold it for when I have an actual live band behind me. Doing it solo… with “USSR,” it felt like the Karaokeness added to the silliness in good ways. In “Kaiju Meat,” the combination didn’t feel like it worked as well.

But the Godzilla Footware Solo is definitely staying in.

Experiment number five! Field recording, using the new windscreen I’d bought, the kind that looks like a tribble got stuck on the end of your microphone. Result: SMASHING SUCCESS. Despite a constant ocean breeze, I got very clean recordings of waves on the shore, and of birds in the foliage nearby. Best investment is best!

Not as many photos this time, but I did take a few. As always, larger at the Flickr feed.


Clallam Bay

The Makah are building a canoe fleet


I realised I haven’t taken many or any pictures of the actual Clallam River heading into the bay. So I fixed that.

Fisher Who?

back from clallam bay!

Back from Clallam Bay after a particularly successful event! More tomorrow, after I unpack and get things cracking here again. But in case anybody thinks there aren’t geeks out on the Olympic Peninsula, here’s one of several dozen wooden fence fish painted by students at the local high school.

That’s not how I’ve pictured the eye of harmony, but who am I to lecture people about their headcanons? XD

Return top

The Music

THE NEW SINGLE