Recent content by Bob Walance

  1. Bob Walance

    Collection of Lame Jokes

    An Irishman in a Dublin pub has the habit of ordering three separate pints of Guinness. He would set them down on the table and carefully take a sip from each glass one-by-one. This goes on for many weeks when someone in the pub gets curious and decides to ask the man why he does this. He...
  2. Bob Walance

    Collection of Lame Jokes

    I was reading an obituary page today in the newspaper and noticed that everyone listed in this obituary had died in alphabetical order.
  3. Bob Walance

    C++ How to invoke an object's method in a different file

    Wow. That works! Yes, a single instance of the class (really it's no instance) is just fine for my application. Thank you for the simple solution.
  4. Bob Walance

    C++ How to invoke an object's method in a different file

    I don't want to create and destroy the instance for each periodic timer interrupt. While this would probably work, it seems messy. A pointer to the instance could be created in timer_functions.cpp, but how would it get passed to the timer interrupt?
  5. Bob Walance

    C++ How to invoke an object's method in a different file

    I have created an object for the class Timers in timer_functions.cpp, and I need to run a method associated with that object ( test_method() ) from interrupts.cpp. I've tried many things but have been unsuccessful. Any ideas would be appreciated. Here is some sample code: classes.hpp...
  6. Bob Walance

    Insights Quantum Computing for Beginners

    I have updated the PDF (now rev 4) with a few clarifications and corrections. Also, a table of contents has been added.
  7. Bob Walance

    B Quantum entanglement and hidden variables

    In the 'Many Worlds' interpretation of quantum physics, both entangled particles will exist in separate worlds when a measurement is performed. For example, in the case of a simple Bell pair where the wave function has 50% probability of finding the two particles with spin up and 50% probability...
  8. Bob Walance

    Today I Learned

    Today I learned that it was Pythagoras' mother who was the first person ever to use the expression, "Do the math!"
  9. Bob Walance

    Music Music to Lift Your Soul: 4 Genres & Honorable Mention

    I find that The Shaggs' music is especially refreshing.
  10. Bob Walance

    Music Equal temperament vs instrument harmonics in music

    Thanks, Algr. The word 'nonanive' might be appropriate for a diatonic scale that has eight different notes. We would just have to change the layout of the piano - and that is absolutely okay by me. :wink:
  11. Bob Walance

    Music Equal temperament vs instrument harmonics in music

    Thanks for trying it on a Mac. Are you saying that all of the buttons work properly and play all of the tones in the Chrome browser?
  12. Bob Walance

    Music Equal temperament vs instrument harmonics in music

    The tones in the harmonic scale for this app are shown in the code below. These are the tones that occur in nature (e.g., for a plucked string). The only human-created scale or chord that I am demonstrating is for equal temperament. const tOn = 0.5; const tOff = 0.1; const fStart = 110; const...
  13. Bob Walance

    Music Equal temperament vs instrument harmonics in music

    The traditional major scale has seven notes. The scale that is being played in the app has eight notes because I am including the dominant 7th note of the scale. This is done in order to directly compare it with the eight notes of the harmonics. I am also playing the octave note so there are...
  14. Bob Walance

    Music Equal temperament vs instrument harmonics in music

    Our brains are apparently musically happy when different individual notes are harmonically related to each other. In our music system, the fundamental frequencies of the different notes on a musical instrument such as the piano or the guitar are related to each other in such a way as to allow...
  15. Bob Walance

    JavaScript Button click event image hiding is delayed

    YES! Your solution works perfectly. I was just about to give up and try a different approach, but you completely solved my problem. Thank you very much, liker of Serena.
Back
Top