- Tkinter GUI Application Development Blueprints(Second Edition)
- Bhaskar Chaudhary
- 279字
- 2021-06-24 18:35:12
Getting started
Our goal here is to build a programmable drum machine. Let's call it the Explosion Drum Machine.
The drum machine will let the user create an unlimited number of beat patterns using an unlimited number of drum samples. You can then store multiple riffs in a project and playback or edit the project later on. In its final form, the drum machine would look like the following screenshot:

To create your own drum beat patterns, simply load some drum samples (which can be any audio file with a .wav or .ogg extension) using the buttons on the left. You can design your beat patterns by clicking on the buttons on the right.
You can decide the number of beats per unit (BPU). Most western beats have 4 BPU, a Waltz would have 3 BPU, and some Indian and Arabic rhythms that I composed on this machine had 3-16 BPU! You can also change the beats per minute (BPM), which in turn decides the tempo of the rhythm.
A single pattern, as shown in the previous screenshot, constitutes a single beat pattern. You can design multiple beat patterns by changing the Pattern Number Spinbox widget in the top-left section.
Once you have made some beat patterns, you can even save the pattern and later replay or modify it. The saving and reloading of files are done from the File menu at the top.
A few drum samples are provided in the Loops subdirectory; however, you can load any other drum sample. You can download a large number of samples for free from the internet.
- HTML5移動Web開發(fā)技術
- Docker進階與實戰(zhàn)
- Podman實戰(zhàn)
- Python高效開發(fā)實戰(zhàn):Django、Tornado、Flask、Twisted(第3版)
- The Complete Coding Interview Guide in Java
- Learning OpenStack Networking(Neutron)
- Building Machine Learning Systems with Python(Second Edition)
- RESTful Java Web Services(Second Edition)
- Processing創(chuàng)意編程指南
- 從零開始:UI圖標設計與制作(第3版)
- JavaScript+jQuery網(wǎng)頁特效設計任務驅動教程
- Tableau Desktop可視化高級應用
- PyQt編程快速上手
- Building UIs with Wijmo
- Python繪圖指南:分形與數(shù)據(jù)可視化(全彩)