I made it before Create a synthesizer in Python and play it. is a story that made the synthesizer introduced into an exe so that it can be used on windows. If you are interested, please read it. I posted an article and updated it little by little after that to make it easy for me to use. Even so, when I still used it, I had to hit a Python command or debug from the IDE, which was troublesome, so I tried to make it an exe.
It is a program that creates a sound source from a music score from the command prompt and obtains a scale from the frets of a guitar. Please read past articles for how to use it.
Also, make sure that the folder where this exe file etc. is placed can be read and written.
windows10 python 3.9 pyinstaller 4.1
I think you can understand this by reading the previous article and the included sample.txt, so I will omit it.
It can be used by entering c
inEnter file name. (Enter "q", quit program, "c", check chord.)
.
The first How many strings on the guiter. (Ex. 6, 12, etc ...)
is the number of strings, and the next Please enter the tuning of the 6th string with KEY and number. (Ex. E1, Set the tuning of each string with Gs2, etc ...)
.
Then, in Please enter the number of the fret on the 6th string. (Ex. 3, 5, etc ...)
, enter the fret number of each string, and it will be finally used. The scale and its sound source are output. The sound source is a composite of sine waves, so the sound is dirty.
For muted strings, enter characters other than numbers such as -
.
Exit the program by typing q
atEnter file name. (Enter "q", quit program, "c", check chord.)
.
I used pyinstaller for exe conversion, but it was said that cross-compilation was not possible, so I planned to compile it on Ubuntu and use it, but I decided to put Python and its modules in windows as well. It seems that Python also has a compiler, and there is also a compiled file called pyc. I think it's probably an exe using this, but I haven't investigated it yet. After that, if I have the opportunity and time, I'll check it out.
Recommended Posts