Comments (4)
Oh sorry... I just found line 328 in pianoputer_stereo.py # todo if the window lost focus cant hear the SOUND
So it's on your todo list already 👍 , hopefully you will implement solution soon. Thanks!
from pianoputer.
I've found WINDOWEVENT_FOCUS_LOST event attribute on pygame.display.set_mode but I have no idea how to use it or if it is usable at all...
from pianoputer.
Hi Kosirm,
Yes you could do a fix with WINDOWEVENT_FOCUS_LOST, therefore there is an easier way.
Use pygame.event.set_grab(True) just before the WHILE loop in the code.
The focus event allow pygame to control the keyboard and mouse directly, meaning that pygame will be the first to collect your keyboard/mouse inputs while the program is running
To switch between your windows, use ALT-TAB or exit pianocumputer.
Kind Regards
from pianoputer.
Thank you so much! I will do this now... BR
from pianoputer.
Related Issues (20)
- Nothing happens?
- not supporting two-channel wave files HOT 2
- value error HOT 6
- Direction on the input audio file for the azerty keyboard HOT 2
- PYGAME 2 , SDL2: fix mixer errors, mixer.init(..., allowchanges=0) #861 HOT 7
- video effect when playing pianoputer HOT 3
- Can't save KB file HOT 2
- Publishing to pypi HOT 3
- Cannot build/run from source HOT 2
- AttributeError: 'Event' object has no attribute 'key' HOT 6
- 跪拜大佬牛年福星高照 (Kneel down to the big man, the year of the ox???) HOT 2
- 请教您键盘布局图是怎么绘制的?(Ask you how to draw the keyboard layout) HOT 7
- Can i install this with python 3.11? HOT 1
- License
- pitch_shift() takes 1 positional argument but 2 positional arguments (and 1 keyword-only argument) were given HOT 1
- hey why doesnt this thing get fixed
- Harpsichord more than a PianoForte?? HOT 2
- Unable to Transpond Sound File HOT 2
- Idea: Try mapping the keys to a stenography machine layout. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pianoputer.