Go to Post It's that science and technology inspiration stuff - never know where it'll take you. :) - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-12-2003, 09:34
SuchitL SuchitL is offline
Registered User
no team
 
Join Date: Dec 2003
Location: Virginia
Posts: 1
SuchitL is an unknown quantity at this point
Lightbulb Making sound in JAVA

Hey everybody,
I've got a wierd idea and I want to try it out in Java. This is not for the FIRST competetion, but just for fun.

I have heard that in Java, we can produce any sound with a given frequency. Can somebody help me out with this. I want to try it out. I want to make an instrument in which we can press different keys to produce different sounds.

Thanks, in advance.
  #2   Spotlight this post!  
Unread 29-12-2003, 14:24
Alfred Thompson's Avatar
Alfred Thompson Alfred Thompson is offline
Adult troublemaker
FRC #0811
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Danville, NH
Posts: 254
Alfred Thompson has a spectacular aura aboutAlfred Thompson has a spectacular aura about
Send a message via AIM to Alfred Thompson
Re: Making sound in JAVA

Look into the Javax.sound classes.
  #3   Spotlight this post!  
Unread 31-12-2003, 05:39
sevisehda's Avatar
sevisehda sevisehda is offline
Registered User
#0666
 
Join Date: Jan 2003
Location: The South
Posts: 215
sevisehda is an unknown quantity at this point
Send a message via AIM to sevisehda
Re: Making sound in JAVA

I've never looked into creating sound in JAVA. However I do know its possible to create a system beep, or something close to it. Just use a \7 as you would a \n for a line return.


Example:

public class beep
{
public static void main (String[] args)
{
System.out.print("\7");
}
}
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with post production we lost sound horsefarmer 3D Animation and Competition 2 19-02-2003 21:26
Java Books Yan Wang Programming 1 27-12-2002 16:26
Making an entrance... Hymnson Championship Event 0 16-04-2002 22:20
Teams with cool sound system on their robot... Lethi86 Regional Competitions 2 18-03-2002 01:35
No Java for XP Kyle Fenton Chit-Chat 21 23-07-2001 20:15


All times are GMT -5. The time now is 18:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi