Better HN
topnewbestaskshowjobs
Log inSign up

waveywaves

90 karma · joined Jan 5, 2021 (5y ago) · 83 submissions

"It's a build and deploy world"
Submissions

comment 8mo ago · link · parent

Yes, latency was the main problem to solve here. Because of which I opted for Rust. The pipeline is:

- 128-sample cpal audio buffers (~2.7ms at 48kHz) - Single-cycle pitch detection - 2-frame McLeod pitch voting for confirmation - Entire DSP pipeline is Rust, pre-allocated ring buffers with minimal heap pressure

The e2e from pluck to MIDI "note-on" signal, is under 10ms on an M-series Mac. Hardware matters for sure so an audio interface with low-latency drivers (I use an Audient iD14) helped a lot. The web version (app.contrapunk.com) adds AudioWorklet latency on top, so the native Mac app is noticeably tighter. I am still working on figuring out how to have lesser noise and pitch jitter in the final output. Also this works really well for higher notes, bass not so much right now. Still need to figure out how to handle harmonics better. I have created this issue for you for now, let me know if you would like to add anything else to this as well. https://github.com/contrapunk-audio/contrapunk/issues/6.

comment 8mo ago · link · parent

Have you been able to try it as well would love to hear what you think! Coming back to the features, regarding 1. you can already choose between soprano, alto, tenor or bass. I have still filed an issue for this, will help me remember to take vet this feature. Sometimes it's not as strict as it should be but that's also something I need to work on. Regarding 2. it's a good idea, helps you be in control of the kind of counterpoint you are doing, filed an issue for the same. Please feel free to comment on the issue. 3. is just feels is a little goofy as well I love it. I haver filed an issue for this as well check https://github.com/contrapunk-audio/contrapunk/issues/

comment 8mo ago · link · parent

Thank you! The best part about this project is that you don't actually need a elaborate setup :) All you need is a DAW like garage band or logic and a few IAC buses configured on your mac. I really like the idea of key detection, it is something I have already thought about as well: based on the song it should pick up the key which you can then jam to with contrapunk and I think it can act as an educational moment for the player as well at the time. https://github.com/contrapunk-audio/contrapunk/issues/4 I have created a github issue over here as well for this. For the velocity currently I am inheriting the onset strength of the input signal for the accompanied notes. The guitar input measures RMS energy in the first ~5ms of each pluck (the attack transient) and maps that to MIDI velocity. I will post more sample recordings on the website soon! Were you able to check the one which was already posted?

comment 8mo ago · link · parent

Thanks for taking a look! Let me know if you have any issues with it, it's still in a nascent stage and has a lot of room to grow especially in the Guitar to MIDI detection. If you don't have a midi controller you can use your keyboard as well !

35.

Show HN: Contrapunk – Real-time counterpoint harmony from guitar input(contrapunk.com ↗)

118 points · by waveywaves · 8mo ago · 56 comments

comment 11mo ago · link · parent

I had created this chrome plugin for myself because I didn't want to pay anyone else for a similar plugin to improve my French reading. The aim of this project is to create a open source platform which can be used to learn a language through reading initially and track progress on the app platform. I would like to share it here and understand what things would be good to keep in mind when making an app like this. I plan on making the platform free as well for as long as I can trying to keep the costs to an extreme minimum by making an extremely optimized service. I know that right now there's nothing substantial in the repository apart from a working MVP which you can start using locally, but would love to hear your comments on what you think.

37.

Read and Learn: open-source language learning app(readandlearn.app ↗)

2 points · by waveywaves · 11mo ago · 1 comment

38.

Show HN: MCP-Server for Tekton (Kubernetes CI/CD)(github.com ↗)

1 points · by waveywaves · 1y ago · 1 comment

comment 2y ago · link · parent

Feels like this is something I could learn before moving trying Rust properly for the second time. What do Rust developers here think about that ?

comment 2y ago · link · parent

In this entry I explore the basics of cgroups and how to use them for resource constraints for processes. As an example, I also create a process, add it to a new group, and restrain the resources being used by the process. Hope you enjoy digging through this as I have ! Cheers !

comment 2y ago · link · parent

In today's post I will go over process isolation in operating systems and how to start doing the same in Linux. Further into this series I am going to compare what it means to isolate processes in other operating systems as well.

With Linux as a base we will understand how Kernel features in Linux allow us to implement process isolation and by extension, containerization. In future entries into this series we will see how other operating systems implement this functionality as well. For now we will start with process isolation in Linux, understand the tiers to process isolation and then see how we can do similar isolation in other operating systems.

Hope you enjoy this one !

42.

Isolating Operating System Processes Part 1(vibhavstechdiary.substack.com ↗)

1 points · by waveywaves · 2y ago · 1 comment

comment 2y ago · link · parent

I'm back with a new post today on keeping time in Linux, timespaces, network time protocol and how time synchronization became necessity during the advent of railways in the mid 1800s. We will look at how the Raillway mania of the 1840s paved way to time synchronization, how we synchronize time across devices using NTP and a peek into Linux clocks and time namespaces. Hope you enjoy this one !

Do share your experiences with debugging NTP issues and if you have any thoughts on Linux Timespaces and how you use it in production or know any tools which use it heavily.

From what I have learned, LitmusChaos and ChaosMesh have experiments which you can do to mess with the NTP and the kernel clocks, but I wasn't sure how useful people find it really. Do you perform any tests like these for your application ? Have time namespaces helped you in migrating containers in the recent past ?

comment 2y ago · link · parent

My substack dashboard either took too long to load or there seemingly was some issue with CSS everytime, had to look into this. Have you faced a similar issue before ?

comment 2y ago · link · parent

Thank you for the question ! My assumption is the same. For your question I am looping in the mirrord team.

comment 2y ago · link · parent

Second part of my series about exploring mirrord internals. In this one I start scratching the mirrord-layer surface and see how it's dynamically loaded with LD_PRELOAD into binaries to hook into libc functions whilst creating a layer which accepts inputs from mirrord-agent, which are then used to hydrate the hooked libc functions. I spend time in this article to explore this trying to intuitively understand what's going on.

47.

"Let's hook up " – said every LD_PRELOAD(vibhavstechdiary.substack.com ↗)

8 points · by waveywaves · 2y ago · 1 comment

comment 2y ago · link · parent

Have a new entry on mirrord (https://mirrord.dev/) and how it mirrors a process from your local machine to Kubernetes. In this post I particularly talk about the mirrord agent but in the subsequent one, I will also be discussing about the tools you need to employ if you had to make this possible for yourself. Mirrord mirrors (and can steal) traffic from your Kubernetes environment to a local process which is the coolest part about it. Can't wait to talk more about it in the next one.

49.

Mirrord Mirrord on the wall, who's most processed of them all(vibhavstechdiary.substack.com ↗)

12 points · by waveywaves · 2y ago · 4 comments

50.

Supernatural Abilities of a Virtual Kubelet(vibhavstechdiary.substack.com ↗)

1 points · by waveywaves · 2y ago · discuss

51.

Kubernetes Resource Model, Controller Pattern and Operator SDK Refresher ↻1(vibhavstechdiary.substack.com ↗)

1 points · by waveywaves · 2y ago · discuss

comment 2y ago · link · parent

Exploring Virtual Kubelets in Kubernetes: Part 1

53.

Scheduling Simulations and Ghosts in the Cluster(vibhavstechdiary.substack.com ↗)

1 points · by waveywaves · 2y ago · 1 comment

54.

Deep dive into components required to run a air-gapped Kubernetes cluster(vibhavtechdiary.substack.com ↗)

3 points · by waveywaves · 2y ago · discuss

123