Multiple Audio Lines

hi all,
Are there any open source projects out there that will show us ways to implement multiple audio lines and allow manipulation of each audio line seperately? e.g volume, pan etc??
Is anyone working on a project that they would post??
I have been working on a project which has 8 tracks, i have it playing the 8 tracks of audio but i am simply calling the same play function 8 times with a different file name each time. I use the play method described in the JavaAlmanac.
If anyone has a project in development or otherwise, i would be very grateful if they would be able to post it here!! I'm sure it will be of benefit to them aswell as everyone else.
cheers,
RC

hello again everyone,
As no one made any replys to this topic, i will now show you what i have ended up doing to create my multiple track audio sequencer.
Its not the best in terms of "smart code" but it works, and since i have a deadline for this project, i am happy to get it working no matter what way the code is structured.
i simply used this file
import java.awt.*;
import javax.sound.sampled.*;
import java.io.*;
public class AudioTrack0Handler
     boolean mute = false;
     String fileName;
     int loop;
     Clip clip;
     public void play(String file, int loops )
               fileName = file;
               loop = loops;
               try{
               System.out.println("Play method called file..." + fileName);
               AudioInputStream stream = AudioSystem.getAudioInputStream(new File("C:\\java\\code\\Audio\\" + fileName ));
               //AudioInputStream stream = AudioSystem.getAudioInputStream(new File("1.wav"));
               // At present, ALAW and ULAW encodings must be converted
               // to PCM_SIGNED before it can be played
               AudioFormat format = stream.getFormat();
               if (format.getEncoding() != AudioFormat.Encoding.PCM_SIGNED) {
                    format = new AudioFormat(
                              AudioFormat.Encoding.PCM_SIGNED,
                              format.getSampleRate(),
                              format.getSampleSizeInBits()*2,
                              format.getChannels(),
                              format.getFrameSize()*2,
                              format.getFrameRate(),
                              true);        // big endian
                    stream = AudioSystem.getAudioInputStream(format, stream);
               // Create the clip
               DataLine.Info info= new DataLine.Info(
                    Clip.class, stream.getFormat(), ((int)stream.getFrameLength()*format.getFrameSize()));
               clip = (Clip) AudioSystem.getLine(info);
               clip.open(stream);
               // Start playing
               clip.loop(loop);
               //clip.stop();
               } catch (IOException e) { e.printStackTrace();
               } catch (LineUnavailableException e) {  e.printStackTrace();
               } catch (UnsupportedAudioFileException e) { e.printStackTrace();}
     public void stopAudio()
          clip.stop();
          clip.flush();
     public void muteAudio()
          /*Control[] ctrl = clip.getControls();
          for (int i=0; i < ctrl.length; i++)
               System.out.println(ctrl);
          FloatControl gainControl = (FloatControl)clip.getControl(FloatControl.Type.MASTER_GAIN);
          //double gain = .5D; // number between 0 and 1 (loudest)
          //float dB = (float)(Math.log(gain)/Math.log(10.0)*20.0);
          switch((int)gainControl.getValue())
                         case 0:
                         gainControl.setValue(-80);
                         break;
                         case -80:
                         gainControl.setValue(0);
                         break;
and created it eight times for 8 audio tracks. i call each track seperately when i need to access the methods. With the stop method and mute method, it also allows me to stop all tracks or mute/unmute individual ones during playback.
In parts This is a primitve way of doing it (i think) but it will remain here as a guide for anyone who finds it!
cheers,
RC

Similar Messages

  • Multiple Audio with in a single Time Line

    I understand that a single time line can contain multiple audios (dubbed voices, foreign languages, director's commentary, etc).  And when I do this, I can hit the "Audio" button on my DVD remote and the audio will change seemlessly while viewing the movie.  This is desirable because you don't have to render several time lines of the same video.  I'm trying to achieve this very thing - in order to reserve as much space on my DVD/Blu-Ray for the feature presentation.  Here's my actual question.
    Now that I have this single timeline with 2 audios, I want my menu buttons to interact with these different audios.  I want my "PLAY FEATURE" button on the main menu to play my main time line with audio #1.  Then I want my "DIRECTOR'S COMMENTARY" button in the Bonus Menu to play the same time line, but with audio #2 this time.  Is there a way to make Encore do this?
    I was hoping there was a way to "group" that time line with the 2 audios in that they each create their own asset in the project panel (and can be linked via pick-whip), but each asset uses the same main timeline, just different audio.
    I really hope I haven't written this to be more confusing than it is.  I also hope you're the right guy to answer my question, and if not - can you pass me along to someone who can?  I appreciate your time and thanks for reading my long-winded question.
    I'm using Windows 7 and Encore 5.1

    Start here re how to handle navigation with audio tracks.
    http://help.adobe.com/en_US/encore/cs/using/WSbaf9cd7d26a2eabfe807401038582db29-7e8ca.html
    I was hoping there was a way to "group" that time line with the 2 audios in that they each create their own asset in the project panel (and can be linked via pick-whip), but each asset uses the same main timeline, just different audio.
    I'm not sure what your question is there, and this may be clearer to you in reading the above section of help. But the timeline (with the video asset) must have both audior tracks, or there is no savings in creating two timelines, for each audio, but each then also requiring instances of the video.

  • Can you copy multiple audio (text to speech) files from one slide onto a new slide at once?

    Can you copy multiple audio (text to speech) files from one slide onto a new slide at once? OR do you have to copy and paste each line of text to speech and insert into new slide?

    Hi there
    I believe that you end up with a single file that you can use. Once you get that created, it's an audio file in the library. You may then add the audio file to another slide or object by looking in the Library after choosing to add audio.
    Cheers... Rick

  • How to play multiple audio tracks simultaneously?

    Hi there,
    I am having problem with playing multiple audio tracks. I want to play 2 or more audio tracks at exact time (without delay) - is it possible? how can it be done?

    So, essentially, you're trying to take a recording of say, a singer and a guitar player, and end up with the singer in one file and the guitar in the other. Got it.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Merge.html]
    That sample will merge multiple input files into a single file. Because you want to play the files together rather than save them, just take the sample and strip out all of the DataSink stuff, and add the following line right after the Processor "outputProcessor" is realized...
    outputProcessor.setContentDescriptor(null);
    So, it'll make the following revision to the code:
         // Create the output processor
         ProcessorModel outputPM = new MyPMOut(merger);
         try {
             outputProcessor = Manager.createRealizedProcessor(outputPM);
                        outputProcessor.setContentDescriptor(null);
             outputDataSource = outputProcessor.getDataOutput();
         } catch (Exception exc) {
             System.err.println("Failed to create output processor: " + exc);
             System.exit(-1);
         }That'll make the outputProcessor play the file, as if it was a Player object. You won't have any visual controls, but if you need visual controls, then don't do that, and just create a Player object to play the outputDataSource.

  • Audio Line-In Input: Not Reading Sound

    So here's my problem:
    I tried recording some stuff I was doing in my DAW using Quicktime's Audio Recording option. My understanding is that I simply start a new recording, choose my input device, and start recording (by which I chose "Built-In Input: Line In").  I chose that option thinking, "Oh hey, I obviously want the highest quality sound for a recording so my friends can hear what I'm doing...why not have them hear what I'm hearing in my headphones?" Turns out, after I listened back to the recording....NO SOUND. I triple checked but the audio clip had no sound...just silence. Then, I went to system preferences, checked to make sure the correct Audio Input was selected...yes: "Line In: Audio Line-in port,"     NOT "internal microphone." Ok...so what now?
    Then I went into the AUDIO MIDI SETUP in Utilities to make sure everything was okay there. Everything's fine...except the master volume on my Built-in Input is set to "0." The left and right faders are at a moderate level but the master is simply 0 (and it won't let me adjust it...it's just grayed out). The weird thing is, when I go back to system preferences, I have the Built-In Input level turned up. Why are these two levels different if they're the same input? Is this why I'm getting no sound when trying to record things like: music coming from my DAW, or simple audio tracks on my mac, or other recordings? I should emphasize: I AM hearing sound through my output, BUT I am NOT able to record that sound with a recording device. I've tried multiple things: Line In application, Audacity, restarting comp, changing to audo interface, checking DAW settings, etc. Why is my Line-In Input getting no signal? Thanks guys!
    My specs:
    http://support.apple.com/kb/sp644

    Couple of things to check, you say you have selected line in ok, are you sending an analog signal to the line in port?(It needs to be analog to be seen) If you are, when you open  QT, under file click new audio recording, then also click the little white triangle on the upper right and make sure that it is set to line is a well. You need to click the red square to begin recording. Also check the Audio MIDI Set Up is configured as in the 2nd  screen shot

  • Multiple Audio Streams?

    I'm wondering if there is an application that will allow the computer to route multiple audio streams out of my Mac Pro. or- if anyone knows how to create an easily switchable audio routing panel rather than going through preferences.
    Eg. I'm playing Itunes (or hulu or netflix) through my audio line out through my Samsung TV thorough a speaker system to watch online content through the TV and I want to work on files on the computer at the same time, say edit video using FCP and routing that audio through USB speakers at the desk.
    Being able to create multiple audio stream routing would be a HUGE asset for someone like me. Even if it's not possible, I would certainly love it if Apple would incorporate a quick switch selector in the pulldown menu for audio volume...
    Thoughts? Anyone?
    Thanks!

    Thanks, the "auxillary effect" totally helped me stream itunes music to my iSight with soundflower....giving webcam streaming my system audio, which I couldnt do before without hearing anything....ugh so complicated! but this works!! Sometimes apple is so rediculous and I know there are more features they could build in.
    Thanks!

  • Open Sales Order  table with multiple schedule line....

    YUSUF BHORI wrote:
    Hi Experts,
    In Sales Order there are multiple schedule line for single item.
    Where and in which table i can find open qty for order ,material, item and schedule line items.
    I Want open items for each schedule line. For One vbeln, posnr there multiple etenr.
    Urgent,
    Yusuf.

    Hai,
    Join VBAK & VBAP and store data in an internal table GT_VBAP to get Sales order numbers, items, materials.
    Get Open Sales order items from VBUP into GT_VBUP  where VBUP-GBSTA  NE  'C'.
    LOOP at GT_VBAP.
    Read table GT_VBUP with key vbeln & posnr.
    If sy-subrc <> 0.
      delete GT_VBAP.
    endif.
    ****Fill your Final Report Internal table with required field values **Append into that internal table
    ENDLOOP.
    Now Select WMENG BMENG from VBEP into GT_VBEP for all entries in GT_VBAP.
    LOOP AT  GT_VBEP.
    *******Again Modify your Final Report internal table with these values
    ***VBEP-WMENG is Ordered Qty
    ***VBEP-BMENG is Confirmed Qty
    ************Open Qty     = Ordered Qty      = Confirmed Qty***
    ************Open Qty     = VBEP-WMENG = VBEP-BMENG.***
    ENDLOOP.
    Edited by: Eswara Rao Aakula on Dec 24, 2007 9:56 AM
    Edited by: Eswara Rao Aakula on Dec 24, 2007 9:57 AM

  • How to edit a multiple audio video clip on Premiere

    Hello everybody
    Maybe this is a dumb question, I'm sorry if I'm asking what is obvious for you, but I swear I tried to find on the web and on this forum, but I couldn't find anything.
    Well, I made a video using a screen capture software called Dxtory, that provides me the ability to record my PC screen, with multiple audio tracks.
    Ok, now I have a 15gb avi file. When I open this file in the Media Player Classic, I can play one or both channels. The first channel is the original audio captured from my PC. Every audio generated by my PC is in this track. The second track is my voice, with my commentaries. I have all of this in one single file. They are not splited. It's just one file.
    Then when I import into Premiere, the software just recognize the video track and the first audio track. I can't find the second, with my voice.
    I know I can split the clip into 3 files (1 video and 2 audios) but it would take longer. I just want to drop the file on Premiere and edit the audio volumes quickly, because when I talk I would like to low the volume of the PC audio.
    Now, the question: Is there a way to Premiere recognize both tracks in this single file? How?
    Thanks in advance for any help.

    I'm actually surprised that Pr can import this at all--the video is Xvid. Maybe it's some variant that Pr's importers can handle, as Jeff suggested. I dunno--it doesn't play well for me, regardless, and I'm not going to install the Dxtory codec to find out.
    Anyway, to the matter at hand: while AVIs can, apparently, contain multiple audio tracks, Pr's importers are limited to a single track. However, Pr has other importers than can handle multiple audio tracks. QuickTime--which is a wholly different process--supports multiple audio tracks, as does MXF (some flavors). However, Xvid in QuickTime (which is feasible) won't import in Pr (at least on a PC), and Xvid won't go into an MXF file at all; that means you'd have to transcode. Personally, this would be my choice--but I found that the original clip played back pretty terribly, so that would be why I'd go that route.
    Additionally, you could extract the second audio track to a separate WAV file, import both the AVI and WAV, and then use the Merge Clips feature to marry them together as one pseudo-clip. Not perfect, but it would work. The benefit is that you don't re-encode anything.
    So, I've got solutions for both the re-encode/MXF option (my preference) and the AVI/WAV option. Here's proof of the MXF (transcoded video to XDCAMHD422 50Mbps) with four audio channels (stereo must be split to dual mono):
    At the end of the day, these (or a variation of them) are your only options. Pr simply won't import multiple audio tracks (even dual mono) in an AVI container. Let me know if you're interested in either of the solutions.

  • Payable open interface-Multiple distribution lines

    Hi,
    As i know there is no distribution interface table in R12,there are only AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE.When i insert one line for one invoice header,it is creating one distribution line.
    Now my requirment is i want insert multiple distribution lines for invoice line.
    Is it possible?If yes,tell me the way...
    Is there any alternative ways?
    Thanks
    Praveen

    Hi Praveen
    How are you inserting the records into Interface Table ?
    Is it through SQL LOADER or a simple Insert Command from a PL/SQL Block ?
    While loading Multiple Distribution Lines for a Invoice Header in AP_INVOICES_LINES_INTERFACE Table we can pass the same HEADER_ID for Multiple Invoice Lines.
    Ex
    BEGIN
    INSERT INTO AP_INVOICES_INTERFACE(INVOICE_ID,INVOICE_NUM)VALUES(100,100);
    INSERT INTO AP_INVOICE_LINES_INTERFACE(INVOICE_ID,INVOICE_LINE_ID,LINE_NUMBER)VALUES(100,100,1);
    INSERT INTO AP_INVOICE_LINES_INTERFACE(INVOICE_ID,INVOICE_LINE_ID,LINE_NUMBER)VALUES(100,101,2);
    COMMIT;
    END;
    Please do let me know if you face any problems.
    Regards
    Nakul.V

  • Unable to enter multiple Schedule lines for BOM material in Sales Order

    Hi All,
    We have a Sales Order where in which we cannot add additional schedule lines for BOM material.
    The schedule lines are greyed out, user was able to add schedule lines earlier.
    I have checked all assignments in VOV6, VOV7 and everything seems to be fine and no changes have been made to item category being used.
    Please provide a solution for this.
    PFB link in which similar situation posted in this community but the final resolution method is not discussed.
    http://scn.sap.com/message/13201504#13201504
    Regards,
    Samiksh

    Hi Samiksh,
    Pls check for that particular customer, only complete delivery allowed(c) is set in the CMR or CMIR. If so, you can't enter multiple schedule lines for that customer.. it would be grayed out in the sales order schedule lines except confirmed line.
    or check the problematic sales order at item level shipping tab if the par del/item is set to 'C'
    With regards
    S.Siva

  • Regarding multiple schedule lines in sales order with same date

    Hi All,
    we create the Orders from RFC and the orders are going to Multiple Schedule lines for the same date.
    period       delivery date          ordered quan       confirmed quantity
    D     10/11/2007                10                    0
    D     10/11/2007                 0                     10
    here for the same date in first line it is not confirming and in the second line it is confirming the quantity for the same date.
    On what conditions it is possible??????
    Any one have the solution for this Please send it to me [email protected]
    Regards,
    Prasad

    Just check the schedule line details i.e go to schedule line---shipping. You will find that although the del. date is same in both the case but the timings were different e.g material availability time etc will be different in both these lines. So though the dates may be same its time difference that's causing the second schedule line.
    Reward points if useful

  • Multiple Schedule Lines for Individual Qty in Standard Order

    Hello All,
    I have a Client Requirement to Set up the Standard Order for a Material which will be sold on Single Quantity every Month.
    This will have to occur from the same Order. For this Multiple Schedule Lines are required to be generated as per Monthly Delivery Schedule.
    I know this functionality comes under Scheduling Agreements where we can deliver goods as per confirmed Schedule Lines for the Month.
    But Client Requirement is to set up this functionality in Standard Order Only as setting up scheduling agreements calls for mapping of New Order Types which is not feasible.
    So Can you provide with your valuable Inputs as to whether this can be possible through Standard Order in the system.
    Looking forward to your esteemed reply!!
    Warm Regards,
    Onkar Khedekar

    Dear Onkar:
    If you don't want to use Schedule agreements, you can enter several schedule lines for each item in "Schedule line" tab at  item level.
    Enter in this tab each schedule line per month.
    But be aware which date you enter becuase this requirement will be transfered to MRP.
    Check it and revert.
    Jose Antonio Martinez

  • How to create multiple schedule lines for configurable products

    Hi -
    We have enabled variant configuration and would like to have multiple scheudule lines created , but it seems that only one line is avaialble, is there any way to configure the use of multiple schedule lines? 
    Note - we are not using KMAT material types, rather triggering a unique kit compoments within Sales BOM.
    We have been able to make the necessary adjustments to allow the creation of the Scheduling agreement and have the BOM explode correctly, but just am not able to trigger multiple sched lines.
    thanks
    Bill

    Your context node shall contain all these fields like country,city,etc as different attributes.so in your view configuration,add all these fields whatever you require from the AVAILABLE FIELDS section to the DISPLAYED FIELDS section.NOw all these attributes would be added in diff rows.What you need to do is,select the first attribute,lets say COUNTRY,click on this attribute and then on the buttn SHOW FIELD PROPERTIES.Thsi will show you the label name etc.Here you change the label name to NATIONALITY.Also ,it will show you the row no,cloumn span of the field and column span of the label.You need to reduce the column span of the field value.Ie if the column span is from D TO H,reduce it from D TO F.Now goto the next attribute eg CITY and in the same way,goto the attribute properties.Here ,There is a check box SHOW LABEL,uncheck this,and now goto the row no and the cloumn span.Make the row no same as that of the COUNTRY FIELD.The column span should howevrbe statring from where the column span of country field ended.Ie Teh column apsn of counrty field ended at F .So for CITY,the column span should start from G to amybe H.Now this is how you need to accomodate the other fields also in the same row,by changing the row no and column span in the field properties.
    Suvidha

  • Delivery date variance for multiple schedule lines in EKET

    Hi experts,
    can anyone tell me what dates  are used (from EKET, EKBE or any other table)  to calculate delivery date variances when there are multiple schedule lines in EKET table. I am able to match single schedule line POs but not POs having multiple schedule lines.
    thanks in advance,
    purvang

    can anyone provide input on this?

  • How do I import multiple audio tracks?

    Hi there...
    I have a number of video files that have multiple audio tracks in them. The problem is I can not work out how to get prem to see multiple audio tracks. The files import fine and I have also tried various other formates with multi-track audio.. but only audio "stream 1" is visible in prem.
    What I was hoping is that the video would come in with a 2 audio tracks instead of 1 each in its own "lane".. so I can then use the mixer and the audio files are  linked to the video file and in perfect sync.. (just like when you import with 1 track)
    NOTE: I am not talking about channels.. but complete 2 completely different audio tracks.. and I know that I could extract these audio streams into wavs and then re-sync them but this seams overkill and a duplication of effort... surly there is a way to have prem support more than 1 audio track on a video file?
    --Me

    Well, if PP doesn't bring them in, then best guess is they just don't exist.
    There's really no trick or user adjustment for this that I'm aware of.  You import the file, PP sees what's in it.  I've never observed or read about any other behavior than that.

Maybe you are looking for

  • Locks and/or slow processing

    Hello, Thanks in advance!! Whenever, our system receives a flood of events, we try to update the database by first locking a certain row using "select for update". However, the system seems to lock up (I think it is very slow in processing) for a lon

  • The Folder Path "My Documents contains an Invalid Character"

    Hello. I have a major problem at hand. I presently have iTunes 7.6 on my Dell laptop when i try installing itunes 7.7 or 7.7.1, it gives an error "The folder path my documents contains an invalid character" I scoured the internet, but to no avail...

  • I keep getting "You've been logged out" when I try to access my Creative Cloud account.

    I have un-installed and then re-installed the program. Confirmed that my log in credentials are accurate by loggin into the Adobe site via the web. No issue. I am using Windows 8.1. I saw a post that said to remove the opm.db file, but I cannot find

  • How can I save an email as a download file rather than a file in my email

    I wish to save entire emails in a windows folder rather than in an email folder. I have tried hitting "save as" but although I get a message telling me the download is complete I cannot open the documents. Also, I am getting weird icons after I try t

  • Is the new Update  not for OS X

    JSC 2004 Q2 ML - not trial Just trying to download the new patch - but no dice. unable to connect to update center - no proxy ... Any idee why it is not working Or even better any place to download the update mauallly Thanks -Bj�rn