Combining 2 seperate recordsets with related records

What is the easiest to combine 2 seperate recordsets with related records?
The following example has two different recordsets F1 and F2 but are joined with F0.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> with t0 as
  2  (
  3     select 1 as id, 'Example 1' as f0 from dual union all
  4     select 2 as id, 'Example 2' as f0 from dual
  5  ),
  6  t1 as
  7  (
  8     select 1 as id, 'a' as f1 from dual union all
  9     select 1 as id, 'b' as f1 from dual union all
10     select 2 as id, 'aa' as f1 from dual union all
11     select 2 as id, 'bb' as f1 from dual union all
12     select 2 as id, 'cc' as f1 from dual union all
13     select 2 as id, 'dd' as f1 from dual
14  ),
15  t2 as
16  (
17     select 1 as id, 'x' as f2 from dual union all
18     select 1 as id, 'y' as f2 from dual union all
19     select 1 as id, 'z' as f2 from dual union all
20     select 2 as id, 'ww' as f2 from dual
21  )
22  select f0,f1,f2
23  from t0, t1, t2
24  where t0.id = t1.id
25  and t0.id = t2.id;
F0        F1 F2
Example 1 a  x
Example 1 b  x
Example 1 a  y
Example 1 b  y
Example 1 a  z
Example 1 b  z
Example 2 aa ww
Example 2 bb ww
Example 2 cc ww
Example 2 dd ww
10 rows selected.desired output:
F0        F1 F2
Example 1 a  x
Example 1 b  y
Example 1    z
Example 2 aa ww
Example 2 bb
Example 2 cc
Example 2 dd

