- 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.
- Unreal Engine Physics Essentials
- C語言程序設計案例教程(第2版)
- Python計算機視覺編程
- Ray分布式機器學習:利用Ray進行大模型的數據處理、訓練、推理和部署
- PostgreSQL Replication(Second Edition)
- Jupyter數據科學實戰
- Python算法從菜鳥到達人
- R語言與網絡輿情處理
- Access 2010數據庫應用技術(第2版)
- Building Machine Learning Systems with Python(Second Edition)
- Unity&VR游戲美術設計實戰
- 深入理解BootLoader
- 遠方:兩位持續創業者的點滴思考
- C#網絡編程高級篇之網頁游戲輔助程序設計
- Mastering Unity 2017 Game Development with C#(Second Edition)