You get these by selling R Grade or higher Performance Cards. You get more of them by selling more valuable cards.
You can use Memory Catchers to purchase Miracle Rhythm Cubes, a maximum of 80 every week. You can purchase these in the Trade Shop section of Performance Cards