User Tools

Site Tools


part_11-_sound

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
part_11-_sound [2007/06/05 13:02]
tomliar0
part_11-_sound [2007/08/30 13:53] (current)
Line 1: Line 1:
 ===== Processing Tutorial ===== ===== Processing Tutorial =====
 === Part 11: Sound === === Part 11: Sound ===
-=== -11.1: ESS ===+=== -11.1: ESS (.wav and .mp3 reading, modification and writing)===
 ESS is the main sound library that we'll be using in Processing. ESS supports MP3 files and certain types of WAV files. ESS is the main sound library that we'll be using in Processing. ESS supports MP3 files and certain types of WAV files.
 === -11.1.1: Including ESS and Loading Sounds === === -11.1.1: Including ESS and Loading Sounds ===
Line 97: Line 97:
 Every sound sample has extremes, or limits, outside of which the data will be truncated to the limits. In ESS, the extremes are -1 and 1. So, if you assign a value greater than 1 or less than -1 to a sound sample, it will be given the value 1 or -1. If you play back the sound clip, you'll hear a lot of distortion- this is called "​clipping"​. You lose a lot of sound data when clipping occurs, which leads to a static sound, so be careful. Every sound sample has extremes, or limits, outside of which the data will be truncated to the limits. In ESS, the extremes are -1 and 1. So, if you assign a value greater than 1 or less than -1 to a sound sample, it will be given the value 1 or -1. If you play back the sound clip, you'll hear a lot of distortion- this is called "​clipping"​. You lose a lot of sound data when clipping occurs, which leads to a static sound, so be careful.
  
-=== -11.2: jm-Etude ===+=== -11.2: jm-Etude ​(MIDI reading,​manipulation)===
 For MIDI clips, we use the jm-Etude libraries. For MIDI clips, we use the jm-Etude libraries.
 To understand Etude, you have to understand the object hierarchy. To understand Etude, you have to understand the object hierarchy.
Line 146: Line 146:
   * Save sound files.   * Save sound files.
  
 +=== -11.3: The Book's Classes (MIDI creation)===
 +We use the MidiPlayer class to play MIDI sounds.
 +
 +Example:
 +  MidiPlayer myMIDI = new MidiPlayer();​
 +  myMIDI.playNote(52,​250);​
 +You have to have the proper classes from the book in your sketch'​s "​code"​ folder.
 \\ \\
 Next: [[Part 12- Video]] Next: [[Part 12- Video]]
  
 Last: [[Part 10- Images]] Last: [[Part 10- Images]]
part_11-_sound.txt ยท Last modified: 2007/08/30 13:53 (external edit)