frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Introduction to Computer Music (2009) [pdf]

https://composerprogrammer.com/introductiontocomputermusic.pdf
147•luu•7h ago

Comments

DougMerritt•6h ago
This appears to be mercifully shorter and less intimidating than the must-have bible, "Curtis Roads. The Computer Music Tutorial. MIT Press, Cambs, MA, 1996".

It says it was originally published by Wiley in 2009, and the rights reverted to the author in 2025, whereupon the author released it on the net for free.

Slow_Hand•4h ago
If someone wanted to start making computer music I'm not sure I'd recommend this or Curtis Roads' book as a starting point.

These aren't resources for getting started. They're more like encyclopedias for learning about DSP and tech once you've established the fundamentals of music and sequencing.

If a beginner wants practical knowledge for making records with electronic instruments I'd give them a DAW, teach them to record and sequence, teach them basic music theory, and then point them to something like Ableton's synthesis tutorials that will teach them about oscillators, envelopes, filters, LFOs, and basic sample manipulation.

That's 80% of the necessary skills right there.

arn3n•6h ago
I often see people frame music as mathematical manipulation or try to approach music making from a “first principles” approach, where those principles are mathematics and physics. But watching musicians talk about making music, I seldom see any discussion of the underlying math, and instead see discussions of timbres, instruments, and stylistic/historical influences; musicians who make good music seems to believe “first principles” involves historical knowledge and a well-listened ear, and nothing involving math. My question is: Is thinking about music as applied mathematics a good way to create good music? Or is it just the most easily digestible model of music for the crowd on this site?
xgulfie•6h ago
Thinking about music mathematically is at least a good way to understand music
nuclearnicer•6h ago
Wonderful question. I suspect it's partially the culture issue you point to, but also a practical issue of composition. If we decompose sound into the basic waveforms, similar to the subject pdf on page 18, we then have parts that we can reassemble. We can take the defense-funded DSP math of the likes of a John Cooley or a John Tukey and build an engine for assembling the parts of sound.

All this being said, I think that's a process of convenience and a historical path not a absolute constraint. We have some more flexible means of communicating with the machines today. And I strongly encourage someone to work on a new UI for computer music. "Jazz trio piano, upright bass, and drums. start drummer laid-back, piano blowing over the changes, then piano on top."

gizajob•2h ago
This is the kind of UI people should be building.

https://youtu.be/3poN6FDyB28?is=QjDzlmRQCMMbP_lS

What you wrote described an output, not a UI.

tclancy•5h ago
I am the least musical person I know, but I can help you out here. Math? John Coltrane has you covered. https://www.americanjazzmusicsociety.com/blog/john-coltrane-...
SanjayMehta•5h ago
> nothing involving math.

It's like Escher; he didn't have any clue that his intricate work would excite mathematicians and crystallographers.

Mandatory reference to GEB

bikitan•5h ago
Understanding the soul of music and creativity at a mathematical is something that not that many people are trying to do. But there is an entire world of technology that underpins modern music and sound that is built soundly on math, like digital recording digital signal processing, synthesis, physical modeling, and plenty of other stuff, and this seems to be what the book's focus is.

Sure, there have been plenty of attempts to distill music to a mathematical essence. Certainly the ancient Greeks tried this, and traditional counterpoint resembles math in a number of ways. But at the end of the day, mathematical descriptions of math and music theory more generally are more useful as descriptive tools to help give language to what people are doing musically and to understand why we perceive some things as sounding better than others.

Starting with numbers can be good in some respects, like understanding the circle of fifths or how scales are built out of intervals, how chord progressions and harmony work and how to reharmonize, all of which can be augmented with a solid conceptual understanding. But at the end of the day, your ear and creative spirit are your primary asset when it comes to creating good music. This is why computer-generated music has been so bad up until AI took over. Great for building arpeggiators or backing tracks, but good luck creating a beautiful melody in a purely numerical rule-based system.

Slow_Hand•4h ago
In short: Not really.

As another commenter below has said, "mathematics might be a useful way to understand music", but it's not how compelling music is made.

