Ramen Junkie

Code Project – JavaScript Pixel Camera

Sometimes I do projects that end up being entirely fruitless and pointless.

Ok, maybe not entirely fruitless, but sometimes I get caught up in an idea, and end up essentially just sort of, reinventing the wheel, in a complicated way. For starters, I got caught up with this little tutorial here: https://thecodingtrain.com/challenges/166-image-to-ascii . It uses JavaScript, to convert the input from your webcam, into ASCII art. It’s a nice little step by step process that really explains what is going on along the way so you get a good understanding of the process.

And I got it to work out just fine. I may mess with it and add the darkness saturation back in because it helps bring emphasis to the video but the finished product is neat.

I then decided I wanted to see if I could modify the code to do some different things.

Specifically, Instead of ASCII characters, I wanted it to show colored blocks, pixels if you will. I managed to modify the code, and the output is indeed a pixilated video, but it’s not video, it’s constantly refreshing text. The problem is, it’s writing out a page where every block, is wrapped in a <font> styling tag, which means it’s writing out a ton of extremely dense HTML code and pushing it out, so it’s a little weird and laggy and pretty resource intensive to run.

I also image, there is a way to simply, downsize the input resolution, and upscale the video, to achieve the exact same effect.

One variant I made also just converts images to single page documents of “pixels”. but, ugly font based pixels, to achieve an effect you can get by resizing an image small then large.

Like I said, kind of fruitless and pointless, but I got caught up in the learning and coding part of things.

I also may go ahead and do some additional modifications to the code to make things a bit more interesting. I could try using it to make my own Game Boy Camera style interface, for example. Then make it output actual savable pictures. I found a similar project to that online but it would be cool to code my own up and give it an actual interface.

Anyway, here is the code for the jankey video JavaScript, sketch.js first then index.html after. Also a Demo is here, though I may remove it int he long run, especially if I make an improve project.

let video;
let asciiDiv;

function setup() {
  noCanvas();
  video = createCapture(VIDEO);
  video.size(48, 48);
  asciiDiv = createDiv();
}

function draw() {
  video.loadPixels();
  let asciiImage = '';
  for (let j=0; j < video.height; j++) {
     for (let i = 0; i <video.width; i++) {
      const pixelIndex = (i+j * video.width) * 4;
      const r = video.pixels[pixelIndex + 0];
      const g = video.pixels[pixelIndex + 1];
      const b = video.pixels[pixelIndex + 2];
      const pixelColor = "rgb(" + String(r) + "," + String(g) + "," + String(b) + ")";
       // console.log(pixelColor);
//      const c = '<font color=rgb('+r+','+g+','+b+')>'+asciiShades.charAt(charIndex)+'</font>';
      const c = '<span style="color: '+pixelColor+';">&#9724;</>';
      asciiImage += c;
    }
    asciiImage += "<br/>";

  }
  asciiDiv.html(asciiImage);

}

index.html:

<!DOCTYPE html>
<html lang="en">
  <head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.6.0/p5.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.6.0/addons/p5.sound.min.js"></script>
    <link rel="stylesheet" type="text/css" href="style.css">
    <meta charset="utf-8" />

  </head>
  <body>
    <main>
    </main>
    <script src="sketch.js"></script>
  </body>
</html>

Dodie – Hot Mess (RSD Vinyl)

Released – 2022.09.30
Vinyl – 2023.04.22

I am not real sure why Dodie put out another EP, Hot Mess, as a follow up to her first album Build a Problem. Following her online suggests that she writes well, a lot of music, feels like there would be plenty for a while album. I mean, yeah, there is some of it that’s kind of weird and a bit banal, but that didn’t seem like it held back her album. But here we are, with a fresh, 4 track EP.

I also want to take a moment to talk about this particular release, as I’ve picked this album up from the Record Store Day exclusive release version. I don’t believe it’s available on Vinyl otherwise, nor do I know if there are plans to release it later, but this release is a special translucent vinyl disk, and man it’s so very neat looking. I know this isn’t the first translucent disk ever released, but it’s the first one I have. This is the sort of thing I hope to, somewhat, limit my vinyl collection to, these neat special releases.

The album itself had 4 tracks total, 2 on each side of the record. I very much greatly prefer the tracks on side A, versus side B and it’s currently the album I have sitting on my turn table to just “push play” on occasionally.

Side A has Dodie’s last two singles on it, and similar to my complaints with Build a Problem, both of these tracks feel a bit more “complete” than the Side B tracks. The opening track is the title track, Hot Mess, it hits most of the “Dodie high points” with some wonderful harmonies and a subtle build up of some string based backing tracks. It’s quite nice and despite being a pretty short track, it feels about right on length.

