<< Chapter < Page Chapter >> Page >

Thus, the audio output provides an overview of the general shape of the graph. The data output is available for detailed quantitative analysis.

The file named Sinc01Solver .bat

Continuing with the explanation of Sinc01 , Listing 17 shows the contents of the file named Sinc01Solver.bat . (This is a Windows batch file. A file with a similar purpose on other operating systems would be different.) If you have the Java Development Kit installed on your (Windows) computer, execution of this batch file will compile and execute the file named Sinc01.java . This will create the text file containing the data that is needed by the AudioGraph program named MusicComposer10 .

The file named Sinc01Player .bat

Listing 18 shows the contents of the file named Sinc01Player.bat . (Again, this is a Windows batch file.) If you have the Java Development Kit installed on your (Windows) computer, execution of this batch file will compile the file named MusicComposer10 and execute it twice. The first execution will cause the audio to be played immediately. The secondexecution will cause the audio to be saved in a file named Sinc01.au .

The zip file that you can download contains all of the files mentioned above for all of the functions illustrated by the audio in the above list . Simply extract the contents of the zip file into an empty folder, execute the ...Solver.bat files to create the data for the functions. Execute the ...Player.bat files to hear the audio for the functions and to write the audio into output audio files of type AU.

The class named MusicComposer10

This program requires the following five classes in the same folder. Source code files for all five classes are provided in the zip file that you can download.

  • AudioSignalGenerator02
  • AudioPlayOrFile01
  • AudioFormatParameters01
  • MusicComposer10
  • AudioGraph01

The first three classes in the above list have been used in many previous modules. Therefore, I won't discuss them further in this module. However, I will explainthe last two classes in the list.

A complete listing of the class named MusicComposer10 is provided in Listing 19 . As usual, I will break the class down and explain it in fragments.

This is a general purpose AudioGraph program that reads an input text file containing numeric values for y as a function of equally spaced values for xand produces an output melody that represents a graph of that data. The values for y are read as a comma-delimited list of values and are treated as type double . The name of the text file is input as a command-line parameter. Additional details will be provided later in the explanation of the class named AudioGraph01 .

The melody can be played immediately or can be saved in an audio file of type AU for playback later. You should be able to play the audio file with anystandard media player that can handle the AU file type

Beginning of the class named MusicComposer10

The class named MusicComposer10 begins in Listing 7 . Note the description of the command-line parameters in Listing 7 . Otherwise, there is nothing new or unusual about the code in Listing 7 so there should be no need for further explanation beyond the embedded comments.

Questions & Answers

what are the products of Nano chemistry?
Maira Reply
There are lots of products of nano chemistry... Like nano coatings.....carbon fiber.. And lots of others..
Even nanotechnology is pretty much all about chemistry... Its the chemistry on quantum or atomic level
Preparation and Applications of Nanomaterial for Drug Delivery
Hafiz Reply
Application of nanotechnology in medicine
what is variations in raman spectra for nanomaterials
Jyoti Reply
I only see partial conversation and what's the question here!
Crow Reply
what about nanotechnology for water purification
RAW Reply
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
yes that's correct
I think
what is the stm
Brian Reply
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
How we are making nano material?
what is a peer
What is meant by 'nano scale'?
What is STMs full form?
scanning tunneling microscope
how nano science is used for hydrophobicity
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
what is differents between GO and RGO?
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
analytical skills graphene is prepared to kill any type viruses .
Any one who tell me about Preparation and application of Nanomaterial for drug Delivery
what is Nano technology ?
Bob Reply
write examples of Nano molecule?
The nanotechnology is as new science, to scale nanometric
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
what school?
biomolecules are e building blocks of every organics and inorganic materials.
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
sciencedirect big data base
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Accessible objected-oriented programming concepts for blind students using java. OpenStax CNX. Sep 01, 2014 Download for free at https://legacy.cnx.org/content/col11349/1.17
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Accessible objected-oriented programming concepts for blind students using java' conversation and receive update notifications?