Mathematics are fundamental to scales and the harmonic series, and knowing about them will help you refine certain choices, but it's not going to help you write a dramatic melody or an emotionally resonant chord progression, or play an energizing rhythm, even if there are mathematical explanations sometimes.

Good music comes from being a good listener, having a strong sense of what's possible, where it could go, and then delivering something surprising. Telling a story with your melody and supporting the arc of that gesture with harmony that accentuates or contrasts it.

Again, there's a mathematical explanation for harmony and dissonance, but players aren't thinking that granular. They're operating at a higher level of abstraction one, two, or three levels above that: They're thinking about telling a story, evoking an emotion, and exciting an audience in the moment.

tossandthrow•4h ago
Likely historically true, but not anymore.

As a software developer I see that LLMs are better at the "craft" of making software.

Software developers training are overwhelmingly analytical.

Musicians will experience the same. That the quality of Ai generated music is superior. But it will come more as a chock for the reasons you explain.

rxatic•1h ago
Musicians are already experiencing this. The likes of Suno are churning out high quality songs with only a minimal amount of prompting material.

One can roughly prototype a song, giving it the structure, melody, harmony, rhythm, lyrics that a finished song might have, upload it and request a cover in a particular style. The output will often resemble a highly competent human performance.

jmyeet•3h ago
It doesn't take that long to learn to read sheet music (or tabs especially) and you could treat it like just playing a sequence of notes but you're never going to get far that way. You need to understand why certain notes go together. Some people have done that without theory but you're going to get much further with even some basic theory.

Think of it this way: if you first saw the word "HELLO". You could deconstruct that and remember that there are 11 lines and 1 circle but that's not how you learn to read or write. You learn letters, which are collections of lines. So you learn the concept of "H" and it having a sound and that it is 3 lines. You then learn to put them together and how you can sound out something thats's written and with varying degree (depending on language) take something said and write it down.

Music theory is like that. Sheet music may be a bunch of circles and lines on a sheet but really it's describing keys and usually a chord-progression. Some sheet music will explicitly just list the chords at the top like A, Em, Asus4, etc.

The 12 notes are constructed from harmonics, specifically 2:1 and 3:2. This part is maths. But the frequencies are adjusted slightly in a system called "equal temperament" where the ratio of 2 adjacent notes is the 12th root of 2.

From there you generally play a subset of those notes (often 7). That's called a scale (eg major or minor scale). The chords in that scale can then be identified by a Roman numeral within a key. So the I chord in the C major scale is a C. The IV chord is the F. Depending on the starting note of the scale you'll get sharps (#) and flats (♭) to denote that they are a different pitch. An easy way to remember this is that the white keys represent those whole and half steps with just the white keys (starting from C). As an aside, so does the A minor scale.

Why do I say all this? Because a huge amount of modern music is simply a I-IV-V chord progression within whatever scale you're using. So if you know a little theory, you can choose a key and a chord progression that will inherently sound nice together. There's more to it of course but understanding what a key is, what chords are and what a chord progression is is a pretty good start.

nxor3•3h ago
I don't agree. I grew up with piano and had music friends all through my life. Classical music requires a certain level of math ability. Modern musicians scorn this and frankly it shows.
Intermernet•1h ago
Many classical musicians have only a cursory understanding of mathematics. Many modern musicians are pushing the boundaries. There's a reason there's a genre named "math rock". Also, Jazz probably pushed the maths of music beyond classical music. As a last example, listen to some Meshuggah :-)
benrutter•3h ago
> Is thinking about music as applied mathematics a good way to create good music?

As an instruction, I think clearly not, the fact that lots of musicians aren't mathematical at all but create great music seems to prove it to me.

But it is interesting to think about musicians who do seem to think about music this way. Bach is definitely a good example where the system of counterpoint is very complex. I'm not sure if she'd describe herself in these terns, but I've always got the impression Laurie Speigel thinks about music a little like that too. Then there's stuff like Coltrane's Giant Steps, where the whole piece is based around a sort of music theory "trick".

So maybe not generally, but there's definitely some awesome music out of that kind of relationship.

rewgs•3h ago
I'm a lifelong musician, went to music school to study jazz and orchestration, was a professional film composer for 15 years prior to pivoting to programming. I've read quite a few books on the intersection of math and music.

