View Single Post
Old 04-19-2019, 06:33 PM   #457
Foxssg
Human being with feelings
 
Join Date: Mar 2019
Posts: 10
Default

Quote:
Originally Posted by mschnell View Post
Yep. This thread.

But I don't even know what exactly is meant by "song switching".
-Michael
I want to be able to switch projects pressing one key.
For example, I've a project for every song, in a show it could be 7-10 songs, so there are 7-10 projects, I want to start from song 1 and pressing one key close song 1 and go to song 2, then with the same key close song 2 and go to song 3, and another key to go to the previous project.
I've used the script song switcher, but the script works with one project within all the songs, it's too heavy and when I'm playing lots of keys in my piano the sound loses quality.

I've write this in python:

import os, sys, pyautogui, time


os.system("x-terminal-emulator -e /bin/bash")
time.sleep(1)
pyautogui.typewrite('xdg-open song1')
pyautogui.press('enter')
time.sleep(10)
pyautogui.press('esc')
time.sleep(1)
pyautogui.press('space')
time.sleep(340)
pyautogui.hotkey('alt', 'f4')
time.sleep(10)
pyautogui.typewrite('python3 python_song2.py')

That works but it's awful, and painful to change between setlist. I've to edit all the python files that is one for every song, and I've to know how many seconds every song lasts and it can't change backwards.
Foxssg is offline   Reply With Quote