Comments (23)
confirmed that tab key doesn't trigger playback in Sound editor windows on praat 6.0.11 on Xubuntu 14.04 (both 64-bit). I tried messing with the sound playing preferences but this didn't change the behavior (tried both PulseAudio and ALSA via PortAudio, and both asynchronous and interruptible). @Trevortds surely you can still play back by clicking on the gray rectangles (e.g. "visible part" or "total duration") below the waveform or spectrogram? Or is it really only the menu command that works?
from praat.
To be perfectly honest, I did not know that the grey rectangles across
the bottom of the display were buttons. They do work, it is only the
keyboard shortcut that does not.
To me it is pretty clearly not a problem related to PulseAudio or ALSA,
but something internal to Praat. Even without that workaround, I could
get it to work before by typing in a start and end point in the menu
command. It's worth noting that the "play" menu command (the one that
binds to tab) also does not work when clicked. Only the menu command
marked "play..." that opens a dialog.
On 01/19/2016 01:58 PM, Daniel McCloy wrote:
confirmed that tab key doesn't trigger playback in Sound editor
windows on praat 6.0.11 on Xubuntu 14.04 (both 64-bit). I tried
messing with the sound playing preferences but this didn't change the
behavior (tried both PulseAudio and ALSA via PortAudio, and both
asynchronous and interruptible). @Trevortds
https://github.com/Trevortds surely you can still play back by
clicking on the gray rectangles (e.g. "visible part" or "total
duration") below the waveform or spectrogram? Or is it really only the
menu command that works?β
Reply to this email directly or view it on GitHub
#161 (comment).
from praat.
Thanks for clarifying. I'm seeing the same thing here: Play window (Shift+Tab)
and Play or stop (Tab)
are both giving no response when selected from the View
menu or when attempting to invoke from their keyboard shortcuts. Given that the menu commands fail too, I don't think it's an issue of the OS swallowing the keystrokes before they are passed on to praat (which would have been my next guess: I've seen it happen with other apps, especially the Super
key).
re: sound playing preferences: I wasn't expecting ALSA/Pulse to make a difference either, but I'm less certain about the asynchronicity setting.
from praat.
I cannot reproduce this on my end (Kubuntu 15.10 32-bit running Praat 6.0.11). The executable I'm using was downloaded from the Github releases.
Tab playback works as expected, with both Shift+Tab and plain Tab.
from praat.
I just tried the 32-bit version of 6.0.11 and still experience the error. @jjatria @PaulBoersma any ideas what else I should try to narrow down the cause of this?
from praat.
Is NumLock activated? It doesn't work if it's ON on my computer.
from praat.
you have got to be joking me. All this time all I needed was to activate NumLock? I didn't know it affected any keys outside the number pad. Worked for me, @Trevortds can you confirm?
from praat.
all I needed was to activate NumLock?
You had to activate NumLock for Tab to work?
In my computer Tab playback does not work when NumLock is activated.
from praat.
as @jjatria says, it only works if I deactivate NumLock. But I was confused by the fact that apparently the NumLock LED indicator on my keyboard is lit when NumLock is inactive (I rarely use the number pad, so somehow I never noticed before). So (LEDs notwithstanding) it looks like our computers behave the same way.
from praat.
Can confirm, the tab key works properly when numlock is off. (my
keyboard also does not have an indicator light, but I checked the
behavior with a text editor)
So, I guess this is kind of a workaround. I can live with that. I don't
do data entry that often, so switching numlock on and off is not a
problem. Perhaps this quirk should be noted in the documentation, or get
a spot on the "linux installation" website.
On 01/20/2016 12:50 PM, Daniel McCloy wrote:
edit as @jjatria https://github.com/jjatria says, it only works if
I /deactivate/ NumLock. But I was confused by the fact that apparently
the NumLock LED indicator on my keyboard is lit when NumLock is
inactive (I rarely use the number pad, so somehow I never noticed
before). So (LEDs notwithstanding) it looks like our computers behave
the same way.β
Reply to this email directly or view it on GitHub
#161 (comment).
from praat.
I'd like to repair this, but I don't have any keyboards with a numeric keypad. Can anybody look into sys/praat.cpp -> line1449 -> function theKeySnooper, and report to me what event->keyval and event->state become when you press Tab with NumLock on?
from praat.
I tried compiling with -D_DEBUG
, and uncommenting these lines from colamd.c
to no avail.
How can I enable debugging?
from praat.
colamd.c explains that three lines later, but all that isn't really necessary: a simple printf
in theKeySnooper
should do fine. Like this:
fprintf (stderr, "key event %d %d\n", (int) event -> keyval, (int) event -> state);
from praat.
This is from Praat compiled at 0c065e0 on Kubuntu on a laptop without a numpad:
Regular tab
key event 65289 0
key event 65289 0
Enable NumLock
key event 65407 0
key event 65407 16
Tab with NumLock
key event 65289 16
key event 65289 16
Disable NumLock
key event 65407 16
key event 65407 16
from praat.
OK, this confirms a remark that I saw somewhere, which is that the NumLock key is associated with the half-named "MOD2" key in GDK. I now know how to fix this (if indeed NumLock is MOD2 on all computers).
from praat.
Good to hear!
I just tried it in a different computer (with an external keyboard) just in case, and the numbers are the same.
from praat.
Can you all check that the problem was fixed in version 6.0.14?
from praat.
Hmmm... no, and in fact 6.0.14 doesn't work for me at all. When I try to play a Sound it plays a sort of garbled sound and freezes. In the console, this is printed when the sound plays:
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
[... repeated until freeze]
The program doesn't exit after this happens, it just freezes. No input works, and the window cannot be closed.
from praat.
Playing from a script (with --run
) with 6.0.14 also has the same effect.
from praat.
Please check that it's 6.0.14 (I know you have a 32-bit computer). Did you set the "output sound system" to PulseAudio in "Sound playing preferences"?
from praat.
I just tried again making sure that the Sound playing preferences were set to PulseAudio (which didn't use to work for me), and this time it did work, both with and without NumLock. :)
from praat.
confirmed tab key working on Xubuntu 14.04 64-bit (with 64-bit praat 6.0.14), both with and without numlock. Thanks @PaulBoersma !
from praat.
I'll considered the problem fixed then. Thanks for your help.
from praat.
Related Issues (20)
- Failing test on Windows because of mismatched path separator HOT 1
- Wrong output for "Create SpeechSynthesizer" in Praat 6.3.15 HOT 2
- Add license file to the repository HOT 2
- Extraneous files in 6.3.17 tarball HOT 4
- [feature request] please support save sound to disk as mp3 (in Menu: View & Edit>FIle>Save sound to disk) HOT 2
- Version 6.3.18 failing to build from source on i386 architecture HOT 11
- Allow selection of a boundary without clicking on it exactly
- boolean in beginPause bug
- [feature request] please support reading m4a audio format HOT 1
- number# doesn't work
- Chromebook Lenovo C330 Help! HOT 1
- [Bug] The numberOfFourierSamples may be changed after a window function is applied to the sound data in the menu command "View spectral sliceβ
- [Feature request] Allow customized placement of pause window continuation buttons
- Hide/show tiers in TextGrid HOT 5
- [Documentation] Missing setting "Attenuation at ceiling" in documentation HOT 1
- On linux/wayland demoShow doesn't immediatly show window
- The 'select earlier/later' shortcut keys do not work in the Linux system.
- Praat v6.4.06 - form/endform - text type - Praat interprets text: numberOfLines, variable$, initialValue$ as text: variable$, initialValue$ HOT 1
- Praat 6.4.06 - Windows 10 - Table: sort rows - GUI issues
- Precision issue in test_ HOT 1
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 praat.