And not once have I ever felt that these so-called intersections were anything other than contrived.

Of course we can interface with music from a mathematical perspective, but that doesn't mean that we should or that there's anything particularly illuminating to gleen from doing so.

Beyond the very basic math (honestly even that's perhaps too strong a word -- just because something is expressed in numbers doesn't make it _math_) of time signatures and some harmonic concepts up to maybe some of Slonimsky's work, doing so is IMO a fool's errand that exists only to fill space on a TEDx stage.

gizajob•2h ago
No. Create good music from the principles of creating good music, then, a few years down the line, add maths if you really need it.
IndySun•2h ago
tbf the essay is clearly titled 'Introduction to Computer Music', and not 'Introduction to Music'.
DavidPiper•2h ago
It sounds pedantic, but I think it's important: maths and physics are often used to describe sounds, their relationships and emergent properties through combination. Maths and physics aren't ever really used to describe music.

It's like telling someone they can paint a masterpiece because they understand Fe4[Fe(CN)6]3 makes an aesthetically pleasant blue pigment.

thomasahle•2h ago
Good musicians care about music theory / “first principles” as much as good writers care about language theory / grammar.
codeulike•1h ago
Maths and physics are a terrible way to learn the artistic side of music, but if you are interested in "why does a fifth chord sound nice" or "why are the black and white keys on a piano in that particular pattern" you can get interesting (partial) answers by looking into the maths of frequency ratios and the physics of overtones and how they affect the cilia of the inner ear. Music differs between cultures but there are some universals such as the Octave (edit: by which I mean doubling of frequency, not how its divided up) and nearly all cultures have some form of music ... There is something universally human about it, and so its a doorway to studying how our minds work.
defrost•1h ago
> but there are some universals such as the Octave

Universal in the sense that a number of rocks or a number of sheep can be doubled just as a frequency can?

The notion that there are 8 sub divisions to a doubled frequency interval isn't universal. Balinese Gamelan doesn't even neccessarily have an agreed number of "notes" in an "Octave" from one village to the next.

Intermernet•1h ago
There aren't 8 subdivisions in an octave in western music either. Well, there are in any given scale, but there are also many scales. "Octave" is a misleading term. Given that it's just a doubling of frequency, the term is sort of as good as any other, and that douibling exists in pretty much all cultures that have developed string, pipe or other resonant body based music (including hitting hollow logs and plucking vibrating reeds / sticks / tines).

It's pretty much the foundational idea of any modality. No matter how you divide it up, the purest harmony is doubling or halving.

uwagar•1h ago
powers of 2 seem to work well in many things. in rhythm too. so dont be so quick to dismiss.
codeulike•1h ago
Universal in the sense that a number of rocks or a number of sheep can be doubled just as a frequency can?

Yes thats what I meant, the doubling of frequency. It might seem trivial but the fact that doubling frequency sounds "right" to humans is actually quite interesting. Why does it sound "right"?

sheiyei•42m ago
Interference is most of the answer. With frequencies f and 2f you get the smoothest interference patterns, even if the tones have a lot of harmonics. This applies reducingly to increasingly fractional ratios.
tshaddox•43m ago
The commenter presumably was talking about octave equivalence, which is reportedly present across all or nearly all historical musical cultures that we know about. It’s also supposedly present in some other mammals.
defrost•30m ago
reportedly present, yes .. but the debate is still hot on universal.

I was asking to tease out some PoV perspective, again Gamelan doesn't neccessarily have powers of two, or 12, etc divisions of a doubling (or Octave, if we're using that term); it's a non western style of percussion that has a suprising number of local variations (it's essentially near unique to Balinese culture) in divisions and tunings.

The Octave wikipedia entry includes:

  Octave equivalence is a part of most musical cultures, but is far from universal in "primitive" and early music
but gets woolly on examples.

Cheers for the response, appreciated.

Kiboneu•1h ago
Why not both approaches? Creativity is not just making the most use of what you have but also the most of what you are.
ablanton•6h ago
I'm so happy to see Nick Collins taking this on. If you haven't seen his book, Handmade Music, it's an excellent book for music projects. This contribution looks exceptional as well.
calny•6h ago
I was reading up on the author and saw this interesting bit[0]:

