Readit News logoReadit News
dberst commented on Show HN: Web Audio Spring-Mass Synthesis   blog.cochlea.xyz/string.h... · Posted by u/cochlear
danbmil99 · 6 months ago
Very cool! I've often wondered whether one could procedurally generate sounds of objects interacting in a physics engine? This approach seems like a good place to start.
dberst · 6 months ago
You (or anyone interested in sound/physics/code) may find this video / series interesting

https://youtu.be/RKT-sKtR970?si=qvTXK6YSMsPaE-GE

dberst commented on Learn perfect pitch in 15 years   moderndescartes.com/essay... · Posted by u/yuppiemephisto
carey · 9 months ago
You have a fencepost error; the notes in Western music in equal temperament are C, C♯/D♭, D, D♯/E♭, E, F, F♯/G♭, G, G♯/A♭, A, A♯/B♭, B, then c an octave higher is the thirteenth.
dberst · 9 months ago
Ah thank you for the correction, I'm just a hobbyist and have not practiced in a few years
dberst commented on Learn perfect pitch in 15 years   moderndescartes.com/essay... · Posted by u/yuppiemephisto
laurieg · 9 months ago
Not quite music, but I had quite the adventure learning pitch perception as it applies to languages.

As an adult I learnt to speak Japanese. Japanese has a pitch accent that is used to discriminate certain words. For example 箸 (chopsticks) and 橋(bridge) are both "hashi" but with a different pitch accent. Event though I spoke Japanese for years I couldn't hear the difference. With isolated words spoken slowly and carefully I could maybe perceive some difference, but in normal speech at normal speed it just wasn't there. Even without this I could have normal conversations without issue so it didn't bother me too much.

One weekend I sat down and spent the entire weekend listening to words and guessing the pitch accent. Hear word, guess pitch accent, check answer. I must have spent a good 10+ hours doing that. Thousands and thousands of words. After a while I could actually hear the difference. For me it didn't feel like a difference in pitch, more like a subtle difference in emphasis. It's a very hard feeling to describe. It kind of feels like learning to see a new color. It was always there but you never noticed it before.

Another goal of mine is to learn relative pitch for music. There are training apps out there and I'm convinced that if I do a similar amount of practice on mass I will be able to hear the difference between a fourth and a fifth and so on.

dberst · 9 months ago
I think you could definitely do the same thing to learn relative pitch. In western music theory there's generally only 12 notes. And #1 and #12 are the same, an octave, which many people can recognize implicitly

Furthermore, while a piano might have 88 keys (still doable with practice) most actual music rarely jumps more than an octave or two.

Generally, music is also further restricted to a key/mode of 8 notes, again with 1 and 8 being the octave, which you probably already know

If I were to teach myself again, I would first find a reference for the intervals 1-8 in a major key and in a minor key. Or learn the full 12 at once if that's more sensible to you. For example the main theme from "Jaws" is a minor 2nd (2/12. Or the song for Happy Birthday (in the USA) starts with a major 2nd (3/12). I had a few more examples, but this Wikipedia article seems to have far better information than I could give you https://en.wikipedia.org/wiki/Interval_recognition

You could also just try to listen to music, possibly at half or quarter speed (easy to do on YouTube), and try to write down the notes, and checking your answers, I'm sure that could work.

Best of luck!!

dberst commented on Learn perfect pitch in 15 years   moderndescartes.com/essay... · Posted by u/yuppiemephisto
rybosome · 9 months ago
I suppose I have perfect pitch, in that I can more often than not:

  * aurally identify key signatures
  * aurally identify chords
  * sing a given note on command
It wasn't until I was into my early twenties that I could do this. For me, the single biggest stepping stone was building the connection between what I could hear in my head from a song that I remember clearly with the underlying music theory.

Specifically, building up a library of knowledge regarding the key signature of songs I liked:

  * Pink Floyd's "Comfortably Numb" is in B minor
  * The famous motif in Beethoven's 5th is in C minor
  * Blues Traveller's "Hook" is in A
  * Regina Spektor's "Eet" is in D-flat
  * Nirvana's "Smells Like Teen Spirit" is F minor
  * etc.
Then, make connections based upon that. Want to sing a B? Just recall the opening, sustained keyboard chord in "Comfortably Numb". Huh, The Beatles "Across The Universe" sounds tonally like "Eet" - I guess it is also in D-flat.

A simple way to do this is to make playlists for a given key, which helps reinforce the sense of shared tonality across songs.

dberst · 9 months ago
I'd be happy to see any "songs all in the same key" type playlists if anyone wants to share one

I'm a programmer interested in music visualization and it would be handy to have a few of these

dberst commented on Ask HN: What would you preserve if the internet were to go down tomorrow?    · Posted by u/gooob
orionblastar · 10 months ago
I already downloaded collections of various ROMs for use in emulators along with the emulators to use them. These ROMs don't need the Internet and have no DRM in the emulators.

