Better HN
topnewbestaskshowjobs
Log inSign up

iamdan

45 karma · joined Jul 18, 2022 (4y ago) · 22 submissions

Software engineer. Learning by doing :)
Submissions

1.

Show HN: A free Gameboy–style music tracker in the browser with shareable URLs(chiptunes.studio ↗)

1 points · by iamdan · 2w ago · discuss

2.

Show HN: Chiptune Tracker(chiptunes.netlify.app ↗)

4 points · by iamdan · 9mo ago · 1 comment

comment 1y ago · link · parent

That's sweet! I'm trying to see how far I can push the web audio api but yeah the aliasing can be harsh. I think there are also some things I can do with filter nodes to smooth things out a bit

comment 1y ago · link · parent

I had a bug in my demo code around handling the duty cycle change, this should be fixed now

comment 1y ago · link · parent

This should hopefully be fixed now, there was an issue with handling the radio button selection change.

I haven't been able to find anything about why exactly they chose to provide both 25% and 75% DCs - they do sound the same minus the inverted polarity like you mentioned.

comment 1y ago · link · parent

This is correct, the demo not properly handling the selection of a new duty cycle. I pushed up a correction just now. Thanks for laying out a detailed replication - made for an easy fix

comment 1y ago · link · parent

Great name. That's super cool i like the retro aesthetic. The scheduling piece of trackers built with the Web Audio API is definitely a bit of a struggle but so far it's been manageable

comment 1y ago · link · parent

Yes! My dad has an old Commodore 64 and I vaguely remember a skiing game. I think it's so cool what folks were able to accomplish musically on such limited systems at the time

comment 1y ago · link · parent

Thank you for calling that out, I am aware that the audio demos are a little busted right now and I'll be patching them up when I get a little time

comment 1y ago · link · parent

it does, you definitely "feel" the change. I actually have to do some digging to figure that out, I unfortunately do not have my childhood GBA anymore so I have to rely on audio clips to make that call

comment 1y ago · link · parent

This is the nice thing about constraining myself to a rather old and crude sound style, the rough edges can remain a little rough

comment 1y ago · link · parent

That's true, I'm coming into the audio and signals world as a beginner so I'm still picking up the lingo but totally! For my purposes I only want to keep track of a single source for a channel so I've gone down this wave transformation path rather than composition but that also would get the job done

comment 1y ago · link · parent

It's super cool! Just from short time that I've been playing around with it, it looks like you can push it pretty far. Before too long I hope to have a Show HN post with a link to the tracker out live in production

comment 1y ago · link · parent

I think long term I will be moving in that direction. For this initial exploration and experimentation I've been doing with the Web Audio API, the sawtooth oscillator + step function waveshaper node have been sufficient for my use case but I will need investigate whether I can produce a more authentic sound with an AudioWorkletProcessor approach

15.

Variable duty cycle square waves with the Web Audio API(danblack.co ↗)

57 points · by iamdan · 1y ago · 64 comments

comment 1y ago · link · parent

that's sweet, love dracula theme

comment 1y ago · link · parent

v true

18.

Show HN: pdfdark.com – view pdf's in "dark mode" all on client(pdfdark.com ↗)

22 points · by iamdan · 1y ago · 11 comments

comment 3y ago · link · parent

Hmm I am sorry to hear that. Were you trying to refactor with gpt-4 or gpt-3.5-turbo?

comment 3y ago · link · parent

The key is passed along in the refactor POST request body to OpenAI's chat endpoint (https://github.com/daniel-black/refactory/blob/5289bf54842d1...) and is not stored anywhere else so yes it should be safe.

21.

Show HN: Refactory – AI Code Refactoring(userefactory.com ↗)

1 points · by iamdan · 3y ago · 4 comments

22.

Show HN: Hacolyte – a Hacker News reader built with NextJS(hacolyte.com ↗)

13 points · by iamdan · 4y ago · 2 comments