> An algorave (from an algorithm and rave) is an event where people dance to music generated from algorithms, often using live coding techniques. Alex McLean of Slub and Nick Collins coined the word "algorave" in 2011, and the first event under such a name was organised in London, England. It has since become a movement, with algoraves taking place around the world.

[0] https://en.wikipedia.org/wiki/Algorave

florilegiumson•5h ago
Nicolas Collins is actually a different person: https://www.nicolascollins.com/handmade.htm
ChrisArchitect•6h ago
A similar endeavour,

Introduction to Computer Music, by Prof. Jeffrey Hass

https://news.ycombinator.com/item?id=44744578

p1esk•6h ago
Wow, this book has been published in 2025, and it has zero mention of AI generated music. Not saying it's a bad thing - from the table of content it covers a lot of important fundamentals, but ignoring the elephant in the room is... weird.
mb7733•6h ago
It wasn't published in 2025. It was published in 2009 and the rights reverted to the author in 2025, who released it for free.
p1esk•6h ago
Oh ok, makes sense then
ChrisArchitect•6h ago
The info page, perhaps a better url for submission instead of the large/hugged PDF

https://composerprogrammer.com/introcompmusic.html

Dusseldorf•5h ago
Amusing to see how attitudes toward AI change over time. On page 6, part of the original text has a footnote apologizing to readers far in the future for outdated speculations, then mentions that future readers "may even be an artificial intelligence rather than a human, how wonderful!"

But just a bit before that in the foreword written in the present day, bars AI scrapers from reading or referencing the materials under any circumstances!

Anyway, this seems fantastic and I'll definitely be spending some time diving in.

pwython•5h ago
> then mentions that future readers "may even be an artificial intelligence rather than a human, how wonderful!"

My first thought seeing this post was, I need to find more literature like this, fine-tune a model with that + Logic Pro documentation, then give it an MCP to control Logic Pro and see if it can be my music production assistant.

colkassad•5h ago
I love the world of music production. I started with Ableton Live six years or so ago and it's been a wonderful hobby. It has such a vibrant cottage industry of plugins (sampled instruments, synthesizers, effects, etc) thanks to the VST standard.
IndySun•1h ago
colkassad

I work professionally with music, including using ableton. I do create but don't sell/adverise, I'm strictly 'backstage'. I love everything about creating music, less so for reading about music (reviews, critiques, dissecting) though there are occasional exceptions. Are you putting your creativity online publicly?

