The Music-to-Code (MCC) feature in TunePad allows users to simply on click the drum/instrument pad to create simple drum patterns and have the corresponding Python code generated for them. To access this feature, see the instructions below.
Add a new cell using the sidebar on the right side of the screen
2. Select Drums from the menu that comes up
3. Notice the "REC" button on the new Drums cell. Clicking this activates the MCC. Also notice the drum pad labeled with kick, snare, and other sounds. Clicking these will allow you to hear the sounds
4. Click the “REC” button to enter recording mode, which will initially look like the image below.
Buttons from left to right:
Red stop button (stop recording/exit recording mode)
Metronome button to play a pulsing sound at the project’s BPM to keep tempo
Quantize button with a check mark indicating that you’d like the notes you play to be quantized to the nearest 16th note. Don’t worry about this button besides making sure the checkmark is there (simply click on it if it’s not for whatever reason).
Copy to clipboard button which just copies the generated code that appears to your clipboard so you can paste it into the cell
5. Click on the drum pads to record a simple pattern. You’ll see the code generated for you as shown below. Feel free to click the metronome button before you click the drum pad to make your pattern if you need help keeping the beat.
6. Once this code is generated, click “copy to clipboard” and copy paste the code into the cell and play your pattern!