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...
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?
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...
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...
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:
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...
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...
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...
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.