adultSwim•5h ago
I enjoyed Miller Puckette's Theory and Techniques of Electronic Music, using Pd. https://msp.ucsd.edu/techniques.htm
NetMageSCW•2h ago
Reminds me of starting college and photocopying digitized instrument wave forms (e.g. guitar string pluck) and then feeding them to a 6502 subroutine that output the waveform to the 8-bit companding DAC in my OSI C2-4P computer from a Basic driver that would play different notes through for songs.
chaosprint•2h ago
Note: Nick Collins (the author of this book) and Alex McLean created Algorave. The time I spent learning from the Algorave community was crucial to my later work on Glicol (https://glicol.org/).

Btw, I have a feeling that if you want to learn about computer music, you can send the PDF to LLM and ask what the chapter is about and how to represent it using csound or supercollider.

My experience is that with computer music, you have to keep experimenting and listening in order to truly understand and innovate.

Skills to construct and read docs following the progressive exposure principle

1•Felix-Zhenghao•1m ago•1 comments

High meat consumption linked to lower dementia risk in genetic risk group

https://news.ki.se/high-meat-consumption-linked-to-lower-dementia-risk-in-genetic-risk-group
2•tannhaeuser•6m ago•0 comments

Self-Employed

1•mjuhler•8m ago•0 comments

Web3 project technical analysis Skill for AI agents

https://clawhub.ai/one0000u/web3tech
1•0xmrone111•13m ago•0 comments

Apple Expands Age Verification to Singapore and South Korea

https://reclaimthenet.org/apple-expands-age-verification-to-singapore-south-korea
1•Shank•14m ago•0 comments

Talk like caveman

https://github.com/JuliusBrussee/caveman
1•tosh•17m ago•0 comments

Show HN: I built an EAT skill that lets an agent place food delivery orders

https://github.com/mvksims/eatcli
1•maxshadurskiy•19m ago•0 comments

Goldman Sachs: biggest oil crisis in history is about to hit

https://bsky.app/profile/chriso-wiki.bsky.social/post/3miqdf2v6i52w
1•doener•23m ago•0 comments

Causes and Consequences of Income Inequality: A Global Perspective (2015)

https://www.imf.org/en/publications/staff-discussion-notes/issues/2016/12/31/causes-and-consequen...
1•doener•26m ago•0 comments

Kylor

1•kylor•26m ago•0 comments

The Future of Adult Entertainment: Personalized, AI Content

https://unbound.video/landing4
2•jadebound•28m ago•0 comments

Build web apps for smart glasses

https://hub.evenrealities.com/docs/getting-started/overview
1•mozz100•30m ago•1 comments

show HN:I built a GDPR consent manager for agencies (one dashboard, 30 domains)

https://www.consentify.app/en
1•aaresvictor•32m ago•1 comments

Google's ZKP-hidden quantum attack

https://adlrocha.substack.com/p/adlrocha-googles-zkp-hidden-quantum
1•adlrocha•34m ago•0 comments

Scan for secrets in files you plan to share

https://github.com/simonw/scan-for-secrets
2•pretext•35m ago•0 comments

In Hungary, the First Post-Reality Political Campaign

https://www.theatlantic.com/ideas/2026/03/hungary-first-post-reality-political-campaign/686565/
4•rwmj•37m ago•2 comments

Simpson's paradox demonstrates how counterintuitive statistics can be

https://www.scientificamerican.com/article/how-a-statistical-paradox-can-make-research-findings-f...
4•bryanrasmussen•38m ago•1 comments

Reverse engineering BLE IoT tracking networks

https://github.com/AndriiKempa/BLEIOT/discussions/35
2•KempaAndrii•44m ago•0 comments

Ask HN: What's your favourite piece of Linux lore?

1•Tinkeringz•47m ago•0 comments

'Everyone now kind of sounds the same': How AI is changing college classes

https://www.cnn.com/2026/04/04/health/ai-impact-college-student-thinking-wellness
6•skanderbm•48m ago•1 comments

Lucene HNSW performance: A deep dive into the OS page cache

https://opensearch.org/blog/lucene-hnsw-performance-a-deep-dive-into-the-os-page-cache/
1•swq115•48m ago•0 comments

"The scariest movie of the year, except it's a documentary." [video]

https://www.youtube.com/watch?v=xkPbV3IRe4Y
1•kaizenb•51m ago•0 comments

How Plausible Is 'Project Hail Mary'? Astrophysicists Have Thoughts

https://www.nytimes.com/2026/04/04/movies/project-hail-mary-scientific-accuracy.html
3•saikatsg•53m ago•0 comments

A game world happens through command-line commands inspired by stardewvalley

https://github.com/rustq/tinydew
2•meloyc•54m ago•0 comments

LinkedIn scans for 6k Chrome extensions, collects data

https://www.bleepingcomputer.com/news/security/linkedin-secretly-scans-for-6-000-plus-chrome-exte...
2•anonhaven•55m ago•0 comments

Ngx-vflow – node-based editor library for Angular

https://www.ngx-vflow.org/
1•mangilev•58m ago•0 comments

Satsgate: Monetize AI Agents and APIs with Lightning L402

https://github.com/Mike-io-hash/satsgate
1•janandonly•1h ago•0 comments

Show HN: ImPlot v1.0 – 6 years of Immediate-mode plotting for Dear ImGui

https://github.com/epezent/implot
1•brenocq•1h ago•2 comments

Claude Peptides – slash commands to cut Claude Code token usage by 73%

1•alchaka•1h ago•2 comments

Leaving Middle East Till Things Cool

https://rozumem.xyz/posts/13
1•rozumem•1h ago•0 comments