Musical note
A musical note is a discrete musical sound or symbol representing a pitch or rest and a duration.
Learn Generative AI with PyTorch
A musical pitch event encoded in the dataset as one of a fixed set of possible pitch values.
- How it is used
- Explains how music becomes pitch-valued data for piano-roll, multitrack, GAN, and Transformer representations.
- How deep it goes
- Defines pitch, octaves, semitones, and encodings, but defers detailed MIDI-event conversion mechanics.
- Examples
- Uses C4, F3, A4, MIDI note-on and note-off events, JSB Chorales, and 84-value one-hot pitch vectors.
- What you can do after
- Evaluate how a note moves from musical pitch to a one-hot value or indexed event used in model training.
Read how Learn Generative AI with PyTorch explains musical note →
Learn Haskell by Example
A musical note is a discrete sound event with a defined pitch or rest identity and duration in musical notation.
- How it is used
- Models pitched events and organizes them into melodies, chords, pauses, and synthesizer output.
- How deep it goes
- Explains frequency conversion, chromatic encoding, recursive composition, and concrete rendering, but stops short of heterogeneous structure design.
- Examples
- Uses concert A at 440 Hz, octave checks, named chromatic notes, recursive compositions, and a rendered melody saved as WAV.
- What you can do after
- Build it from scratch as typed pitch values, convert it to frequency, arrange it in compositions, and render playable audio.
Classic Game Programming on the NES: Make your own retro video game
A musical note is an event with a pitch and duration that can be sequenced for playback.
- How it is used
- Builds music patterns and game sound effects by sequencing timed pitches on NES audio channels.
- How deep it goes
- Explains note placement, duration, editing, release points, and slide pitches, while deferring instrument construction.
- Examples
- Uses an E5-to-F3 sliding laser zap and alternating E1/D#1 noise notes for a short explosion.
- What you can do after
- Apply it via FamiStudio to place, resize, retune, and slide notes for music or sound effects.
Read how Classic Game Programming on the NES: Make your own retro video game explains musical note →
Related concepts
- pattern tablepart of · A region of NES graphics memory containing tile and sprite pattern data.
- slide noteincludes · A slide note is a musical sequencing feature that changes a note's pitch gradually toward a target pitch.
- envelopeconfigured by · An envelope is a time-varying contour that controls a characteristic of a synthesized sound, including its amplitude, pitch, or release behavior.
- frequencyuses · Frequency is the count or rate at which an item, event, outcome, or periodic cycle occurs within a specified collection or interval.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


