Mellotron
BSFEMA (https://github.com/BSFEMA)
I wanted to see if I could make a Mellotron using pygame that would then work on Linux and Windows.
You need to have the pygame library installed: Please see the pygame website for how to install.
- Download "Mellotron.py" file and the "SourceCodePro-Bold.ttf" files.
- Create a "Mellotron Sound Files" sub folder.
- Add folders that contain 35 sound files to the "Mellotron Sound Files" folder.
- None
- You can change "default_volume" from "60" to whatever volume you want to start off with.
- You can also change the "SourceCodePro-Bold.ttf" font for whatever font would prefer.
- Note: pygame can play .wav, .mp3, .ogg, .flac
- There are Mellotron sound packs that you can "find". I recommend renaming the files like this (or similar) so that they sort better:
-
- G2.wav -> 01-2-G.wav
-
- G#2.wav -> 02-2-G#.wav
-
- A2.wav -> 03-2-A.wav
-
- A#2.wav -> 04-2-A#.wav
-
- B2.wav -> 05-2-B.wav
-
- C3.wav -> 06-3-C.wav
-
- C#3.wav -> 07-3-C#.wav
-
- D3.wav -> 08-3-D.wav
-
- D#3.wav -> 09-3-D#.wav
-
- E3.wav -> 10-3-E.wav
-
- F3.wav -> 11-3-F.wav
-
- F#3.wav -> 12-3-F#.wav
-
- G3.wav -> 13-3-G.wav
-
- G#3.wav -> 14-3-G#.wav
-
- A3.wav -> 15-3-A.wav
-
- A#3.wav -> 16-3-A#.wav
-
- B3.wav -> 17-3-B.wav
-
- C4.wav -> 18-4-C.wav
-
- C#4.wav -> 19-4-C#.wav
-
- D4.wav -> 20-4-D.wav
-
- D#4.wav -> 21-4-D#.wav
-
- E4.wav -> 22-4-E.wav
-
- F4.wav -> 23-4-F.wav
-
- F#4.wav -> 24-4-F#.wav
-
- G4.wav -> 25-4-G.wav
-
- G#4.wav -> 26-4-G#.wav
-
- A4.wav -> 27-4-A.wav
-
- A#4.wav -> 28-4-A#.wav
-
- B4.wav -> 29-4-B.wav
-
- C5.wav -> 30-5-C.wav
-
- C#5.wav -> 31-5-C#.wav
-
- D5.wav -> 32-5-D.wav
-
- D#5.wav -> 33-5-D#.wav
-
- E5.wav -> 34-5-E.wav
-
- F5.wav -> 35-5-F.wav
MIT. See the License file.