How to filter audio datas???

Estou usando o LabView em meu trabalho de graduação. Preciso usar filtros(passa-baixas e passa-faixas) para filtrar os dados de áudio oriundos da placa de som. Infelizmente só consigo filtrar em tempo real utilizando o formato mono-16bits. Para os outros formatos, mono(8 bits) e stereo(8 e 16 Bits) não obtive sucesso.
Desenvolvemos nossos filtros, mas mesmo se usarmos o filtro ButterWorth(do próprio LabView), quer seja o FPB ou FPF, só conseguimos para o formato mono-16bits.
Agradeço a atenção.
Watts.

Watts;
Estou atachando dois arquivos a esta resposta. Um deles gera sinais sonoros mono e estereo. Na mesma VI, voce tem opção de equalização, oi que é filtragem.
Espero que ajude.
Atenciosamente
Filipe A.
Applications Engineer
National Instruments
Attachments:
Equalizer_Examples.zip ‏1787 KB
sound41_lib.zip ‏285 KB

Similar Messages

  • How to filter the data in different sections (e.g. Report Footers)?

    Hi,
    I am using Crystal Reports 11 to generate cross-tables.
    I plan to generate 3 cross-tabs, and each cross-table will be put in a section. For example, cross-tab1 in Report Footer a; cross-tab2 in Report Footer b; cross-tab3 in Report Footer c.
    I know use "Select Expert" to filter data. But, it seems that "Select Expert" filters data for the whole report.
    I want to filter the data for each cross-table separately. For example, filter cross-tab1 based on condition1; filter cross-tab2 based on condition2; filter cross-tab3 based on condition3.
    How to filter the data in different sections (e.g. Report Footers)?
    Thank you in advance.

    Hi,
    Now that you've inserted the subreport just right-click the sub-report and click Edit. The Design page for sub-report should open up.
    You can now insert the cross-tab on the Report Header and insert a record selection formula of your choice.
    Also, suppress all the other sections of the subreport so the Main report only shows the crosstab without any spaces.
    Do the same for all the subreports.
    -Abhilash

  • How to filter the data in dropdown?

    Hello,
    How to filter the data
    I got all the project name in dropdown when you select the project name in other textbox the project id will come automatically.
    so I want to get only those project name that is assigned to that particular user.
    I have
    ProjectName(dropdown),
    ProjectId(Textbox),
    Employee code(Unique value),
    employee Id (Unique for particular employee means if User A works on 5 projects so for all 5 projects the employee Id will be same),
    Project Id( 5 projects 5 different id)
    I didnt get the exact formula or I have to use any javascript code.Any help...
    Thanks,

    If I am understanding correctly, you want to populate a drop down with values from a list.
    Using InfoPath:
    right click on the drop down to be populated, and choose drop down list box properties.
    add the list with the values as a data source.
    click the filter box next to entries.
    select the field you want from the other list.
    click filter data.
    set the filter (click AND if you need more lines).
    click OK on any dialogs you need to to get back to the editor.
    Test your form.

  • How to filter the data on Reports from collected from differnet Agents

    1) I have to write a Plug-in which would fetch the same type of data from 7 Agents. I need to generate the report for each Agent separately,This plug-in will be deployed in various different environment. So I will not know the host name as it will be deployed different environment. Can anyone suggest how to filter the data for each agent from the table. I see one solution of using Bind variable for the Target GUID in PL/SQL file. Can you please suggest if there is any other better way of doing this.????
    Also Can you please suggest what are the best ways to debug the OEM Plug-in?
    Thanks Anyway.....

    What I mean filtering data means displaying data for each Agent Seperatly. Assume I have collected Filesystem data from 5 Agents (5 different server). Now I want do display file system data for Agent1 (server 1). How would I fetch it from MGMT$Metric_Current. Currently I use a bind variable
    ??EMIP_BIND_TARGET_GUID?? to filter the data for a Agent from MGMT$Metric_Current view. I compare Target Name entered while deploying Plug-in with the Target_Name column of specified view.Is there any other way of fetching data from this table for a Agent?
    I hope I am prety clear now. My Problem is IO dont want to force user to enter exact Server name while deploying Plug-in.
    Thanks......

  • How to filter VO data based on user access

    Hello,
    Can anyone help me with an approach for the below case.
    Once a user logs in, we want to show them a list of various Company(s) and Role(s) that they have access to(this comes from a custom Table).Based on the selection they make here, we would like to filter the data(Here company is very much like ORG_ID in Oracle EBS).So how do I apply this criteria across all VOs once the selection is made so that user sees a specific company data only.Also the Role would be used to enable and disable few fields(regions) on the forms.How do we approach getting this done too.Again as in Oracle EBS,this is more like, SPEL in OAF.
    Any help is appreciated.Thnx!
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi All,
    I have made some progress and but I am stuck with an issue now.Please let me know what am I missing here.
    Approach:
    1. Once a user logs in, I display the various operating companies that he has access to as a Table region.As he selects a row in this table, I set a pageFlowscope variable.I am able to display the value also as he selects various companies from the table region displayed.
    2. Now I created a bounded Task flow(BTF) which has a default method activity(ExecuteWithparams) which would take a company as a paramter(bind var) and I have set this to use the pageFlowscope variable referred above.And after this method it goes to a view which displays data for that company data.
    3. Now I dragged and dropped this BTF as a region onto my page.
    Problem: When I run the actual page it says "No data to display" in the BTF region. But there is data in the database for that company.How can I fix this issue or what is it that I am doing wrong.Please help.
    Thanks,
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to decode audio data from dvi/rtp to PCM linear

    Hi all,
    I am getting audio data as DVI/RTP 4 bit mono as input stream but not able to create player for this can any one send me any decoding function so that i can change this data to PCM linear 16 bit format

    S+S, ahh an academic.
    This is actually a forest-trees issue here.
    What your doing is appending the files, which would result in a size of 2S. What you want is somthing of size S. To do this you would need a Normilized merge. I say normalized merge because thats going to give you the best result while still avoiding out of range values.
    This is easy enough to by hand if both streams S1 and S2 are of the same frequency. If they are not the same frequency, the result will be size of the larger file when convereted to whatever uniformfrequency.

  • How to filter complex data using pl/sql

    Hello,
    i have to filter some data from the table with 1millions rows in it.
    here the requirement
    for example table is TEST
    id type
    1 a
    1 a
    1 b
    2 c
    33 b
    33 b
    33 c
    33 d
    5 c
    5 c
    now i just want to display the results which contains type c only if id is with also connected other than c than i dont want to dislplay that results
    so my result will look like .here i dont want to disply id 33 because some the id with 33 are connected with type other than c.
    id type
    2 c
    5 c
    so can please give me idea to make a query on that table
    thanks in advance

    with t as (
               select  1 id,'a' type_cd from dual union all
               select  1 id,'a' type_cd from dual union all
               select  1 id,'b' type_cd from dual union all
               select  2 id,'c' type_cd from dual union all
               select 33 id,'b' type_cd from dual union all
               select 33 id,'b' type_cd from dual union all
               select 33 id,'c' type_cd from dual union all
               select 33 id,'d' type_cd from dual union all
               select  5 id,'c' type_cd from dual union all
               select  5 id,'c' type_cd from dual
    select  id,
            type_cd
      from  (
             select  id,
                     type_cd,
                     count(distinct type_cd) over(partition by id) cnt,
                     row_number() over(partition by id,type_cd order by 1) rn
               from  t
      where type_cd = 'c'
        and cnt     = 1
        and rn      = 1
            ID T
             2 c
             5 c
    SQL>SY.

  • How to mix audio data from multiple streams without increasing in size?

    For example, two clients use JMF to capture audio in linear format (content type is raw)and both send the captured data to a third client where it performs mixing to generate one data stream. Suppose each source data size is S, the mixed stream (using JMF "merge") size is S+S which is not what I want. Is there any function to generte mixed stream with size S? I don't need to the capability to reverse mixed stream back to two individual source streams.
    Thanks.

    S+S, ahh an academic.
    This is actually a forest-trees issue here.
    What your doing is appending the files, which would result in a size of 2S. What you want is somthing of size S. To do this you would need a Normilized merge. I say normalized merge because thats going to give you the best result while still avoiding out of range values.
    This is easy enough to by hand if both streams S1 and S2 are of the same frequency. If they are not the same frequency, the result will be size of the larger file when convereted to whatever uniformfrequency.

  • How to filter the data in a table UI/

    hi all,
    I have to put filter  and sort functions in my table UI.can ayone please help me how to do this with a code.
    regrads,
    Sharan

    >
    But the only thing is that such function cannot be used in SQL.
    >
    Perhaps you weren't including the use of autonomous transactions?
    CREATE OR REPLACE FUNCTION remove_emp (employee_id NUMBER) RETURN NUMBER AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    tot_emps NUMBER;
    BEGIN
    SELECT COUNT(*) INTO TOT_EMPS FROM EMP3;
    DELETE FROM emp3
    WHERE empno = employee_id;
    COMMIT;
    tot_emps := tot_emps - 1;
    RETURN TOT_EMPS;
    END;
    SQL> SELECT REMOVE_EMP(7499) FROM DUAL;
    REMOVE_EMP(7499)
                  12
    SQL> SELECT REMOVE_EMP(7521) FROM DUAL;
    REMOVE_EMP(7521)
                  11
    SQL> SELECT REMOVE_EMP(7566) FROM DUAL;
    REMOVE_EMP(7566)
                  10
    SQL>

  • How to filter the data displayed in a datatable

    Is there a way to populate a datatable so that the data displays in a column only when it is different than the previous rows. For example if I have a List of InventoryItems that have properties State, WHouse, Widget, Count.
    And I want to display them something like this:
        GA    WH1    Widg1      255
                     Widg2      566
                     Widg3      999
              WH2    Widg1      100
                     Widg4       55
        FL    WH5    Widg1      687
              WH6    Widg5      566I hope the formatting comes out correct. The GA & FL should be in the first column. WHX in the second, WidgX in the third, and the count in the fourth.
    I hope someone has an idea how I can achieve this effect.
    Thanks

    Yes, binding to the rendered property the way you suggested should do the trick.
    FYI, here's an example that illustrates how the <if> component in JSFTemplating works:
    <foreach key="key" list={"A" "B" "C"}>
        <!if !(#{key} = B)>
            <staticText value="Not B, it's '<b>#{key}</b>'</br>" />
        </if>
    </foreach>If you cut / paste that code into a file called test.jsf and run it in a JSFTemplating enabled application (follow the directions on the www site to run the demo app, drop it in that app), it will show values not equal to 'B" (A and C). FYI (#2): the <staticText> component above has a short cut syntax, so it could also be written:
    <foreach key="key" list={"A" "B" "C"}>
        <!if !(#{key} = B)>
            "Not B, it's '<b>#{key}</b>'</br>
        </if>
    </foreach>FYI (#3): You can use any #{} you want in the <if> condition and can form complex boolean equations.
    Good luck!
    Ken Paulsen
    https://jsftemplating.dev.java.net

  • How to filter the data

    Hi
    this is my code in which vkorg is compulsory.
    DATA: ITAB_VBAK TYPE TABLE OF VBAK,
          WA_VBAK TYPE VBAK.
    DATA: ITAB_VBAP TYPE TABLE OF VBAP,
          WA_VBAP TYPE VBAP.
    DATA: P_VKORG TYPE VBAK-VKORG,
          P_KUNNR TYPE VBAK-KUNNR,
          P_VBELN TYPE VBAK-VBELN,
          P_MATNR TYPE VBAP-MATNR,
          P_AUDAT TYPE VBAK-AUDAT,
          P_VDATU TYPE VBAK-VDATU,
          P_ERNAM TYPE VBAK-ERNAM,
          P_VKAUS TYPE VBAP-VKAUS.
    SELECT-OPTIONS: s_VKORG FOR P_VKORG OBLIGATORY,         " Sales Organization
                    s_KUNNR FOR P_KUNNR,         " Sold-to party.
                    s_VBELN FOR P_VBELN,         " Sales Document.
                    s_MATNR FOR P_MATNR,         " Material number.
                    s_AUDAT FOR P_AUDAT,         " Document Date (Date Received/Sent).
                    s_VDATU FOR P_VDATU,         " Requested delivery date.
                    s_ERNAM FOR P_ERNAM,         " Name of Person who Created the Object.
                    s_VKAUS FOR P_VKAUS.         " Usage indicator.
    wa_vbak_key-vbeln = s_vbeln-low.
    append wa_vbak_key to it_vbak_key.
    CALL FUNCTION 'SD_VBAK_ARRAY_READ'
    EXPORTING
      I_BYPASSING_BUFFER          = ' '
      I_REFRESH_BUFFER            =
      TABLES
        IT_VBAK_KEY                 = IT_VBAK_KEY
        ET_VBAK                      = ITAB_VBAK
    EXCEPTIONS
      RECORDS_NOT_FOUND           = 1
      RECORDS_NOT_REQUESTED       = 2
      OTHERS                      = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    The records are coming in the internal table itab_vbak.
    But i want to filter the values coming in the internal table by the value whatever the user enters in select option.
    The first field ie. VKORG is manadatory and rest is optional.
    Please help me out to filter the table.

    hi Darshana,
    You can not directly vaidated records for all those fields which are not mendetory.
    So after getting values in internal table check each record for given selection screen value if not match for any of selection screen value then delete that record fron internal table.
    Reward if useful..

  • Reg :  vo.writeXML() how to filter the data before generating the xml data

    Hi team,
    I have table region with multi selection option.
    My requirement is to fetch the data and generate the xml data for the selected rows.
    By using : writeXML() --> it is fetching all the data.
    What are the methods i need to use,so i can fetch only the selected data ?
    Any pointers ?
    -Sridhar

    Hi Peddi,
    i tried the way u mentioned :
    But the new VO2 (Target) VO is having an extra row, iam not understanding how that is getting stored in VO2.
    Can you please review the below query and let me know if any issue.
    public void copyVO()
    int rowCount=0 ;
    OAFXMLVOImpl vo1 = getOAFXMLVO1(); //source
    OAFXMLVOImpl vo2 = getOAFXMLVO2(); //destination
    OAFXMLVORowImpl row2= null ;
    OAFXMLVORowImpl row1 =null;
    if(vo2!=null && vo2.hasNext())
    { vo2.first();
    do
    vo2.getCurrentRow().remove();
    vo2.next();
    while (vo2.hasNext());
    oracle.jbo.Row[] rows = (oracle.jbo.Row[]) vo1.getFilteredRows("check", "Y");
    rowCount = rows.length;
    if(rowCount>0)
    vo2.setMaxFetchSize(0);
    for(int i=0;i<rowCount;i++)
    row1 = (OAFXMLVORowImpl)rows;
    System.out.println("User ID-->"+ row1.getUserId());
    System.out.println("Checked -->"+ row1.getcheck() );
    row2 = (OAFXMLVORowImpl) vo2.createRow();
    row2.setUserId(row1.getUserId());
    row2.setcheck(row1.getcheck());
    vo2.insertRow(row2);
    row2.setNewRowState(row2.STATUS_INITIALIZED);
    } //end of if
    -Sridhar

  • How to get audio data in (bytes)

    is there a way to get the bytes of a wav file using jmf (not java sound)
    cause i need to draw the waveform of the audio file (any ideas about that 2)
    thanx in advance for replying.

    well it's a bit complicated u have to know the sample size and the byte sex (bigindian or smallindian) ,the following code is taken from SUN javasounddemo
    it can be downloaded from the SUN site.( i recommend downloading it in order to understand the entire code)
    public void createWaveForm(byte[] audioBytes) {
    lines.removeAllElements(); // clear the old vector
    AudioFormat format = audioInputStream.getFormat();
    if (audioBytes == null) {
    try {
    audioBytes = new byte[
    (int) (audioInputStream.getFrameLength()
    * format.getFrameSize())];
    audioInputStream.read(audioBytes);
    } catch (Exception ex) {
    reportStatus(ex.toString());
    return;
    Dimension d = getSize();
    int w = d.width;
    int h = d.height-15;
    int[] audioData = null;
    if (format.getSampleSizeInBits() == 16) {
    int nlengthInSamples = audioBytes.length / 2;
    audioData = new int[nlengthInSamples];
    if (format.isBigEndian()) {
    for (int i = 0; i < nlengthInSamples; i++) {
    /* First byte is MSB (high order) */
    int MSB = (int) audioBytes[2*i];
    /* Second byte is LSB (low order) */
    int LSB = (int) audioBytes[2*i+1];
    audioData[i] = MSB << 8 | (255 & LSB);
    } else {
    for (int i = 0; i < nlengthInSamples; i++) {
    /* First byte is LSB (low order) */
    int LSB = (int) audioBytes[2*i];
    /* Second byte is MSB (high order) */
    int MSB = (int) audioBytes[2*i+1];
    audioData[i] = MSB << 8 | (255 & LSB);
    } else if (format.getSampleSizeInBits() == 8) {
    int nlengthInSamples = audioBytes.length;
    audioData = new int[nlengthInSamples];
    if (format.getEncoding().toString().startsWith("PCM_SIGN")) {
    for (int i = 0; i < audioBytes.length; i++) {
    audioData[i] = audioBytes;
    } else {
    for (int i = 0; i < audioBytes.length; i++) {
    audioData[i] = audioBytes[i] - 128;
    int frames_per_pixel = audioBytes.length / format.getFrameSize()/w;
    byte my_byte = 0;
    double y_last = 0;
    int numChannels = format.getChannels();
    for (double x = 0; x < w && audioData != null; x++) {
    int idx = (int) (frames_per_pixel * numChannels * x);
    if (format.getSampleSizeInBits() == 8) {
    my_byte = (byte) audioData[idx];
    } else {
    my_byte = (byte) (128 * audioData[idx] / 32768 );
    double y_new = (double) (h * (128 - my_byte) / 256);
    lines.add(new Line2D.Double(x, y_last, x, y_new));
    y_last = y_new;
    repaint();

  • How to filter LOV data??

    I m having worked a bit in OAF. My requirement is as follows:
    I m having two LOVs on my page. Name and Order.
    if a user enters name say "ABC" and then he tries to enter Order, LOV for Order shud display orders only for name "ABC".

    Thanks for the help everyone. I solved it using Transaction Values. There was some other requirement so i had to use this.

  • How to filter out data by total value.

    Hi expert,
           I have following requirement for a query:
             employee              overtime_reason_code        overtime_hours
                   1                                      1                                       1
                                                           2                                       6
                                                           3                                       10
           so for an employee, if total overtime_hours>8, then it will be displayed in the report, otherwse , it will be filterred out from the report.
    Many Thanks,

    Hi Bo,
    This suggestion will add another KF in column:
    Create a FORMULA and insert the OVERTIME_HOURS in it..Go to aggregation tab and make it TOTAL with reference characteristic to EMPLOYEE..
    Then make a CONDITION for the FORMULA you have created so that if total is <8 hours, it will not be shown..
    The result will be like this:
             employee              overtime_reason_code        overtime_hours               new formula
                   1                                      1                                       1                                                 17
                                                           2                                       6                                                  17
                                                           3                                       10                                                17
    so if you have employee 2 with total of less than 8 hours, it will not be shown..
    Regards,
    Loed

Maybe you are looking for

  • Need help with duplicate print jobs over network that I can't cancel

    I have the Photosmart Premium All-in-One on my home network.  My kids who each have laptop running Windows 7 and are connected via wireless to the printer via a DLINK DIR-655. They hit the print button too many times and it keeps printing over and ov

  • CSS arrowpoint cookie load balancing issue

    Hi guys, I need some advice on a load balancing issue. We have connections hitting the CSS via a proxy environment. As a result i see only one source ip address. I want to use arrowpoint cookies for session stickeyness. However when i enable the rule

  • Custom post_upgrade hook?

    Something like `customizepkg' but with respect to binary package, sort of additional `post_upgrade' hook. I.e. I would like to change some package configuration automatically after upgrade. For an example:   - changing "hello message" for several uti

  • How to "hide" Windows partitions?

    /etc/udev/rules.d/10-local.rules KERNEL=="sda1", ENV{UDISKS_PRESENTATION_HIDE}="1" Unfortunately, after rebooting, Windows partition is still there (Thunar and other apps). How do I hide it?

  • Disaster Recovery site failover

    Hi all Can someone please assist me, im trying to setup a failover between my primary site and my DR site. I have attached a network connectivity diagram any help you can give me is greatly appreciated. With Thanks