Join Patrick Royal for an in-depth discussion in this video My solution: Creating sound with Java, part of Code Clinic: Java.
- The first challenge that must be overcome…in this code clinic is setting up a system…to generate sound using Java code.…There are a few Java classes that can be used…to send simple sounds like beeps,…but nothing that specifically supports…the functionality we need.…Luckily, the structure of the Java programming language…makes it easy to extend the basic functions…by adding additional classes.…Every time you reference a class that needs to be imported,…Java is essentially just searching the libraries…attached to your project for that class,…and then creating a reference to the file…that contains the functionality you need.…
This setup means that it's easy to expand the basic library…by adding additional files in .jar format.…There are a lot of different Java APIs for generating music.…You can take your pick of which one to use,…depending on their functionality,…simplicity, and availability.…I chose to use the JFugue Java API to generate these sounds.…It's a relatively simple API for music programming,…and it has some very convenient methods…
Patrick introduces challenges and provide an overview of his solutions in Java. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Visit other courses in the series to see how to solve the exact same challenges in languages like C#, C++, PHP, Python, and Ruby.
Skill Level Intermediate
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S
Problem One: Exploring Lake Pend Oreille
Problem Two: Image Analysis
Problem Three: Eight Queens
Problem Four: Accessing Peripherals
Problem Five: Recursion and Directories
Problem Six: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.