Search Results

Search found 3 results on 1 pages for 'adsr'.

Page 1/1 | 1 

  • Objective C -- passing array literal to a method

    - by morgancodes
    This seems to work (compiler doesn't complain, anyway): float adsr[4] = {0,1.0/PULSE_SPEED, 0,1}; [sequence setBaseADSR:adsr]; but I want to make it more concise and do this: [sequence setBaseADSR:{0,1.0/PULSE_SPEED, 0,1}]; How do I do it? In javascript, I'd call stuff in the brackets an "array literal". Not sure if C languages have the same concept or terminology though.

    Read the article

  • How can I get JDOM/XPath to ignore namespaces?

    - by AdSR
    I need to process an XML DOM, preferably with JDOM, where I can do XPath search on nodes. I know the node names or paths, but I want to ignore namespaces completely because sometimes the document comes with namespaces, sometimes without, and I can't rely on specific values. Is that possible? How?

    Read the article

  • iPhone/iPad fatal error in C++ code produces no output in the log

    - by morgancodes
    I'm trying to move away from Objective-C to C++ for audio in my iPad programming, due to the a few reports I've heard of Objective-C selectors sometimes causing audio glitches. So I'm starting to use pure C++ files. When a fatal error happens in one of the C++ files, I get no output from the log. The app just crashes. For example, if I do this in my C++ file: env = new ADSR(); cout << "setting env to null\n"; env = NULL; env->setSustainLevel(1); cout << "called function on non-initialized env\n"; I get the following output: setting env to null After that, there's a method called on NULL, which apparently kills the app, but absolutely nothing to that effect is reported. What do I need to do to have useful information logged when there's an error in my C++ code?

    Read the article

1