Sound in a simple Equalizer

Hey there,
A couple of moths ago, I made this Swing app that demonstrates an equalizer.
Here is how it looks :
http://i250.photobucket.com/albums/gg244/varsamakos/screenshot_002-5.png
Now, I want it to be more practical. Ι want it to handle real sound.
I've been searching in forums and the web but I've got none of a specific answer.
I was told to search in Java API to find something. I found this :
http://java.sun.com/docs/books/tutorial/sound/index.html
I reckon this program is dificult for me, so I wanted to ask you is that's the classes I should read.
If anyone knows that part (handle bass, treble, balance etc via java methods), please inform me.
Cheers !
Merry Christmas to all,
Edited by: varsamakos on Dec 26, 2009 2:46 AM

If anyone knows that part (handle bass, treble, balance etc via java methods), please inform me.JavaSound will do nothing more advanced than give you byte-level access to the audio stream... you'll have to decode it into the sample stream yourself and run whatever kind of algorithms are required to calculate the equilization values yourself... JavaSound won't do anything for you.
So, to answer your question... there are no Java methods to obtain the data you're looking for (except for probably a thousand 3rd party Sound libraries that you could use that will do that stuff for you...but you'll have to google for them and figure them out yourself as 3rd party libraries aren't supported by this forum)

Similar Messages

  • Is it right to use the "sound file write simple.vi"?

    I had a problem to use the Sound File Write Simple.vi  that is it can not save the data.
    The links are shown in the following picture.
    I wonder is it right for me to use that vi like that shown in the picture?
    And why I can not save file as *.wav while I can save it as a *.txt?
    Thank you!
    Attachments:
    Image00003.jpg ‏77 KB

    No command lines do not work inside stored procedures.
    Firstly, remember that the stored procedure is running on the database server so any files it can access have to be on the server itself.
    ZIP is an operating system command, so you would have to have some java code or some other means of shelling out to the operating system to execute it, an area which I'm not to familiar with doing myself as I've never found a need to.
    Have you looked at Oracles own UTL_COMPRESS package?

  • Music player with good equatilization? [Was "Simple Equalization"]

    Hello all,
    I'm looking for a simple way to adjust treble/bass system-wide on my Arch laptop. I'm currently using alsa, but I'm open to other solutions.
    Any insight? Bonus points for KISS-compliant solutions ;-)
    Last edited by lardon (2008-12-17 12:57:24)

    I'm also trying to do the same thing, well, primarily only with mpd but I assume it would be possible to use this with almost anything. I'll post my progress here instead of creating a new thread since our goals are similar (and I've hit a brick wall)
    I installed pulseaudio, and set up my asound.rc as such
    pcm.equalized {
    type plug
    slave.pcm "equalizer";
    pcm.equalizer {
    type ladspa
    # The output from the EQ can either go direct to a hardware device
    # (if you have a hardware mixer, e.g. SBLive/Audigy) or it can go
    # to the software mixer shown here.
    #slave.pcm "hwplug"
    slave.pcm "emu10k1"
    #slave.pcm "plug:dmix"
    # Sometimes you may need to specify the path to the plugins,
    # especially if you've just installed them. Once you've logged
    # out/restarted this shouldn't be necessary, but if you get errors
    # about being unable to find plugins, try uncommenting this.
    path "/usr/lib/ladspa"
    plugins [
    label mbeq
    id 1197
    input {
    #this setting is here by example, edit to your own taste
    #bands: 50hz, 100hz, 156hz, 220hz, 311hz, 440hz, 622hz, 880hz,
    # 1250hz, 1750hz, 25000hz, 50000hz, 10000hz, 20000hz
    #range: -70 to 30
    controls [ -1 -1 -1 30 30 30 30 30 30 30 30 30 -5 0 0 ]
    pcm.pulse {
    type pulse
    ctl.pulse {
    type pulse
    pcm.emu10k1 {
    type hw
    card 0
    ctl.emu10k1 {
    type hw
    card 0
    pcm.hda-intel {
    type hw
    card 1
    ctl.hda-intel {
    type hw
    card 1
    and in  /etc/pulse/default.pa I made sure to use
    load-module module-alsa-sink device=equalized
    mpd is set to output to the pulseaudio server using the mpd-pulse package, and in the paman GUI I can see it is working fine, the problem is no matter what I change my equalizer settings to (as you can see I just put a load at max as a test) and restart pulseaudio, the sound remains the same.
    I guess it's a problem under pcm.equalizer but I can't be entirely sure.

  • Distorted sound with more bass equalizer preset

    Hello,
    My Problem is that my iphone has either no bass or too much. If i activate the equaizer preset more bass - it sounds like completely distorted (but not with all songs). If i turn it off the sound is weak and just not "nice". I testet the same tracks wich i downloaded from the music store with the same earphones - sennheiser mx 55 with my macbook and my ipod - it was much much better. So the haedphones are okay - it has to do with the iphone. Can u please help me - and please don´t tell me to not use the equalizer - this is no option because it sounds lame like... If there is no way to solve this problem i will try to return the music ibought and maybe use a different player from the appstore?? Greetings from germany. Simon p.s. i think this is a huge quality issue wich apple isnt able to solve right now.

    i wish it would be this easy but - i only have downloaded music from the itunes store on my iphone - not much but completely downloaded from the itunes store. I found out that these songs have different "sound" one is clear and the other is very dark with much bass. But if i transfer them to my ipod they are much better and not distorted. What can i do with my iphone to get this probelm solved or what can i do to give the music back?
    Greetigns from germany
    Simon

  • Sound Enhancer and Graphic Equalizer

    Can someone explain to me what Sound Enhancer actually does? is it like the pre-amp in the older versions of iTunes's equalizer? Speaking of which, is there no longer a graphic equalizer in itunes?

    I don't have Equalizer in my "View" menu. Just:
    as List
    as Grid
    as Coverflow
    View Options
    Show Current TV Show
    Hide Browser
    Hide Genius Sidebar
    Show Artwork Column
    Video Size
    Visualizer
    Show Visualizer
    I guess it doesn't matter since I found it. But if you have an "Equalizer option in View and I don't, I'm wondering what other features I am missing. I'm using iTunes 8.1

  • Sound card detection - simple solution

    Hello,
    this goes to all who are interested. The question how to detect a sound card was brought up in the past, and I found a quite simple way to do it. To my knowledge, this was not posted before.
    The following code returns true if a sound card is present and enabled. I tested it on a couple of machines, and it seems to work just fine. It even works in Applets.
    import javax.sound.sampled.*;
    private boolean detectSoundcard() {
    Line.Info il = new Line.Info(TargetDataLine.class);
    return AudioSystem.isLineSupported(il);
    } // detectSoundCard
    Comments are very welcome,
    Stefan

    I am trying to do the same sort of thing but with multiple sound cards. Do you by any chance know how to get a list of available sound cards on a machine and then choose which card the player will use? Your help is appreciated.

  • Sound for Apps, Simple Guide?

    Ok so i want to do some sound stuff like play some short audio clips. I can have them in any kind of format but it seems like i should be able to do wav. So now how do initialize a sound file and play it. There are some tutorials out there and most of them cover sound in applets. And very few do it with applications. And the problem is that they do complex stuff, they dont even tell u how to intialize the sound file. So either can someone give me some basic code or point me to a good site/ tutorial.
    Thanks

    Yes, the class is long and complicated, but it solves a big complicated problem.
    The method playShortClip near the bottom of that code does just that. It uses the applet support, but it can be used anywhere. It is restricted to short clips in PCM encoding. The playClip method does the same thing for more difficult cases.

  • Can I filter vocals out with the Equalizer to get karioke-style sound?

    Hiya,
    I was having a play with the equalizer just now, attempting to filter out vocals so I could sing along without hearing the artist. I couldn't get the settings right, so I'm wondering if anyone here know the best equalizer settings for dumbing down vocals, so I can save it as a preset and use it whenever I like.
    Thanks,
    Charity

    Thanks. Sorry I've neglected this thread for a while,
    I've been really busy.
    I have no idea what a MIDI file is, and really I
    wanted it to be something I could use with any song,
    as I don't have a particular song in mind I want.
    It's really hard to filter out vocals without filtering out the rest of the music, in most cases. The human voice uses the same dynamic range as many musical instruments, so unless the two are in separate octaves (like a bass vocalist backed up by a piccolo) a simple equalizer isn't generally going to work. I've been able to filter out a brief word or two (like a radio announcer talking over the first second of a song), but not usually, and it always alters the sound of the music. You'll want specialized software, and even that won't be perfect.

  • Improve/extend equalizer and add 3D sound. Sound quality really poor.

    I've been using the 2g nano for a while now and i must say the audio quality is really poor if compared with my 3 year old iRiver (which only has 256mb memory). Lots of people keep saying how great the sound quality is but i believe people saysing that just dont know any better. For those who do hear the difference the only satisfaction is the storage capacity.
    The Equalizer is a big shock. People (even Apple fans) say its best to leave it off for improvement. Why ? because turned on the music gets heavily distorted. People even blame their earbuds. So people go off and buy a €40 earbud just for that extra bit of improvement which the nano should already provide with the nano itself.
    So this is what should be done :
    - improve overall sound quality
    - add custom equalizer
    - add Xtreme 3D sound (= is a really big ++ iRiver users understand)

    iPod Feedback:
    http://www.apple.com/feedback/ipod.html

  • Need to play and stop sound file with 1 ms resolution

    Hi,
    I'm trying to open a .wav file then later play it at a time when another parallel loop activates a boolean local variable which controls playback in my "sound" loop. I need high time resolution in stopping the playing of the .wav file, ~1ms. From what I've gathered, I can't use the "sound output write.vi" because it locks the loop until it finishes outputting a set number of samples. Because of this, "sound output stop.vi" has to wait until the next iteration, which is more than ~1 ms.
    In the help menu of the Sound Ouput VIs it says you can set the task ID for the "sound output start.vi" using the "sound output configure.vi." Unfortunately I've only been able to use the "sound output start.vi" following "play sound file.vi", and I don't really know why this is the case.
    I can't start my sound with the "play sound file.vi" because it locks the loop its in until it finishes playing the sound. Oddly this only happens when there is a parallel loop running, if I run it by itself, with no other loops, it doesn't lock the loop. I thought it might have something to do with the local variable, but the loop doesn't lock when the loop restarts the sound using the "sound output start.vi." 
    After opening a .wav file, can i use the "sound output configure.vi" to create a task ID for the "sound output start.vi" to work? Or do I have to use the "sound output write.vi" after calling the "sound output configure.vi." The help menu makes it seem like the prior suggestion is possible.
    Thanks a lot!

    Since it sounds like the problem you're running into is getting the data loaded from the file before you're ready to play it, look at the Files sub-palette, specifically the Sound File Read Simple VI.  You can use this VI to load the data into a waveform and have it ready for use later in the program.
    So in your overall program, read the file with Sound File Read Simple and configure the output with Sound Output Configure and call Sound Output Write when you're ready to play the waveform.
    Alex Person
    NI-RIO Product Support Engineer
    National Instruments

  • How to play sound in Palm?

    Hello, everyone. I'm a beginner of Palm Application by using J2ME.
    I cant play a sound or a simple tone (Java Sound) in a Palm Emulator...
    Does my emulator not up-to-date? Or do I need to do something before importing that *.prc file?
    Is there any good website I can get more info that?
    Pls.

    Palm does not do its own VM and Sun has not released a Palm VM in a long time.
    http://www.palmos.com/dev/tech/java/
    http://java.sun.com/products/midp4palm/
    In other words, you will probably have a buy a commercial VM that supports this.
    Note: Kada Systems was just aquired by Esmertec AG. Both of these vendors had emphasized remote access (typically for business), as opposed to multimedia.

  • Sound package n mp3...

    can i use methods provided by sound package to play mp3 files... if not then what all files can i play using sound package...
    can i use JMF for playing all sort of music files... ??

    by sound package, I think you are referring to java.sound, its much simpler to use the java.applet. AudioClip class to play midi and wav sound. I don't think you can play mp3 in this way, though I might be wrong of course...

  • Controll sound

    Hello! I'm running Arch Linux with i3 and gnome. But I can't controll the sound in i3. Via gnome I can just controll the sound via the gnome ..urr..sound controlling app. I installed alsa-utils and alsa-oss and tried using alsamixer (via terminal) to controll sound in i3, alsamixer finds the USB sound output device (dac); but I can't controll the sound on it, it has no "sound bar". It is not muted, I can listen to music via spotify/cmus and when running speaker tests (speaker-test -c 2) I get the aproriate sound output, there is how ever no sound in VLC/Gnome Media Player.
    So, any one know how to get controll over my USB sound device? I'll post some (hopefully) helpfull results from commands belllow:
    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 3: Audio [DigiHug USB Audio], device 0: USB Audio [USB Audio]
    Subdevices: 0/1
    Subdevice #0: subdevice #0
    card 3: Audio [DigiHug USB Audio], device 1: USB Audio [USB Audio #1]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    lsmod | grep '^snd' | column -t:
    snd_usb_audio 93519 4
    snd_usbmidi_lib 18744 1 snd_usb_audio
    snd_rawmidi 18991 1 snd_usbmidi_lib
    snd_seq_device 5300 1 snd_rawmidi
    snd_hda_codec_hdmi 24120 4
    snd_hda_codec_realtek 114123 1
    snd_hda_intel 23989 5
    snd_hda_codec 92713 3 snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
    snd_hwdep 6556 2 snd_hda_codec,snd_usb_audio
    snd_pcm 74812 5 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi,snd_usb_audio
    snd_page_alloc 7217 2 snd_pcm,snd_hda_intel
    snd_timer 19222 1 snd_pcm
    snd 59656 28 snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_seq_device,snd_rawmidi,snd_usbmidi_lib,snd_usb_audio
    ls -l /dev/snd:
    ls -l /dev/snd:drwxr-xr-x 2 root root 80 May 19 11:59 by-id
    drwxr-xr-x 2 root root 120 May 19 11:59 by-path
    crw-rw----+ 1 root audio 116, 7 May 19 11:58 controlC0
    crw-rw----+ 1 root audio 116, 16 May 19 11:58 controlC1
    crw-rw----+ 1 root audio 116, 18 May 19 11:58 controlC2
    crw-rw----+ 1 root audio 116, 22 May 19 11:59 controlC3
    crw-rw----+ 1 root audio 116, 6 May 19 11:58 hwC0D0
    crw-rw----+ 1 root audio 116, 15 May 19 11:58 hwC1D0
    crw-rw----+ 1 root audio 116, 14 May 19 11:58 hwC1D1
    crw-rw----+ 1 root audio 116, 13 May 19 11:58 hwC1D2
    crw-rw----+ 1 root audio 116, 12 May 19 11:58 hwC1D3
    crw-rw----+ 1 root audio 116, 5 May 19 14:06 pcmC0D0c
    crw-rw----+ 1 root audio 116, 4 May 19 14:06 pcmC0D0p
    crw-rw----+ 1 root audio 116, 3 May 19 14:06 pcmC0D1p
    crw-rw----+ 1 root audio 116, 2 May 19 11:58 pcmC0D2c
    crw-rw----+ 1 root audio 116, 11 May 19 14:06 pcmC1D3p
    crw-rw----+ 1 root audio 116, 10 May 19 14:06 pcmC1D7p
    crw-rw----+ 1 root audio 116, 9 May 19 14:06 pcmC1D8p
    crw-rw----+ 1 root audio 116, 8 May 19 14:06 pcmC1D9p
    crw-rw----+ 1 root audio 116, 17 May 19 14:06 pcmC2D0c
    crw-rw----+ 1 root audio 116, 21 May 19 14:06 pcmC3D0c
    crw-rw----+ 1 root audio 116, 20 May 19 14:14 pcmC3D0p
    crw-rw----+ 1 root audio 116, 19 May 19 11:59 pcmC3D1p
    crw-rw---- 1 root audio 116, 1 May 19 11:58 seq
    crw-rw----+ 1 root audio 116, 33 May 19 11:58 timer
    Let it be noted that before I re-installed arch (minor screw ups : ) ) alsamixer worked flawlessly, I can't remember having done anything different during install
    Thank you for all replies!
    Last edited by vimes (2012-05-19 12:22:47)

    You should be able to control the sound dynamically via simple scripts, e.g.:
    amixer -q sset Master 1+
    and
    amixer -q sset Master 1-
    For muting the sound, use
    amixer -q sset Master toggle
    You can use xbindkeys to assign them to keyboard shortcuts of your choice. Of course, you can use the native i3 config file / scripting capabilities as well; I don't know this WM's config rules well enough, though.

  • IPod/iTunes Sound Volume problems

    I listen to my iPod Mini on my car radio, and used to enjoy turning the music up loud sometimes. Now I cannot GET it loud, even though I have the volume on my radio and iPod set to the maximum. For audiobooks, I can no longer hear the words clearly over the sounds of traffic. The volume on the iPod used to match the volume of the radio. Now it doesn't -- if I should flip to the radio without lowering the volume, I get hit with a blast of sound.
    I think I might have done something in iTunes that is causing this. I cut off Sound Check and the equalizer. I also raised the volume using the Get Info options. It doesn't seem to have made any difference for the iPod when I updated. I still can't hear it very well through my tape adapter on the car radio.
    Have I done anything mentioned above to cause or fix this problem? If so, do I need to delete everything from the iPod and re-load it?

    Gary,
    There is a lot I don't know yet, but I definitely managed to raise the volume by cutting off the sound check and the equalizer when importing new stuff. As a test, I can now hear the words in an audiobook, although the volume is still on maximum for my iPod and car tape player. Unfortunately the old stuff still sounds too faint. (Is this iPod actually updating?)
    There is a problem with my car tape player. I haven't bought a head cleaning kit yet, but plan to do so. I connected an FM transmitter and tested the sound -- it was a lot louder. (In my area, I cannot use an FM transmitter in the city because of FM interference. No empty stations. So I either need earphones or to make the tape player work. Or a new car
    I don't know yet whether it's the Sound Check or Equalizer that makes the difference. I don't think I ever used Sound Enhancer.
    You can raise the volume by selecting songs, going to "Get Info" and resetting the volume bar. This seems to make it louder on the Mac speakers. I cannot tell that anything is getting through to the iPod -- I simply don't hear it yet.
    I don't know yet if importing when using Sound Check does anything permanent to the volume of the song. I hope not.

  • Simple question about flex and AS 3.0

    Hi, this might sound like a simple question so I apologize...
    I have both a copy of flex 2 and 3, and i want to simply code in AS
    3.0 not mxml. I referred to the help of both flex 2 and 3, and all
    i could come up with is "you can add dynamic behavior to your
    documents using actionscript", which means to me, you only write
    your functions in AS and create instances with mxml (...ugh).
    personally, i find mxml to be ugly (mainly because it looks like
    html to me), and i'd rather not use it. coming from programming in
    an IDE in Java, it seems like it would be nicer to have something
    similar, all the while having the power and cool features of flash.
    I'm not fully educated in this matter so i understand that i could
    be totally wrong.
    i mean, if i have to code in mxml, i will. i'm a web
    programmer for a living, and if a more experience programmer said
    something like "if you don't code mxml in flex, you'll never get a
    job coding in flex", i would trust the advice, and learn the ugly
    code. :)
    yes, i do have Flash cs3, it's great but it seems like a pain
    to me the way you organize classes.... i've only seen a few
    tutorials, ones that explain how you cannot simply import a custom
    class, you have tell your movie to link to it, put it in the same
    directory, or manually name the package, it's sort of confusing.
    my main point here is that i'm very eager to start building
    apps in straight AS 3.0 instead of using flash cs3 (for some
    projects), and it would be cool to get some help or be pointed in
    the right direction.
    to simplify:
    can i write AS 3.0 and only as 3.0 in flex 2 or 3? how? can
    you link me to a tutorial? any advise?
    thanks!

    Hey William, thanks for the post. It's a great coincidence
    because I'm reading that book as well. I'm about half way through
    it, and I love it. I installed mxmlc on my linux box and am writing
    pure AS 3 apps. I think that's the way to go, though I know it's
    not for everybody.
    My problem with mxml is that it has a weird syntax for
    function calls, and it's not as 'intuitive' for a person like me,
    who came from C++ and Java programming in the past. I like writing
    programs in the C++ and Java style syntax, and since so many other
    languages use a similar syntax, I don't see any reason to learn the
    nuances of mxml, unless I was getting paid to do it. As far as I
    can tell there is no benefit.
    I hate using Flash to write flash apps as well, I feel like
    they become messy and confusing, especially when trying to write an
    OOP application. I only use it if I want to move an object in a
    very specific way and can't do it with the Tween methods.

Maybe you are looking for

  • Adobe Content Server 3.0.1 Store and Library conflicts

    Dear All, I am working on Adobe Content Server 3.0.1 and able to configure it to ecommerce site but i am unable to package the books when both library and store is configured on my Adobe content server 3.0.1 at a time. please let me known the version

  • Batch Capturing in HD

    Hello, Digitizing HD footage has given me some real problems. I've used the "Log and Capture" feature and it worked to an extent, though because you're unable to name the "reel" for the this footage you are left in the lurch if the media becomes disc

  • Do I need a NI serial device?

    I am working on an application which involves reading pressure data from two pressure gauges (differential and vacuum). My PC has two free serial ports. My questions: 1) Can I use the PC serial ports or is it advisable to opt for a NI 2-port serial d

  • IPhoto crashes when it starts up

    I bought iLife 11' the day it came out and everything on it works great, except iPhoto. It was really cool when I first got it. It worked pretty well the first time I opened it. But then after that, It would not open up all the way again. It will get

  • Formluas DO NOT get reflected in Essbase Admin Services

    Hi, I recently created an outline in Hyperion planning 11.1.2.1. This included all the attributes and formulas. I validated the application and it gave no errors. The deployment is "in sync". Successful deployment was carried out with no errors. Howe