My Steam collection won't work because it needs the Internet and DRM to work.

dberst · 10 months ago
I've used the emulator "Retroarch" on the Steam Deck and had good success playing with it in offline mode. It has a bit of a learning curve, but it's been a great fit for me
dberst commented on Ask HN: What would you preserve if the internet were to go down tomorrow?    · Posted by u/gooob
orionblastar · 10 months ago
You can download Wikipedia using instructions on this website: https://www.howtogeek.com/260023/how-to-download-wikipedia-f...
dberst · 10 months ago
When I did this a number of years ago, and it was only around 5-6GB, or about 20GB with all the images. I also added about 4GB for windows, android, iOS, Linux, and Mac OS apps to parse/view the data. All of that fits on a 32GB flashdrive that I used to keep on my keychain but currently is in my glove compartment I think.

It sparks some amazement in me still to wrap my head around the reality of so much information in a thing the size of my pinky. Or the size of my pinky nail if you use a micro SD card. And yeah, just took a weekend of downloading and setting it up, and flashdrives/microsd cards are easily found at department stores, or even gas stations sometimes.

Even disregarded any potential doomsday utility, the amusement/amazement it's brought me was well worth the modest time/money it took. I hope more people give it a try

dberst commented on Disposable vapes to be banned in England and Wales   bbc.com/news/articles/cd7... · Posted by u/nithinj
changing1999 · 10 months ago
How would an additional tax address this? Paying more would hardly reduce usage, and definitely won't incentivize users to dispose of vape pens more responsibly.
dberst · 10 months ago
I can imagine a tax so high that it's effectively a ban, and a tax half that size that might be a compromise between black and white ban/no ban
dberst commented on Synchronizing Pong to music with constrained optimization   victortao.substack.com/p/... · Posted by u/platers
montebicyclelo · a year ago
Very cool! As a further variation on this idea, I'm imagining training a reinforcement learning agent on atari games / super mario, but with an additional music-based reward/input, to try to get a "musical" looking playthrough... (Not sure how good it would look / whether it would be worth it though...)
dberst · a year ago
I'm a novice at machine learning, but Open AI made a python library for reinforcement learning in video games, and a fork of it is still actively maintained [1]. It's been a few years, but I remember being able to get it up and running in a day or two (maybe a weekend). It used the Retroarch emulator, which is compatible with a huge number of emulators and consoles.

https://github.com/Farama-Foundation/Gymnasium

There also SethBling's excellent video on YouTube about machine learning specifically with Super Mario World:

https://www.youtube.com/watch?v=qv6UVOQ0F44

I encourage you to give it a try! I feel that video games are a bit underrated by current AI buzz, I think there's lots of potential for a machine to learn a skill through playing a game. And lots of potential for a game being selected or even created with the goal of teaching a specific skill. However at that point maybe it's better to forego the audio and visuals and speak to the machine in text or with pure data.

On the other hand, I have seen a video about convolutional neural networks that feed on each pixel of an image. So perhaps training with sound data, or with the pixels of a spectrogram, could have some positive results. And certainly I would be amused to see a game played in time with music, or possibly even dancing with a songs melody, harmony, and story as well.

Anything that's ever been created by humans, existed first in the imagination of a human brain. And you've got one of those. A mental vision pursued and brought from the mind into physical reality is a beautiful thing, a gift for all of humanity in my eyes. I think it's quite worthwhile. But that's just my perspective. Thank you for sharing your imagination. Have a nice day

dberst commented on Chromatone – Visual Music Language   chromatone.center/... · Posted by u/samdung
dberst · a year ago
For those lost from the landing page here's a visualization that worked for me on mobile (chrome/android) https://see.chromatone.center/

There's a bunch of web apps in the "Practice" section of the site:

https://chromatone.center/practice/

https://chromatone.center/practice/experiments/

https://chromatone.center/practice/sound/

dberst commented on Chromatone – Visual Music Language   chromatone.center/... · Posted by u/samdung
dberst · a year ago
The landing page doesn't seem very exciting (on mobile at least) but the "practice" area of the site contains quite a few web apps to demonstrate the concepts. I think the basic idea is that western music uses 12 tones, and chromatone gives each of those tones a color, and uses those 12 color/tone pairs as a basis for teaching music theory in a visual way.

Here's a simple app that works on mobile (android/chrome anyway): https://see.chromatone.center/

And also here's where I found a lot of additional web apps. I'll look through them more when I'm at my PC. But just thought I'd post these here for anyone who clicked on the hn link but was underwhelmed or confused by the landing page: https://chromatone.center/practice/

https://chromatone.center/practice/experiments/

https://chromatone.center/practice/sound/

u/dberst

KarmaCake day29October 27, 2023View Original