The second track, Got Weird is the catchiest track on this EP. The hook is really nice and the lyrics on the whole are super catchy and clever. If Hot Mess is “Dodie doing music,” then Got Weird is “Dodie doing lyrics.” Though it does have this really incredible temp and time change shift near the end. Plus this, really weird video.

Side B starts out with Lonely Bones, a simple number that doesn’t push anything too ambitious but has a nice happy tone going to it. It wraps up with No Big Deal (I Love You) which is a super low key dreamy and quite beautiful song. Neither of these tracks are necessarily bad, which kind of feels like what I was implying above, I just, generally prefer more upbeat tracks in general. If I am going for this sort of mood, I’m more likely to go with something purely instrumental.

The EP itself is pretty good. Unless you really want the vinyl, I’d say it’s perfectly fine to experience it all through more, modern means as well. I will add that while Dodie isn’t necessarily my favorite artist, I really like how she structures her songs and incorporates the mixing in of a lot of less common instruments in this style of modern music. It gives her tracks a pretty unique sound. She also pushes a lot of emotion through her lyrics which makes it all very interesting to listen to and deconstruct.

Linear Quotes: Aurora

Linear Quotes: Aurora by Ketil Mosnes

Just for establishment up front here, I am a big fan of the musician Aurora. If we’re measuring by Last.fm scrobbles, which I like to do, she has very rapidly become my top scrobbled artist, of all time. But a pretty large margin. I saw this book posted by someone in a fan group on Facebook and it seemed like a pretty interesting, and probably less known bit of Aurora memorabilia, almost no one in the group was aware of it as far as I could tell. It’s also tricky to find, I had to order it from a bookseller in Norway. The book itself was pretty inexpensive, the shipping pretty much tripled the price.

Which is kind of the main negative, unless you happen to be somewhere that you can just buy this little book, it’s very very light on content. I don’t regret the purchase, but I was surprised that the book is much small is size than expected and roughly half of it’s few pages are photographs. The book itself is about the size of a manga book or a DVD case.

The book itself was written by a person who was able to travel around with Aurora’s crew briefly, though they aren’t really officially part of the grew. It contains a half dozen or so short interview excerpts and a bunch of photos. I will say, most of the photos are ones that I had never seen before, which was nice. Probably a side effect of the book being a bit of a lesser known artifact. There is a nice mix of behind the scenes photos and a few actual concert photos. They are a bit small though, given the size of the book, but it’s not like they are going to be torn out and displayed or something either. The photos themselves are clumped together in section, as opposed to mixed in with the text that relates to them, which feels like a side effect of using slightly nicer paper for the photo pages.

The real meat is the short interview parts. These are excepts from Aurora’s touring during 2016-2017. The writer also at least seems to be on pretty good terms with Aurora and it helps to give some fresh direction to the questions asked. It’s also worth noting for anyone not familiar with Aurora, she is, truly, absolutely, a unique and interesting person. There are plenty of in person interviews around on Youtube for examples of her all around oddness. She genuinely works to see the good in everything and to be good to everyone. The interview is dotted with lots of interesting takes on various things, I won’t go into detail on it all because well, that’s kind of the point of reading the book, but it’s definitely amusing at times, while sad at others.

I guess a good way to summarize it is to say she wears her emotions and herself not just on her sleeve, but on her entire self. If you’re a fan of Aurora, it’s certainly worth a read, and it’s a neat little book. I certainly enjoyed it, despite how short it is.

On another side note, the descriptions on this book suggest that “Linear Quotes” is a series, but as near as I can tell, this is the only one. Which is a bit disappointing because I would actually like to read more books like this.

Record Store Day 2023

Today was Record Store Day.  It’s moistly just, a “promotional” sort of deal for local record shops, and not really like, a “real holiday”.  I decided I would go ahead and give it a go.  There were a couple of pretty inexpensive albums that I was interested in and I’ve recently (finally) picked up a record player after many years of “I should get a record player”.

Man, now I’m just getting layers and layers of things to bring up here.  Maybe it’s best to just start at, “Why vinyl?”

I guess it’s almost, “Why not?”  Ok, there are plenty of reasons why not.  It takes up a lot of space, it’s not portable, it’s not particularly cheap, it’s not skip-able, etc etc.  Some of these are advantages though.  I listen to mostly albums anyway, why not buy a format that lends itself to album listening?  Space and cost are less of an issue as well, I don’t intend to go nuts on buying records.  There is nothing that I just HAVE to have.  If I could get an ok deal, on some things, I might buy it, but there is nothing I am desperate for on vinyl.  I’ve already had a few records for a while, Pink Floyd’s The Wall, and Dark Side of the Moon, A promo single from Mortal Kombat Annihilation, and slightly more recently, the soundtrack to 2001: A Space Odyssey.

