Skip to Content
Learn Haskell by Example
book

Learn Haskell by Example

by Philipp Hagenlocher
December 2024
Beginner content levelBeginner
456 pages
13h 37m
English
Manning Publications
Content preview from Learn Haskell by Example

11 Programming musical compositions

This chapter covers

  • Constructing a polymorphic data structure that contains data from different types
  • Interpreting complex data structures to compute more information
  • Implementing a domain-specific language within Haskell

In the last chapter, we built the basis for a software synthesizer. We have introduced types to abstractly represent audio signals and pitch information. By using the HCodec library, we were able to write our audio data to the filesystem.

With the technical details taken care of, we now can talk about composing within our program. We obviously do not want to write down notes on a piece of paper; we want to do it directly within our program. Essentially, our compiled Haskell binary ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Get Programming with Haskell

Get Programming with Haskell

Will Kurt
Haskell in Depth

Haskell in Depth

Vitaly Bragilevsky

Publisher Resources

ISBN: 9781633438934Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link