I got it! One more question though, can this be done in a easier way? Like using xmlsequence, analytical functions or other tricks that I don't know about.
SQL> with t0 as
  2  (
  3     select 1 as id, 'Example 1' as f0 from dual union all
  4     select 2 as id, 'Example 2' as f0 from dual
  5  ),
  6  t1 as
  7  (
  8     select 1 as id, 'a' as f1 from dual union all
  9     select 1 as id, 'b' as f1 from dual union all
10     select 2 as id, 'aa' as f1 from dual union all
11     select 2 as id, 'bb' as f1 from dual union all
12     select 2 as id, 'cc' as f1 from dual union all
13     select 2 as id, 'dd' as f1 from dual
14  ),
15  t2 as
16  (
17     select 1 as id, 'x' as f2 from dual union all
18     select 1 as id, 'y' as f2 from dual union all
19     select 1 as id, 'z' as f2 from dual union all
20     select 2 as id, 'ww' as f2 from dual
21  )
22  select f0,f1,f2
23  from
24  (
25      select f0, rn,
26            max(case when f1 is null then null else f1 end) f1,
27            max(case when f2 is null then null else f2 end) f2
28      from
29      (
30          (
31              select f0, f1, null f2, row_number() over (partition by f0 order by null) rn
32              from t0, t1
33              where t0.id = t1.id
34          )
35          union all
36          (
37              select f0, null f1, f2, row_number() over (partition by f0 order by null) rn
38              from t0, t2
39              where t0.id = t2.id
40          )
41      )
42      group by f0, rn
43  );
F0        F1 F2
Example 1 a  x
Example 1 b  y
Example 1    z
Example 2 aa ww
Example 2 bb
Example 2 cc
Example 2 dd
7 rows selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Joining 2 related records using PL SQL in Apex - Problems when there are more than 2 related records?

    Hi
    I am combining 2 related records of legacy data together that make up a marriage record.  I am doing this in APEX using a before header process using the following code below which works well when there are only 2 related records which joins the bride and groom record together on screen in apex.  I have appended a field called principle which is set to 'Y' for the groom and 'N' for the bride to this legacy data
    However there are lots of records where in some instances there are 3, 4 , 5, 6 or even 1 record which causes the PL/SQL in APEX to not return the correct data.  The difference in these related columns is that the name of the bride or groom could be different but it is the same person, its just that from the old system if a person had another name or was formally known as they would create another duplicate record for the marriage with the different name, but the book and entry number is the same as this is unique for each couple who get married.
    How can I adapt the script below so that if there are more than 2 records that match the entry and book values then it will display a message or is there a better possible work around?  Cleaning the data would be not an option as there are thousands of rows of where these occurrences occur
    declare 
         cursor c_mar_principle(b_entry in number, b_book in varchar2) 
         is 
              select DISTINCT  id, forename, surname, marriagedate, entry, book,  formername, principle
              from   MARRIAGES mar 
              where  mar.entry   = b_entry
              and    mar.book = b_book
              order by principle desc, id asc; 
         rec c_mar_principle%rowtype;
    begin 
    open c_mar_principle(:p16_entry,:p16_book)  ;
    fetch c_mar_principle into rec;
    :P16_SURNAME_GROOM   := rec.surname; 
    :P16_FORNAME_GROOM   := rec.forename;
                   :P16_ENTRY := rec.entry; 
                   :P16_BOOK :=rec.book;
    :P16_FORMERNAME :=rec.formername;
    :P16_MARRIAGEDATE :=rec.marriagedate;
    :P16_GROOMID  := rec.id;
    fetch c_mar_principle into rec;
    :P16_SURNAME_BRIDE   := rec.surname; 
    :P16_FORNAME_BRIDE   := rec.forename;
                   :P16_ENTRY := rec.entry; 
                   :P16_BOOK :=rec.book;
    :P16_FORMERNAME :=rec.formername;
    :P16_MARRIAGEDATE :=rec.marriagedate;
    :P16_BRIDEID  := rec.id;
    close c_mar_principle;
    end;

    rambo81 wrote:
    True but that answer is not really helping this situation either?
    It's indisputably true, which is more than can be said for the results of querying this data.
    The data is from an old legacy flat file database that has been exported into a relational database.
    It should have been normalized at the time it was imported.
    Without having to redesign the data model what options do I have in changing the PL/SQL to cater for multiple occurances
    In my professional opinion, none. The actual problem is the data model, so that's what should be changed.

  • PA_CONTRACT_XSLFO: How to invoke a RTF-template with related data template

    Dear Reader,
    actually I want to extend the standard Document Type Layout for a Purchase Agreement Contract with additional data from approved supplier list (ASL).
    Therefor I have created a RTF-template and a data template with the needed sql-statement. For testing I put this in a standalone concurrent programm and it works fine (result was a blue table with all data rows).
    Next step for me was to invoke the RTF-template into the PA_CONTRACT_XSLFO template for extending the Document Type Layout for my Purchase Agreement Contract. So I put the neede invoke-statements
    <xsl:import href="xdo://XXOC.XX_RTF_TEMPLATE.de.00/"/>
    and
    <xsl:call-template name="XX_RTF_TEMPLATE"/>
    into the XSLFO-template. Also I extend the RTF-template with the define template statement
    <?template:XX_RTF_TEMPLATE?>
    So all seems to be fine.
    As result I get the standard document for Purchase Agreement Contract with the additional blue table from RTF-template BUT WITHOUT DATA !
    From my point of view there is no execution of the sql-statement in data template. But I dont know why.
    Do Oracle support a combination of XSLFO-template with data template?
    [XSLFO-template] with related [XSD-data definition]
    calls [RTF-template] with related [data template (with included sql-statement)]
    Thanks for your help.
    Best regards
    Mario.

    How to call a rtf template from another rtf template by passing a value try in main template create hyperlink of url with parameters for another template
    http://bipconsulting.blogspot.ru/2010/02/drill-down-to-detail-or-another-report.html
    When user pull a quote report from siebel this new rtf template should attach to the quote at the end.it'll be only another report
    IMHO you can not attach it to main. it'll be second independent report
    you can try subtemplate but it's not about rtf from rtf by click
    it's about call automatically rtf subtemplate from main rtf based on some conditions
    for example, main template contain some data and if some condition is true then call subtemplate and place it instead of its condition

  • Problem with vinyl recording

    I specifically purchased the Soundblaster x-fi HD for vinyl recording to my computer. The problem is as the signal runs through the unit into my computer, i am unable to designate the different special effects available with this unit. I can record the record just fine but I was counting on being able to record vinyl and adding in the effects into the actual recorded file, but no matter what I do, i cannot get this to happen. Is it possible to do this with this particular unit, or if not, can you direct me to something that will? My email address is [email protected] Any info anybody can give me on this is deeply appreciated.

    Jord, when I called it a "phenomenon" I did not mean to describe it as a bug or fault - you're right, it is a desireable feature of cycle recording.
    As far as your question goes: Suppose you are recording track-by-track a song with two parts, an acoustic guitar and vocals, and the acoustic guitar part has an intricate eight-bar solo that needs to be redone. The advantage of using cycle recording and autodrop here is that you could define a cycle region giving you a two-bar intro (say) to the part you need to rerecord and a couple of bars of outro, making it easier to accomplish a musical phrasing. For example, say you're a vocalist trying to record a one-octave scale, and your pitch is off on the "fa-so." With cycle recording and autodrop, you could sing along with the "do-re-mi" and settle your pitch before rerecording the notes you flubbed, whereas (as I understand it) if you're just rerecording the "fa-so" in cycle mode, you won't get the "do-re-mi" as an intro after the first pass and would then just hope that you're nailing the notes you need to rerecord cold.
    You can combine cycle recording with autodrop in Midi - why not in audio? It's a desireable feature in both.

  • Integration with SAP Records Management

    Dear SAP gurus,
    We are in SRM 7 EHP 1 with backend ECC 6 EHP 5. We are exploring PPS (Procurement for Public Sector) feature in SRM. We see that using PPS we can have integration with SAP Records Management. To be honest, I never see SAP Records Management so we want to confirm the functionality. Our legacy system require a electroning filing system, in which all documents related to procurement is scanned (whether it is document from system, or the one created manually), and then stored in a server in a pdf format.
    Does SAP Records Management have this functionality in which it stores the pdf doc inside one server? If not, what is exactly the functionality of SAP Records Management?
    Best regards,
    John

    Hi,
    SAP Record Management is now known as SAP NetWeaver Folders Management.
    Contact your NetWeaver consultant to imlement SAP NetWeaver Folders Management.
    Some important links:
    1. http://wiki.sdn.sap.com/wiki/display/HOME/SAPRecordsManagement
    2. http://www28.sap.com/businessmaps/0531547C7FE54C6A9E9B5850836F5E43.htm
    3. http://help.sap.com/saphelp_nw04/helpdata/en/f5/18fc39eb31a700e10000000a11402f/frameset.htm
    Regards,
    yaniVy
    reward if helps

  • Use MySQL recordset with JCheckbox

    hi.. i am working on a simple java application that run on the user pc locally... the application is some sort of bill management.. when the user click customer the program will get the list from the database and display on the JTextField with checkboxes beside every record in Frame A.. the user could select those check boxes and click on example status.. the program will go to Frame B with all the data being selected at Frame A??
    i am trying to find out how do i link the recordset with the check box so that the i got do the transfer from frame A to frame B?

    The records will probably have a unique ID value bound to them. A simple hack is to set that ID as the name property of the checkbox (setName()). Then in frame B you can investigate which checkboxes were selected in frame A, get the ID values from the names and fetch the (more complete?) data from the database again.
    A slightly cleaner solution would be to maintain the checkboxes and ID values in a simple datastructure you create yourself. It can be as simple as a storage bean with two properties which you store in a List collection.

  • Merging local records with device records failed

    Hi,
    I have a macbook with OS X 10.4.11 (Intel procesor)  I did install the latest Pockect mac for blackberry version (the current one in the Blackberry's page), i use to use the old one, since I did the updated I can't get that both, device and Mac SYNC any item, no contacts, no calendar... 
    The message I got last time was: 
    06:06:57:140 merging local records with device records failed. 
    Could some one with me a light on this bug?
    Thanks 

    Hi rguardia,
    Can you try synching one PIM database at a time, e.g. just Contacts by itself, so we can determine which database is experiencing the problem?  The error you are receiving is likely being caused by one specific database.
    Once you have identified the database that is causing problems, can you perform the steps listed below:
    1 - Run Data Purge on the affected database.  Data purge can be found in the following location: 
    Mac HD/users/<Home User>/Library/Application Support/PocketMacSyncManager/Additional Tools. 
    ***Please note this utility will delete all information stored in the selected database on your BlackBerry however once the information has been deleted from your device you can reimport the data to your BlackBerry from the application on your Mac.
    2 - Run Sync Clean, which can be found in the same folder as Data Purge. 
    3 - Disconnect the BB from the Mac, remove the battery from the back of the device, wait 10 seconds then reinsert it
    4 - Reboot the Mac
    5 - Reconnect your BlackBerry to your Mac
    6 - Open PocketMac and select Reset All Devices to First Sync State from the Devices menu
    7 - Configure synchronization settings for the affected PIM database, choosing the option to Overwrite Device.  If the data is successfully transferred to the device, reconfigure PocketMac back to doing a two-way sync.
    If you are still running into the same problem after performing the steps above, try synching one category of the affected database at a time. To do this, click on the tab of the database you are trying to sync, click on Advanced Preferences next to the selected application, and choose the option to sync only selected categories. Try synching with only one category selected at a time, just to see if the issue is related to data within a specific category.
    Let us know how you make out!

  • Relative Record Number in DB2?

    Has anybody had success retreiving relative record number of
    a DB2 (8.1) DB? I've used SELECT RRN(column), SELECT rrn, column
    and a mulititude of other options. Tried CF 6.1,7.02 and 8, none of
    which have worked. Using latest JDBC drivers (I think)
    Any insight would be appreciated.
    Thanks!

    a is the correlative I associated with the file name so I
    don't have to type the whole file name every time I reference it.
    You could also try:
    select rrn(sysdummy1) from sysibm.sysdummy1

  • Return Recordset with DSN

    Hi
    I'd want return a recordset into a procedure (..curRecord OUT SYS_REFCURSOR) using a connectionstring DSN with provider Microsoft ODBC for Oracle. I can create an ADO connection (MyConnection) and ADO command (MyCommand), but when I execute next statement: Set MyRecordset = MyCommand.Execute(), I have next error: 2147217887. ODBC not admit properties researched.
    When I use a connectionstring with Provider OLE DB for Oracle, I haven't any problem, because I set property PLSQLRSet to True, but Microsoft ODBC for Oracle not have that property.
    Thanks for your cooperation.
    Giovanni.

    Thanks for the reply.
    But I find another way to find that a recordset has no record.
    ResultSet rs = Stmt.executeQuery("select userid from logininfo where userid='"+userid+"'");
    rs.next();
    if(rs.isFirst())
         //code to be executed if it has at least one record in recordset
         else{
    ////code to be executed if no record recordset
    Again thanks for the Help...

  • Crashing with Midi recording...

    setup...
    logic 9.15
    os x 10.6.8
    axiom 61 usb keyboard
    macbook pro - i5
    I'm having lots of crashing with the above system.
    - i open a new default logic empty project
    - add 1 software inst - key 88 sound
    withing minutes of recording and fooling with 8 bars of midi - logic may crash.
    arrange window & piano roll & maybe score window at same time
    - let's say i record 8 bars
    - then try to punch in eith with cycle record or not
    - after a few minutes of this - logic may crash
    what's up?
    i imagine there might be some prefs to toss - which ones?
    any othe ideas?
    Thanks - dave

    Are you using the Axiom control surface software?
    Is there something installed with Axiom that has "Hyper" in the name or something similar.
    It's a possible fault there.
    You can try deleting the Control Surfaces file (with Logic not running.
    ~Library/Preferences/com.apple.logic.pro.cs
    It will be recreated next time Logic boots.
    Also, it doesn't seem to be related to this does it?
    http://support.apple.com/kb/TS3968

  • Help with pushing records to next page in report

    Hi,
    I am trrying to create a report that will display records on seperate pages. My record set has a common reference number with many other detail columns. So an example would be:
    ref num 1         detail        detail        detail
    ref num 1         detail        detail        detail
    ref num 1         detail        detail        detail
    ref num 2         detail        detail        detail
    ref num 2         detail        detail        detail
    ref num 2         detail        detail        detail
    and so on...
    I need the report to take the records from ref num1 for the first page (or more if necessary) and then start a new page for the next record and so on. I have tried using the "New page after" function with no sucess and really hope someone here has overcome this and can help.
    Thanks a mil
    Phil.

    Hi Sastry,
    The report is actually a batch of invoices. I have a stored Procedure returning the records of the invoices and the report template is so far set up as follows,
    the page header has unique invoice details listed there.
    --- name and address etc
    the details section is supressed
    there is a group footer section with the repeating product details of the invoice there.
    --- date, product 1, amount, total
    --- date, product 2, amount, total  etc...
    the report is sorted by the date of the products in the croup section
    there is a page footer section similar to the page header.
    --- totals information
    when the report is for one invocie it will work as the products all appear in the group section as expected. when the report is for more than one invoice it mixes all the records up and prints two invoices with incorrect details. the record set returned by the stored procedure is as per my first thread.
    I hope this makes some sense. I have not had much crystal reports training and may need to start this one from scratch. Bacically we have a system that uses crystal to print our invoices. The system will only ever output one invoice record at a time. I copied the report template hoping i could adapt it to be able to print many records at a time as a report.
    Thanks a mil for you time all the same.

  • Date based report with multiple record return

    Hello all,
       Here is the situation. Running MAS 4.1 and using Crystal 10 for doing reports. I currently have a custom report that shows all invoices that have been paid for any given date range. This works great except when there is a "credit Memo" against an invoice. The way I'm getting all paid invoices is via a formula. The record set I have to pull against lists the invoice amount, date paid and amount paid. Simple calculation on the returned record will tell you if it has been paid off or not. The problem I'm having is those invoice records that also have a credit memo against them. The credit memo entries do not have a "paid date" and since that is my main selection criteria those records will not pull into my report, and therefor those invoices will not be showed as being paid. What I need to happen (and I don't know how to do it). Is for the report to run based upon the date range specified, and pull in related records even if there is no "paid date" on them. The way MAS stores it's invoice/credit memo records is the same for both. The main difference is that invoice has the "type" field set to "IN" and a credit memo has the "type" field set to "CM". So the actual "invoice number" is the same for both kinds of records. I hope my request makes sense, if not let me know and I will try to explain what does not make sense.  Thanks in advance.  Bill

    Jason,
        You've been very helpful, but I guess I'm just not explaining myself that well. The Credit Memo's throw things off because they do not contain a "Paid Date" value. That field in the record is blank. Since it is blank the report query ignores them. Therefore when the report query returns all records that have a "Paid date" range of "x to y" they are never returned. This is a problem whenever a credit memo exists for an invoice because the "invoice total" never changes. So when a customer pays on their account for a particular invoice, they only pay what is due which is the "invoice total" minus any "credit" from the "Credit Memo". So when my A/R person receives payment they are showing the invoice paid in full because MAS automatically includes all invoices and credit memo's. My report does not because there is no data in the "Paid Date" field of the record for Credit Memos.
    I've been doing alot research in trying to resolve this "exception" to my report. I think I may be on to something, but my knowledge of arrays is extremely limited. My resolution involves populating an array with the "invoice numbers" that are returned from the initial query from the supplied date range. Then using the "invoice numbers" from the array have it then populate my details section of the report with all of "invoice records" both the actual invoice record and any "credit memo" records. I can then group the records returned  based upon the "invoice number". then within that grouping I can performing my calculations to show whether or not the invoice has been paid in full. What do you think?  I've been able to populate an array with the invoice numbers based upon my date search range, but I have yet to figure out how to take that information and perform another lookup to pull in the rest of the data I need. Do you have any ideas?
    Thanks.  Bill

  • WSAD 5.1.2 and Relational Records - anyone else having problems?

    Hi,
    I am a bit of a newbie with JSF and as such have limited understanding. However, when trying to insert a Relational Record using WSAD 5.1.2, I keep having problems.
    I am trying to use a relational databse (one that is normalized) where there are two tables (MAIN and SUB_SET_OF_MAIN). Main contains a primary key which is REF and this is the same key in SUB_SET_OF_MAIN where it is also a foreign key.
    I then try and insert a new Relational Record, set the auto key generation on the MAIN table. I complete the wizard and test my page. I would expect the two tables to update with the key generation and the data to also populate in the tables.
    But I keep getting problems with the bean. I have now given up on this, but was wondering if anyone else was having this problem and how they resolved it?
    Thanks
    BB

    I was having the same problem with my iPad (first gen) and my iphone 4. After 24 hours of restoring the device, resetting email settings, etc., I finally found that there was an old email in my inbox on the mail server that wasn't visible on my devices (imac, ipad, iphone). I went into webmail on Godaddy and deleted it ... everything worked after that. I can't say this will work for you but it's worth a shot to look at your webmail for any emails that should have been deleted but didn't. BTW, the offending email was text only with no attachments.
    Good luck!

  • Screen Recording with ffmpeg/recording mic and speaker output

    I've been doing much research on this, and to be honest A/V editing is not my strong suit. I use a script I wrote two days ago to initiate both screen recording with ffmpeg and compiling the resulting mkv file with ffmpeg as well. The entire script can be seen here:
    #!/bin/bash
    #Create function to exit program
    function quite {
    if [ $ANSWER3 = "y" ]; then
    exit
    else
    exit
    fi
    #Create function to start ffmpeg record
    function record {
    if [ $ANSWER = "y" ]; then
    ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1366x768 -i :0.0 -acodec aac -vcodec libx264 -preset ultrafast -strict -2 -crf 0 -threads 0 $ORIGINALNAME
    else
    if [ $ANSWER = "n" ]; then
    echo "Would you like to convert an existing input file? (y/n)"
    read ANSWER4
    if [ $ANSWER4 = "y" ]; then
    ffmpeg -i $ORIGINALNAME -vcodec libx264 -acodec aac -ab 128k -crf 22 -strict -2 -threads 0 $OUTPUTFILE
    echo "The program will now exit"
    read
    exit
    else
    exit
    fi
    else
    exit
    fi
    fi
    #Function to convert the recorded video
    function convert {
    if [ $ANSWER2 = "y" ]; then
    ffmpeg -i $ORIGINALNAME -vcodec libx264 -acodec aac -ab 128k -crf 22 -strict -2 -threads 0 $OUTPUTFILE
    else
    exit
    fi
    #Change to Screen Record directory in My Videos
    cd ~/My\ Videos/Screen\ Record/
    #Clear screen, and ask for input on what to name the origional file and the converted file
    clear
    echo "Please, enter the name of your file followed by .mkv"
    read ORIGINALNAME
    echo "You're files name is $ORIGINALNAME!"
    echo "Please, enter name of the output file followed by .mp4"
    read OUTPUTFILE
    echo "You're final file is $OUTPUTFILE!"
    clear
    #Prompt for continuing with recording
    echo "Would you like to continue with screen recording?[y/n]"
    read ANSWER
    clear
    #Run the record function
    record
    #Prompt for converting the created video
    echo "Would you like to convert the file now?"
    read ANSWER2
    clear
    #Run convert function
    convert
    #Prompt to close command
    echo "Operation finished, all done."
    echo "The program will now exit."
    read ANSWER3
    For simplicities sake, and because I don't think there's a real problem with my script but something else, here's the two ffmpeg scripts from the above script:
    recorder
    ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1366x768 -i :0.0 -acodec aac -vcodec libx264 -preset ultrafast -strict -2 -crf 0 -threads 0 $ORIGINALNAME
    compiler
    ffmpeg -i $ORIGINALNAME -vcodec libx264 -acodec aac -ab 128k -crf 22 -strict -2 -threads 0 $OUTPUTFILE
    Anyway, I have pavucontrol used to set the recording input after I've started recording. I want to be able to record the sound of my voice on my usb headset (which works fine) and be able to hear the sound of music or a youtube video I'm also playing during the recording. I've seen the loopback mixer from Alsamixer gui and the input, output, and record tabs in pulseaudio mixer. To be honest, after researching all this stuff in ffmpeg (which is a ocmplicated program) and whatever amix, dmix,  and some other programs I'm not sure what are, I have no idea where to go anymore. I'd continue researching, but I'm only getting more confused the further I go. I'm extremely willing to learn and will follow any instructions you give to help me out. I don't just want to do this one task, like how I learned enough to write a script file, I want to be able to tweak ffmpeg to suit my needs for any purpose it can be used for. This is my first step to being able to do that. Thanks ahead of time for your help.

    OK, I've manages to learn enough about jack to not break my system and can work with that, Pulseaudio, and alsa is always installed. Is there a way I can create a virtual device that takes in the input from both the system sound and the headset mic that I can set as the audio input for ffmpeg? I've been looking online and I've got a headache at this point from trying. I have learned to use ffmpeg on a new level, but I still can't do what I want to do. (which is record sound from the headset mic and the system sound at the same time while using ffmpeg. I could make two audio files from each channel and record the screen with x11grab. then combine all that using another utility, but then I have to run three separate programs at the same time (which will eat up my cpu) and still run whatever I'm recording from my screen. Something that will do all this for me would be much appreciated.

  • Problem with cycle recording

    Greetings, folks. I've run into what I think is an odd problem in cycle recording in an audio track. What I wanted to do was to automatically record multiple takes of a guitar solo. Consulting the manual and both the LP7 and Advanced LP7 guides and set up what I thought was the proper configuration for doing that: under File > Song settings > Recording, I checked the "Auto mute" and "Auto Create Tracks in Cycle Record" checkboxes, I defined a cycle region, I defined a shorter autodrop zone within that cycle region, armed the track, then hit record. I thought that Logic would then create a new track with each cycle pass while I was playing, and that those tracks would play through the audio object of the track that had been armed for recording.
    What happened instead was that, after a single pass, recording would switch off (though it would continue to cycle in playback), so that in order to record multiple passes I needed to stop, reset the track to the beginning of the cycle region, and then hit record again. The audio regions I recorded on successive takes also don't display on individual tracks. I'd like to be able to see them all in the arrange window and be able to play them through the original track's audio object for editing purposes, but I can't figure out how to do that either (without creating multiple tracks and then manually dragging each take from the audio window).
    So I guess I have two questions: first, what did I do wrong in attempting to cycle record, and then how can I view all of the individually recorded takes in the arrange window?
    Thanks,
    Trent

    Jord, when I called it a "phenomenon" I did not mean to describe it as a bug or fault - you're right, it is a desireable feature of cycle recording.
    As far as your question goes: Suppose you are recording track-by-track a song with two parts, an acoustic guitar and vocals, and the acoustic guitar part has an intricate eight-bar solo that needs to be redone. The advantage of using cycle recording and autodrop here is that you could define a cycle region giving you a two-bar intro (say) to the part you need to rerecord and a couple of bars of outro, making it easier to accomplish a musical phrasing. For example, say you're a vocalist trying to record a one-octave scale, and your pitch is off on the "fa-so." With cycle recording and autodrop, you could sing along with the "do-re-mi" and settle your pitch before rerecording the notes you flubbed, whereas (as I understand it) if you're just rerecording the "fa-so" in cycle mode, you won't get the "do-re-mi" as an intro after the first pass and would then just hope that you're nailing the notes you need to rerecord cold.
    You can combine cycle recording with autodrop in Midi - why not in audio? It's a desireable feature in both.

Maybe you are looking for