I also recently bought a player for these albums.  I found one that fit what I was looking for at a garage sale and got it pretty cheap, it’s a nice little entry level Audio-Technica AT-LP60.  The main thing I wanted was a stand alone unit like this.  It takes up less space, and I already have speakers that are much nicer than most of the self contained units I come across.  It operates perfectly for my basic needs.

I had looked over the list online, and the price list I had found, and basically only wanted 2 albums.  Dodie’s Hot Mess EP, and the Arooj Aftab – Live in London EP.  I am going to skip the boring details behind these choices for now because I may do some album write ups in the future but these two were both affordable at under $20 each and both were artists I enjoy.  I had a few others lined up as alternative options or maybe if I felt spendy, but I ended up either not finding them or passing on them.  I also decided that I would go ahead and get the Taylor Swift Folklore album, if it was there, despite it being a bit more than I wanted to spend.  The price didn’t matter, it was sold out.  People camped out overnight for that thing.  CRAAAZY People…..

I was a bit worried during the lead up.  The store had been posting photos online as they unboxed everything and I had seen neither of these albums shown.  This was especially annoying because Dodie’s album was listed as “Regional Focus” and she was doing a live show off in London FOR Record Store Day.  Which sort of suggested, “Hot Mess” may be “Regionally focused to England.”  Friday night though, both albums showed up as being available.  So I was set to go.

The store opened at 8AM.  But it was also a 45 minute drive away in the next city over, and I didn’t have anything on my list that I needed to be there super early for anyway.  I arrived around 8:30, and there was still a line down the block, which was a little discouraging.  I had driven all this way though, how long could it take?  It didn’t help that it was also very cold, and I had not brought a jacked, though I was wearing a flannel shirt, in classic “I’m a 90s teen” fashion.  

The line took, a very looooong time.  It was something like 2 hours before I got in the store.  Thankfully, I got to chat up some nice strangers while waiting.  We made jokes, and talked music and concerts and records and talked other things.  Funny enough,, I never got any of their names.  There was one lady who had been at the hospital nearby and her husband had asked her to come down here and see if she could get a KISS related album.  I get the impression she did not manage to, I never saw her in the store and she had been trying to recruit me or the other dude to buy her a second copy since it was limit one.  Then there was “The other dude”, whom I really enjoyed talking with.  Talking with him was like looking at a mental and verbal mirror, though we looked nothing alike.  He was disappointed that people would leave the store and not look happy and not show off their hauls.  He ended up checking behind me and as I was leaving, I reminded him to do his fist pump as he left for the crowd outside.  There was also a younger girl who reminded me a bit of my daughter, with her slightly eccentric dress and mannerisms.  The notable store for her, she was wearing these flowered pants.  As we got closer to the store entrance, she mentioned being friends with the worker managing the store entrance.  The employee finally noticed her in line and they exchanged some pleasantries, and the employee mentioned “I like your pants”.  The young girl said thanks, then opened the front of her jacked and exclaimed, “They aren’t just pants, they are overalls!”  And everyone got a kick out of that, and the reaction of the employee.

It’s really kind of funny that we never got anyone’s names, because the other dude said something that really stuck with me.  He talked about writing some books as a hobby, and not really wanting to be a famous writer because he liked the anonymity of just, not being known.  He mentioned enjoying just sort of the basic human interaction, he had a better phrasing that I’ve forgotten.  And here we are, a small group of strangers, bonding over a shared event, passing ships on the ocean, with no real clue who we all really are.

Anyway, my turn finally came up, I went in.  The RSD Exclusives were in bins sorted alphabetically, and the front of the alphabet was open.  I quickly thumbed through the A-B bin and found my Arooj Aftab record.  The only one in there, I have no idea if there had been more earlier.  I picked it up and slid down to C-D looking for Dodie, and like the Arooj Aftab album, there was one copy of Hot Mess.  This meant mission accomplished for the day, anything else was a bonus.  The end of the alphabet was open so I slid on down there and started working my way back towards “A-B”.  No Taylor Swifts.  There was a NENA – 99 Luftbaloons I seriously considered but decided to skip.  I almost got the Garbage EP, I do like Garbage.  In the end, I decided on no more exclusives, and went over the the main part of the store.  I checked for any CHVRCHES or Aurora albums they might have and came up empty there.I checked through the “recent arrivals” and there were a few interesting ones but I decided I would wait for now.  There was a line outside, only 20 people allowed in at a time due to the store size, and I didn’t really need to linger.  I headed to the checkout table.

