Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8773897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:25:20+00:00 2026-06-13T18:25:20+00:00

I want to modify a code so I can add a virtual guitar notes

  • 0

I want to modify a code so I can add a “virtual guitar notes” whenever user presses a keyboard key. The problem is I don’t understand the following code:

        (b = c) ? b = "number" 
        == typeof b.which ? 3 : "number" 
        == typeof b.keyCode ? 2 : "number" 
        == typeof b.charCode ? 4 : 0 
        : (b = window.event, b = "number" == typeof b.keyCode ? 1 : 0); 

and

        0 != b ? 
        ("number" == typeof c.modifiers ? a += "var c=f.modifiers;" 
        : "boolean" == typeof c.shiftKey ? a += "var c=f.shiftKey*4+f.ctrlKey*2+f.altKey;" 
        : Stop(), c.srcElement ? a += "var d=f.srcElement;" 
        : c.target ? a += "var d=f.target;" 
        : St()) 
        : St(); 

and

        DFunct || (d=10, f=11);

I understand that the last line translates to this:

        if(!DFunct){
           d=10;
           f=11;
        }

I need to make this using simple if else statements so I can make a note playing based on values pressed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:25:23+00:00Added an answer on June 13, 2026 at 6:25 pm

    First:

    b = c;
    
    if ( c ) {
    
        if ( typeof b.which === "number" ) {
    
            b = 3;
    
        } else {
    
            if ( typeof b.keyCode === "number" ) {
    
                b = 2;
    
            } else {
    
                if ( typeof b.charCode === "number" ) {
    
                    b = 4;
    
                } else {
    
                    b = 0;
    
                }
    
            }
    
        }
    
    } else {
    
        b = window.event;
        b = typeof b.keyCode === "number" ? 1 : 0;
    
    }
    

    Second:

    if ( b !== 0 ) {
    
        if ( typeof c.modifiers === "number" ) {
    
            a += "var c=f.modifiers;";
    
        } else {
    
            if ( typeof c.shiftKey === "boolean" ) {
    
                a += "var c=f.shiftKey*4+f.ctrlKey*2+f.altKey;";
    
            } else {
    
                Stop();
    
                if ( c.srcElement ) {
    
                    a += "var d=f.srcElement;";
    
                } else {
    
                    if ( c.target ) {
    
                        a += "var d=f.target;";
    
                    } else {
    
                        St();
    
                    }
    
                }
    
            }
    
    }​ else St();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use code access security and add code modify group. but I
I want to modify some code in the Eclipse JDT itself (In the Debug
I want to add a column to a database table but I don't want
Recently I want to modify nutch's code(Fetcher.java) to save the raw html page into
I got this code, I would like to optimize. I basically can add new
I want to modify a PDF document with PHP. I found the libs FPDF
I want to modify something in Settings.secure database, just as the android Settings app
I want to modify (Remove all white spaces) all the values of Column Name
I want to modify the solution for highlighting trailing whitespace described here by NOT
I want to modify a connection string that's hard-coded in a Java application (jar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.