Playing a single tone given frequency and duration...

Hi java gurus,
I need help playing a single tone when given the frequency that I want to play and its duration. Thanks in advance!
Keith Pemberton

look at Java Media Framework package API, download API at :
http://java.sun.com/products/java-media/jmf/2.1.1/specdownload.html

Similar Messages

  • Playing a sound in a given frequency and it paly at given time

    Hi,
    Iam pradeep i had a problem to produce sound at given frequency and it play at given time.
    Please help me to do that program.
    i tried using sound api

    See your other thread, same topic, thanks.

  • There is no sound generated by Beep.VI when using frequency and duration time. why? Thanks

    Hi,
    I want to generate some beeps with certain frequency and duration time.
    Setting "use system alert? (T)" true, I can hear the beep; Setting "use system alert? (T)" false, certain frequency and duration time, I can't hear any sound. Why?
    attachment is the VI.  
    LabVIEW 8.2.1, WinXP
    Attachments:
    BeepWithFreq&Width.vi ‏8 KB

    Your PC speaker only covers certain frequencies..  Mine goes as low as 37 Hz, which I cannot be distinguished from other lower frequencies.  I have to go up to 80 Hz before hearing any difference. I can hear up to 14000 Hz and barely 15000 Hz.  Now, you cannot compare this with a Hi-Fidelity sound system..
    As for setting False, it will not play anything.  So all appears normal.. And of course, if it does not play anything, the duration setting is ignored..
    R
    EDIT:  I just read the othe people's posts..  The frequency & duration settings work fine on my machine.  It is a PC, running Win-XP.  
    (Finally, I can say something positive about a PC running XP.. )
    Message Edited by JoeLabView on 08-04-2008 06:13 PM

  • Single tone Tx/Rx and DC offsets

    Using a 2920...I would like to transmit a single tone on the Tx channel (i.e. I and Q constant)...then receive that single tone on the opposite Rx channel, and measure the phase.  Since the Rx I and Q would be at DC...this makes the phase calculation rather simple.
    In my own experimentation with the shipped Tx and Rx examples though, it seems that signals around a few 10's of Hz of the carrier are attenuated.  It was suggested to me that perhaps the DC offset removal procedure in the FPGA is removing my desired signal.  If I move either the Tx or Rx frequency slightly off of the other, then the signal returns.  I and Q are at the IF obviously...and while I could still calculate phase with I and Q at an IF...it results in other undesired changes in my application (longer integration times, more processing, etc) that I'd like to avoid.
    On the other hand...some other USRP users I know have not had this issue with Tx and Rx at the same frequency.  It's possible I'm configuring the radio incorrectly (which I tried to eliminate by using the canned examples)...which is why I'd like to understand whether or not narrowband Tx/Rx is even possible.
    Any thoughts here?
    Brandon

    Hopefully, you'll see this and say "Of course"
    On the transmitter, when you change your tone frequency, you'll need to adjust your number of samples accordingly to generate a complete, continuous, waveform. If you don't, the starting point and the ending point won't line up and you'll have discontinuities when you loop back over your waveform.
    Bad
    Good
    Anthony F.
    Product Marketing Engineer
    National Instruments
    Attachments:
    discontinuous.png ‏108 KB

  • I was given a brand new iPhone yesterday and it wont play music, text tones or slide and keypad tones when it is on charge?

    My iPhone was brand new yesterday. I took it home and put it on charge and when I went to play music it wouldnt play the sound even thought the song was playing. It also wouldnt let me listen to any tones when I went to change my text tone but if the phone rings then the ringtone will play. This is really frustrating, I had to get a brand new one as the one that I was given the day before had previously been blacklisted for some unknown reason. PLEASE HELP!!

    Are you using the UsB/Charging lead that came with the iPhone
    I have this issue when charging my phone in the car when using the lead supplied with the Head Unit.
    This is due to the USB lead having the Audio connections present (for playing through the stereo)
    The downside to this being that the phone will not play any sounds out of the built in speakers as all audio is routed through the stereo

  • Measuring frequency or amplitude using extract single tone informatio​n

    Hi All,
    I'm trying to read speed of a drill and was hoping that I could use the information extracted from Extract Single Tone Information to get to the speed.  However, when I run the attached code while the drill is still off I get Inf for frequency and 0 for amplitude (the waveform chart shows numbers in the 0.21 range - see attached picture).  When I turn on the drill the signal amplitude as viewed on the waveform chart jumps to ~4 range, but the frequency continues to read Inf and the amplitude 0.  Am I missing something, or using the Extract Single Tone Information incorrectly?
    Thanks!
    Attachments:
    Drill Encoder Test.vi ‏21 KB
    Drill Turned Off.JPG ‏38 KB
    Drill Turned On.JPG ‏40 KB

    Hi,
    Thanks so much for your quick response.
    As to point 1, I actually see data come in, over time.  I could only capture a snapshot of it, hence the photo, but if I continue the run data continues to come in over time.  I believe I've fixed the array vs waveform issue (see my modified code).  I ended up with that because I was trying (out of desperation) different Analog Wave form function.  I'm seeing lots of data, but no actual numberical values for frequency of amplitude.
    Thanks again!
    Attachments:
    Drill Turned Off 2.JPG ‏42 KB
    Drill Turned On 2.JPG ‏40 KB
    Drill Encoder Test.vi ‏21 KB

  • Can't play a single downloaded video, with all updated softwares and O.S.

    Problem : Attempting to play any downloaded iTunes video content from my iTunes Library prompts me with the following message:
    Authorize Computer
    This computer is not authorized to play "any iTunes Video That You Just finished downloading.m4v".
    If you purchased this content you can open iTunes and authorize this computer to play this content by entering your Apple ID and Password.
    Cancel Open iTunes
    Now, keep in mind, iTunes has BEEN open the whole time, it was a necessary prerequisite to purchase an episode of a T.V. show from the iTunes store and download it so I could watch it before bed. So, clicking "Open iTunes", simply brings up another prompt:
    Waiting for iTunes to authorize this computer to play "The Video You Just PURCHASED and DOWNLOADED.m4v"
    iTunes will open and prompt you for a password. You will not be able to play the content on this computer until you successfully authorize it using iTunes.
    Cancel
    I decide not to cancel, and do as the Apple tells me. I wait. Id does not prompt me . . . (maybe because iTunes has been launched the whole time . . . I dunno), instead, the message just eventually disappears and iTunes is left playing a silent, grey screen for my entertainment.
    I thought to check that I was running the most current updates on all software (I am), OS 10.5.5,
    Quicktime Payer Version 7.5.5 (240)
    Quicktime Version 7.5.5 (975)
    and YES, I am running iTunes 8. Everything was playing back beautifully BEFORE I updated. NOW, I can not watch a a single purchased tv episode from 2 years ago, last week or right now.
    I am signed in as the Admin. I am the ONLY user and absolute ADMINISTRATOR of this machine.
    I authorized the computer from the store menu. I was told that it is already authorized. 2 computers out of 5.
    I quit.
    Restarted.
    Authorized.
    Opened "TV episode".
    "Not Authorized" message.
    I quit iTunes.
    Relaunched.
    Deauthorized computer.
    Quit iTunes
    Relaunched.
    Authorized computer.
    Quit iTunes.
    Relaunched.
    Opened episode.
    Not Authorized.
    so, I - Quit iTunes and any other open applications until only Finder was open.
    Choose Go > Go to Folder.
    Typed /Users/Shared/SC Info and clicked Go.
    Set finder to Column View
    Selected the SC Info folder and moved it to the Trash by choosing File > Move to Trash.
    Restarted the computer and opened iTunes.
    Authorized my computer to play my purchases.
    Already authorized.
    No Play.
    Quit iTunes and all apps.
    Repeated trash SC procedure.
    Shut down.
    Restart.
    Launch iTunes.
    De-authorised.
    Quit iTunes and all apps.
    Repeated trash SC procedure.
    Restart.
    Launched iTunes.
    Authorized.
    Opened tv episode.
    No play.
    FRACK ME!
    I've been slaving over two computers running final cut studio, logic studio 2, ableton live, NI Komplete, DJay, Traktor scratch, safari, firefox, aperture, photoshop CS3, iPhoto, Quicktime pro, Toast, text edit, acrobat, preview, reason, avmixer pro, and Riff Works for fifteen hours. I just wanted to chill with a nice old episode of BSG, that I lost in a harddrive crash a while back and now have finally been able to D.L. from iTunes, to relax off to bed. Instead, I've spent one and a half the amout of time I would have spent with my show, jumping through the help hoops and documenting all this (I don't have T.V., I hate it. iTunes is the only way I will allow myself to watch a T.V. program . . . occasionally).
    Is my brain just fried from working too hard, for too long outside the consumer realm , and missing something fundamentally obvious to iTunes users who don't work all day and night with every conceivable form of digital media? My brain is totally FRACKED now. Gotta find something to watch to unwind.

    See Chapter 2 here.

  • When playing my i-tunes library through my hi-fi via Airport Express, how can I get i-tunes to play a single album and then stop, without continuing on through my entire library. It's a problem that doesn't occur when I'm listening through my i-pod.

    When playing my i-tunes library through my hi-fi via Airport Express, how can I get i-Tunes to play a single album and then stop, without continuing on through my entire library? It's a problem that doesn't occur when listening on my i-pod.

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • Playing a single album....and that's it!

    Occaisionally, I want to play a single album and not have to listen to the songs that follow it in the music library. I want to have the experience of walking over to my old record collection, pulling down John Coltrane's A Love Supreme, putting it on the turntable and listening to it. Then if I want to listen to something else, I'll go pick something else. OK...I am obviously ignoring the annoying part about turning the record over half way through but let's just forget about that.
    Is there a way I can listen to a single album in its entirety and then have iTunes stop playing? If there isn't, Apple should come up with a way. Help me. I'm old fashioned.

    Show the Browser (View menu -> Show Browser). You will be able to select an album there, and when you play it, iTunes will play just those tracks and then stop.

  • HT2538 what do I do once it starts a single tone and rest again single tone and rests and repeats ?

    what do I do once it starts a single tone and rest again single tone and rests and repeats ?

    If you are still under warranty and/or have AppleCare, call them.

  • I need a sample vi that can plot a transfer function given zeroes and poles (It should allow the user to input zeroes and poles). It should be done in the S domain.The user should be allowed to put poles and zeroes, with frequency

    I need a sample vi that can plot a transfer function given zeroes and poles (It should allow the user to input zeroes and poles). The user should be allowed to put poles and zeroes, with frequency. DONE IN S DOMAIN.

    I have created a VI (LabVIEW 6.1) that does what you want. Note that the poles and zeros have to be entered correctly that is in Rad/s and typically with negative real part. The VI offers you all options for lin/log frequency axis, magnitude in dB or not, phase in Radians or Degrees etc...
    The VI is written with "academic" in mind, so it is not optimized for performances but (hopefully) for clarity. I hope this will work for you.
    Attachments:
    S-Domain_Transfer_Function_from_Poles-Zeros.vi ‏167 KB

  • Hi, my brand new iphone 4 will not play music through my music app but it will play videos through youtube and will play the sounds throught my games and will play text tones and facetime ect. what is wrong?

    hi, my brand new iphone 4 will not play music through my music app but it will play videos through youtube and will play the sounds throught my games and will play text tones and facetime ect. what is wrong?

    At least I'm not the only one with the issue. I was looking it up so see if others had the same problem and found a bunch of posts about it. I'm assuming it's not the phone then, it's the software. Should I bring it to the Apple Store? Replacing the phone seems stupid, because the phone isn't really the problem. It's the software! Maybe the iOS 5.0.2 will fix it???  I don't really want to wait though, it's a pain. If a lot of people have this issue it should get Apple's attention. They need to do something to fix it, ASAP!

  • How to merge to frequencies together and play it? I have a program that outputs two numbers everytime and those numbers in Hz. I want to merge those two different frequencies and play the sound.

    Hi there
    I have a program that reads from a table done in excel and finds two numbers from the table(they're different all the time). Those numbers are represented in Hz. What I want now is how to merge those two numbers as frequencies and output them and hear them from the speaker as audio. I also have the part of hearing them done but I can't figure out a way to have it connected so that it doesn't matter which numbers come up, it'll update it accordinaly. I appreciate any helpers.
    Thanks a lot

    Then I'm not sure what you're doing, or what your definition of "add" is. Here is the example I posted, with Signal 1 at 250 Hz and Signal 2 at 500 Hz:
    Message Edited by smercurio_fc on 01-15-2009 03:46 PM
    Attachments:
    add freqs.png ‏25 KB
    add freqs.vi ‏123 KB

  • Extract Single Tone.vi

    does,anyone knows how to get the diagram of the VI :Extract Single Tone
    Information.vi given un lv6i it is password protected.

    TooEagerToLearn wrote:
    My head started hurting when I opened and went deep into all the subvis. All I would like to know what does the output represent?
    1. Just the dominant frequency?
    2. Amplitude corresponding to that frequency?
    3. Phase (relative to what?)
    yes, the strongest frequenc
    Yep
    A tone is assumed to be a sine wave.  So if the first point is the positive peak, you would get 90 degrees.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Extract Single Tone Information using Flat Top Windowing

    Beginner here - Does anyone have any ideas on what would be the easiest way to create a function that would essentially perform the same function as the built in "Extract Single Tone Information.vi" only that instead of using Hanning windowing (as I noticed that this Vi does) I would be able to use Flat Top (or selectable windowing)? I basicly need to set something up that will accept an incoming Sine wave and apply FFT using Flat Top windowing then output the measured frequency and the amplitude of that frequency. I need to still be able to input the "advanced search" criteria into the VI and give it a frequency and tolerence to look for as I don't want to just look for the peak signal but at specific frequencies. 

    I am running Labview 7.1.1 (that's what my company uses and they refuse to upgrade). I can't open files built under anything newer than LV7.1.1.
    I really don't want to just do a peak search of the entire spectrum and would rather enter a specific frequency to look for and the tolerance window (find peak at say +/- 2% tolerance away from known recorded frequency. This test is targeted as a production test we will be shipping to several parteners around the world to use in production. This will be a test fixture to perform testing on electret boom microphones. The fact that it will be used in a production environment there is potential for high levels of background noise (radios, floresent lights, people talking, etc) and therefore I need as much filtering as possible to only the frequency i am trying to measure. I will be outputting a specific frequency from a speaker and recording it back through the microphone under test via a NI USB-6211 DAQ.
    Can anyone tell me if "Extract Single Tone Information fron Hann Spectrum.vi" has anything in it which would limit me to only inputting a Hann windowed FFT into the signal input of that VI? This is the VI which is password protected in my 7.1.1. copy of Labview. If it doesn't and I could feed it a Flat Top windowed FFT signal into it without problem I am golden. I can modify the other sub-vi ("FFT with Hanning") and the main "Extract Single Tone Information 1CH.vi".
    Thanks for you continued input. 
    P.S. I am fairly new to Labview (<2yrs)

Maybe you are looking for

  • How to change WebLogic Server username and password ?

    Hi, As per this url Modify users . It says In the left pane, select Security Realms. But I did not find the SECURITY REALMS, I mean where is it located ?. Besides The following page http://192.168.100.11:7001/index.jsp also get open. Also the WEBLOGI

  • Problem in Delete Records

    I want if server2 has delete record and server1 is updated same record. It should insert all information to server2 again. How can I Set Priority server 1 if record delete from server 2 and Server1 has updated same record? Thanks Sadiq Usman

  • Firefox only prints the first page of several multi-page URL's.

    When I try to print a multi page URL, it only prints the first page and identifies it as Page 1 of 1, instead of Page 1 of x. But, IE-8 prints ALL x pages of the same URL perfectly. I've noticed this exact same FF problem with certain other URL's. Th

  • DVD only fills bottom half of window

    When I try to watch a movie using DVD player, I only see the bottom half of the movie. The top half of the DVD player window is black. I used the program Pacifist to reinstall the DVD player package from a Mac OS install disk, but the problem persist

  • RABAX_STATE error.

    Hi,      The scenario on which i'm working is as follows:   WS(client) to R/3 (idoc is posted), from R/3 to MDM system and a response from MDM system to WS(client).    When i run the scenario using XIWS_httpclient i get an error "500 internal server