JavaScript for sound artists : learn to code with the Web Audio API /
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 app...
Clasificación: | Libro Electrónico |
---|---|
Autores principales: | , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Boca Raton :
Taylor & Francis, CRC Press,
2017.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Half Title; Title Page; Copyright Page; Contents; Preface; Acknowledgment; 1. Overview and Setup; What Is a Program?; What Is JavaScript?; HTML, CSS, and JavaScript; What Is a Web Application?; What Is the Web Audio API?; Setting Up Your Work Environment; Setup View in Browser for Windows; Setup View in Browser for Mac; How to Create Code Snippets; Accessing the Chrome Developer Tools; Troubleshooting Problems and Getting Help; 2. Getting Started with JavaScript and the Web Audio API; Hello Sound Program; Variables; null; Documenting Your Code with Comments.
- Exploring Variables with an Oscillatorconsole.log(); String; Built-In String Methods; toUpperCase(); toLowerCase(); charAt(); replace(); slice(); The length Property; Numbers; How to Determine the Data Type of a Variable; Examples of Arithmetic Operators; Examples of Precedence; Math.min() and Math.max(); Math.ceil() and Math.floor(); Math.random(); Math.abs(); Number-to-String Conversion; Arrays; push(); pop(); shift(); unshift(); concat(); Summary; 3. Operators; What Are Operators?; Assignment Operators; Assignment; Addition Assignment; Subtraction Assignment; Multiplication Assignment.
- Division AssignmentModulo Assignment; The Boolean Data Type; Comparison Operators; Equality Operator; Strict Equality Operator; Greater Than and Less Than Operators; Greater Than or Equal to Operator; Less Than or Equal to Operator; Not Equal to Operator; Strict Not Equal to Operator; Logical Operators; The Logical AND Operator; The Logical OR Operator; The NOT Operator; Summary; 4. Conditional Statements and Loops; Conditional Statements; The if Statement; The switch Statement; Ternary Operator; Loops; for Loops; Using for Loops with Arrays; while Loops.
- When to Use for Loops and When to Use while LoopsSummary; 5. Functions; Functions-A Simple Example; Parts of a Function; Function Expressions; Abstracting Oscillator Playback; A Working Effects Box Example; The Arguments Object; Function Scope; Why You Should Always Declare Your Variables with var; Variable Hoisting; How Hoisting Affects Functions; Anonymous Functions; Closures; What Is a Closure?; Callback Functions; Working with JavaScript's Built-In Callback Functions; filter(); map(); Recursion; Summary; 6. Objects; JavaScript Data Types; Looping through Objects.
- When to Use Objects Rather Than ArraysHow to Check If an Object Has Access to a Particular Property or Method; Cloning Objects; Prototypal Inheritance; The ""this"" Keyword; The bind Function; Summary; 7. Node Graphs and Oscillators; The AudioContext() Method; Node Graphs; Oscillators; The stop Method; The onended Property; How to Stop Oscillators and Restart Them; The type Property; The frequency Property; The detune Property; Summary; 8. Using HTML and CSS to Build User Interfaces; What Is a User Interface?; HTML; Explanation of the HTML Template; Understanding HTML Elements.