Book description
Learn how to program JavaScript while creating interactive audio applications with JavaScript for Sound Artists: Learn to Code With the Web Audio API! William Turner and Steve Leonard showcase the basics of JavaScript language programing so that readers can learn how to build browser based audio applications, such as music synthesizers and drum machines. The companion website offers further opportunity for growth. Web Audio API instruction includes oscillators, audio file loading and playback, basic audio manipulation, panning and time. This book encompasses all of the basic features of JavaScript with aspects of the Web Audio API to heighten the capability of any browser.
Table of contents
- Cover
- Half Title
- Title Page
- Copyright Page
- Table of Contents
- Preface
- Acknowledgment
- 1. Overview and Setup
- 2. Getting Started with JavaScript and the Web Audio API
- 3. Operators
- 4. Conditional Statements and Loops
- 5. Functions
- 6. Objects
- 7. Node Graphs and Oscillators
-
8. Using HTML and CSS to Build User Interfaces
- What Is a User Interface?
- Explanation of the HTML Template
- Understanding HTML Elements
- Form and Input Elements
- Comments
- Element Selectors
- Grouping Selectors
- Descendent Selectors
- Child Selectors
- class and id
- Modifying the App Interface
- Margin, Border, and Padding
- Removing List Element Bullet Points
- Font Size, Style (Type), and Color
- Centering Block-Level Elements
- Summary
-
9. DOM Programming with JavaScript
- How Does JavaScript Communicate with the DOM?
- Building the Application
- How to Trigger an Oscillator by Clicking a Button
- Toggling the Start/Stop Text
- Programming the Frequency Slider
- Changing the Frequency in Real Time
- Changing Waveform Types
- Completed Code with Waveform Selection
- Giving an Outline to the Selected Waveform Type
- Summary
-
10. Simplifying DOM Programming with JQuery
- What Is JQuery?
- JQuery Setup
- Referencing JQuery Directly
- Using JQuery from a CDN
- How to Use JQuery
- Selecting HTML Elements
- Storing DOM Selectors as Variables
- Using Methods
- Method Chaining
- The this Keyword
- Refactoring the Oscillator Player to Use JQuery
- Setting Up the Event Listener for the User-Selected List Element
- Modifying the Code in setInterval
- Summary
- 11. Loading and Playing Audio Files
-
12. Factories and Constructors
- JavaScript and the Concept of Class
- What Are Classes?
- The Factory Pattern
- Dynamic Object Extension
- Private Data
- Getters and Setters
- Constructors and the new Keyword
- Adding Methods to Constructors
- The Prototype Object and the Prototype Property
- Why Do Constructors Exist If You Can Do the Same Thing with Factories?
- Summary
- 13. Abstracting the File Loader
- 14. The Node Graph and Working with Effects
- 15. The Biquad Filter Node
- 16. The Convolver Node
- 17. Stereo Panning, Channel Splitting, and Merging
- 18. The Delay Node
- 19. Dynamic Range Compression
- 20. Time
- 21. Creating Audio Visualizations
- 22. Adding Flexibility to the Audio Loader Abstraction
- 23. Building a Step Sequencer
- 24. AJAX and JSON
- 25. The Future of JavaScript and the Web Audio API
- Index
Product information
- Title: JavaScript for Sound Artists
- Author(s):
- Release date: January 2017
- Publisher(s): Focal Press
- ISBN: 9781317334934
You might also like
book
JavaScript Creativity
" JavaScript Creativity teaches you how to use every feature of this versatile and powerful language …
book
Introducing JavaScript Game Development : Build a 2D Game from the Ground Up
Learn to build a fully-functional 2D game inspired by the 1979 Atari classic, Asteroids, using just …
book
Physics for JavaScript Games, Animation, and Simulations: with HTML5 Canvas
Have you ever wanted to include believable physical behaviors in your games and projects to give …
book
Learn JavaScript with p5.js: Coding for Visual Learners
Learn coding from scratch in a highly engaging and visual manner using the vastly popular JavaScript …