The Other Dude ended up behind me in line, he had a couple of albums picked out.  The real oddity here was the person in front of me.  So the store WAS having 10% off everything not RSD related.  So if you’re a collector, that would be a good time to pick up some other stuff.  The guy in front of me was buying, cassettes.  ONLY cassettes.  They seemed to be like, $1 each, and he spent a whole $8 and some change.  Like dude…..   dude…..  dude…. I am sure your cassette choices are great….  but did you just stand in line for possibly 2 hours, to spend $8 on used cassette tapes?  That 10% didn’t even save a dollar and there are a LOT of people here waiting to spend hundreds of dollars.

It seemed, very odd.

After finishing up, I went back to my car and drove around the block to…. The OTHER record store in town, Recycled Records.  This store was not participating in Record Store Day, because it’s closing in like a week.  It’s been around in town for a very long time.  I thought I had read they were doing 50% off, there was no indication that this was the case at all, anywhere.  I didn’t end up buying anything.  Not for trying, but I just didn’t find anything that jumped out at me.  There was a Radio Head vinyl I would have bought at half price, but it seemed new Vinyl was only 10% off.  They didn’t have any of the other artists I looked for unfortunately.

Afterwards I headed out to spend a few hours at my parent’s house just hanging out before heading home in the late afternoon.

Just one last bit, I’ll talk about the albums themselves later, but they are both very cool disks, and I can understand why people buy these special versions like this.

Wolf Alice – Blue Weekend

Released – 2021.06.04

Though Wolf Alice doesn’t really sound a lot like CHVRCHES, I had enough people in the CHVRCHES fandom channels suggest them as a good group, so I opted to go ahead and give this group a try with their (as of this time), latest album, Blue Weekend. Released in 2021, this is the group’s third full album. They have a sound that reminds me quite a bit of groups like Metric and Garbage.

As mentioned before, the sound isn’t really the same as CHVRCHES, but it’s sort of similar, so I can definitely see the cross appeal. There is some electronic sound to Wolf Alice, but overall its a lot more, Alternative Rock sounds, with a really interesting sprinkling of more mellow folksy-ness to it. In face, despite it’s few points of more aggressiveness, and one single extremely aggressive track, the whole album is a very nice mellow rock album.

Overall, I find Wolf Alice and Blue Weekend to be a pretty good overall album. It has a slick sound all round, though the previously mentioned “extremely aggressive track” feels almost out of place. The whole album has this really interesting fill/reverb going on for a lot of parts with the groups’ vocalist Ellie Rowsell. It sounds like there are several people all singing at once but it’s just the one, for the most part. Which I particularly enjoy.

I’ll touch on some of my personal thoughts on individual tracks going forward.

The album opens with The Beach, which is a really nice big build up track, which starts out quietly subtle but is nice and full and busy by the end with a really great sort of ethereal sound going by the end. It’s a nice fit for the opening track.

The second track Delicious Things follows up along with a much more even and regular flow and pace from a lot of the other tracks on the album. Though a lot of the nice guitar work that exists in this entire album starts to show it’s head here with it’s layered sounds running throughout. It rolls almost continuously directly into Lipstick on the Glass, something I don’t believe really happens elsewhere on the album. I particularly like how this song switches between it’s flowing low key moments then bounces off into the fuller chorus moments. It’s one of my favorite tracks on the album.

It’s followed up by the fourth track, Smile, which is definitely my favorite track of the album. It’s a lot heavier in sound than most of the rest of the album, but not overwhelmingly so. It also features a lot of excellent guitar work throughout, but a lot at the climax. There is a really nice bass guitar bit near the end. It comes in fast and hard and doesn’t stop and I love it.

The follow up though takes quite a bit different direction, and sets the tone for the rest of the album where things are a bit more low key with Safe From Heartbreak. Which is a lot more even toned throughout and features a nice low key picking guitar line throughout. This is part of where the “folksy-ness” starts to show a lot more as well in these back end more low key tracks. A lot of the vocals also feature a nice almost a ‘Capella sounding harmony to them. The low key sound continues in the next track How Can I Make It Ok?, though there is also a bit more build up in this one as the track goes along. The sound layering in the peak end of this track is nice, it’s a bit on the album that I enjoyed a bit extra.

Then there is our “excessively aggressive” track, with Play the Greatest Hits. Don’t get me wrong, I actually really like this track. It just feels, weirdly places in the middle of all of these much more mellow tracks. It has a much more fast paced screamo punk sound to it, which also feels a lot different than the rest of the album.

The rest of the album rounds out with Feeling Myself, The Last Man on Earth, No Hard Feelings, and a reprise version of the opener with The Beach II. The second version of The Beach is quite a different song though, it’s not just, a slightly different version of the same song. Most of these last few tracks are some more much more low key smaller sound, though often with lots of interesting layering of guitars and electronic bits, which is a running theme of the album. No Hard Feelings is particularly good, just before the end of the album.