NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Introduction to Computer Music (2009) [pdf] (composerprogrammer.com)
arn3n 7 hours 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?
_kb 20 minutes ago [-]
> 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?

It's a great way to analyse music (e.g. to categorise, understand, and communicate detail), but that does not mean it's a good way to create it. There's a lot of beauty in finding those abstractions and I think that representation appeals to a lot of people here.

Discussions about timbre, instrumentation, and stylistic influence are often symmetric to those about math. When you have 90 minutes to spare, highly recommend strapping in for a listen to https://malwebb.com/notnoi.html.

There's a lot of really incredible musicians, composers, producers, and educators that go deep on the math. There's also plenty that don't. People build mental models in different ways. That's a good thing and a big part of what makes most art interesting.

benrutter 4 hours 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.

codeulike 2 hours 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 2 hours 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 2 hours 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.

tshaddox 1 hours 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 1 hours 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.

codeulike 2 hours 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 1 hours 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.
otabdeveloper4 19 minutes ago [-]
1.5**12 is about 129.74, which is as close as you can reasonably get to a power of two.

So yes, the 12-tone scale is a universal thing - you want both octaves and fifths in your scale.

(12 is actually too much, so usually that's pared down to something like 4 or 5 or 7 tones, this is where you get cultural variation.)

uwagar 2 hours ago [-]
powers of 2 seem to work well in many things. in rhythm too. so dont be so quick to dismiss.
DavidPiper 3 hours 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 3 hours ago [-]
Good musicians care about music theory / “first principles” as much as good writers care about language theory / grammar.
Slow_Hand 5 hours 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.

Kiboneu 2 hours 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.
nuclearnicer 7 hours 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 3 hours 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.

xgulfie 7 hours ago [-]
Thinking about music mathematically is at least a good way to understand music
tossandthrow 5 hours 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 2 hours 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.

gizajob 3 hours 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 3 hours ago [-]
tbf the essay is clearly titled 'Introduction to Computer Music', and not 'Introduction to Music'.
tclancy 6 hours 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-...
rewgs 4 hours 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.

jmyeet 5 hours 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.

otabdeveloper4 23 minutes ago [-]
> I seldom see any discussion of the underlying math, and instead see discussions of timbres, instruments, and stylistic/historical influences

Music today is utter crap at all levels, this is a verifiable scientific fact.

This is probably why.

Music "theory" was invented as a critical tool (i.e., basically to enable reviewers to describe and evaluate the music of the time), not as a composition tool.

Basically, we're holding it wrong and it's doing us harm.

SanjayMehta 6 hours 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 6 hours 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.

nxor3 4 hours 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 2 hours 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 :-)
barkingcat 4 hours ago [-]
[dead]
rmnclmnt 10 minutes ago [-]
Loved this book when I was a student! This is for DSP enclined audience with a focus on musical applications. Not very in-depth if you want to develop your own plugins or DAW but still very informative
fodmap 33 minutes ago [-]
Juan García Castillejo published 'La telegrafía rápida, el triteclado y la música eléctrica' (High-speed telegraphy, the three-keyboard system, and electric music) in 1944.

https://archive.org/details/latelegrafiarapida.eltritecladoy...

Dusseldorf 6 hours 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 6 hours 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.

DougMerritt 7 hours 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 5 hours 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.

colkassad 6 hours 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 2 hours 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?

chaosprint 3 hours 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.

ablanton 7 hours 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 7 hours 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 6 hours ago [-]
Nicolas Collins is actually a different person: https://www.nicolascollins.com/handmade.htm
NetMageSCW 3 hours 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.
adultSwim 6 hours ago [-]
I enjoyed Miller Puckette's Theory and Techniques of Electronic Music, using Pd. https://msp.ucsd.edu/techniques.htm
ChrisArchitect 7 hours ago [-]
The info page, perhaps a better url for submission instead of the large/hugged PDF

https://composerprogrammer.com/introcompmusic.html

ChrisArchitect 7 hours ago [-]
A similar endeavour,

Introduction to Computer Music, by Prof. Jeffrey Hass

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

ValveFan6969 6 hours ago [-]
[dead]
p1esk 7 hours 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 7 hours 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 7 hours ago [-]
Oh ok, makes sense then
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 09:47:04 GMT+0000 (Coordinated Universal Time) with Vercel.