The story of making Python an exe

The story of making Python an exe

Introduction

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.

download

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.

Download

Execution environment

windows10  python 3.9  pyinstaller 4.1

readme-like

Score file

I think you can understand this by reading the previous article and the included sample.txt, so I will omit it.

Find the scale from the frets of the guitar

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 -.

End

Exit the program by typing q atEnter file name. (Enter "q", quit program, "c", check chord.).

Afterword

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

The story of making Python an exe
The story of making an immutable mold
The story of Python and the story of NaN
The story of an error in PyOCR
The story of manipulating python global variables
The story of blackjack A processing (python)
The story of making a standard driver for db with python.
[Pythonista] The story of making an action to copy selected text
The story of making a module that skips mail with python
the zen of Python
The story of sys.path.append ()
The story of low learning costs for Python
The story of making the Mel Icon Generator version2
Image processing? The story of starting Python for
The story of making a lie news generator
The story of reading HSPICE data in Python
The story of making a mel icon generator
The story of making a university 100 yen breakfast LINE bot with Python
The story of building Zabbix 4.4
The story of Python without increment and decrement operators.
[Apache] The story of prefork
About the ease of Python
The story of making a music generation neural network
The story of FileNotFound in Python open () mode ='w'
About the features of Python
The story of automatic language conversion of TypeScript / JavaScript / Python
The story of making a tool to load an image with Python ⇒ save it as another name
The Power of Pandas: Python
The story of implementing the popular Facebook Messenger Bot with python
The story of how the Python bottle worked on Sakura Internet
The story of introducing jedi (python auto-completion package) to emacs
A story about an amateur making a breakout with python (kivy) ②
The story of rubyist struggling with python :: Dict data with pycall
The process of making Python code object-oriented and improving it
A story about an amateur making a breakout with python (kivy) ①
[Python] Tensorflow 2.0 did not support Python 3.8, so the story of downgrading Python
The story of making a question box bot with discord.py
[Python] The stumbling block of import
First Python 3 ~ The beginning of repetition ~
The story of participating in AtCoder
Existence from the viewpoint of Python
pyenv-change the python version of virtualenv
Get the attributes of an object
Change the Python version of Homebrew
The story of the "hole" in the file
[Python] Understanding the potential_field_planning of Python Robotics
Review of the basics of Python (FizzBuzz)
The story of remounting the application server
About the basics list of Python basics
Story of power approximation by Python
The story of writing a program
Learn the basics of Python ① Beginners
The story that the version of python 3.7.7 was not adapted to Heroku
How to know the internal structure of an object in Python
March 14th is Pi Day. The story of calculating pi with python
A story that struggled to handle the Python package of PocketSphinx
Calculate the editing distance as an index of pronunciation similarity [python]
The story of running python and displaying the results without closing vim
A story about a person who uses Python addicted to the judgment of an empty JavaScript dictionary
The story of trying to reconnect the client
Check the behavior of destructor in Python