Git Product home page Git Product logo

Comments (23)

drammock avatar drammock commented on June 21, 2024

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.

Trevortds avatar Trevortds commented on June 21, 2024

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.

drammock avatar drammock commented on June 21, 2024

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.

jjatria avatar jjatria commented on June 21, 2024

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.

drammock avatar drammock commented on June 21, 2024

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.

jjatria avatar jjatria commented on June 21, 2024

Is NumLock activated? It doesn't work if it's ON on my computer.

from praat.

drammock avatar drammock commented on June 21, 2024

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.

jjatria avatar jjatria commented on June 21, 2024

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.

drammock avatar drammock commented on June 21, 2024

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.

Trevortds avatar Trevortds commented on June 21, 2024

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.

PaulBoersma avatar PaulBoersma commented on June 21, 2024

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.

jjatria avatar jjatria commented on June 21, 2024

I tried compiling with -D_DEBUG, and uncommenting these lines from colamd.c to no avail.

How can I enable debugging?

from praat.

PaulBoersma avatar PaulBoersma commented on June 21, 2024

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.

jjatria avatar jjatria commented on June 21, 2024

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.

PaulBoersma avatar PaulBoersma commented on June 21, 2024

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.

jjatria avatar jjatria commented on June 21, 2024

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.

PaulBoersma avatar PaulBoersma commented on June 21, 2024

Can you all check that the problem was fixed in version 6.0.14?

from praat.

jjatria avatar jjatria commented on June 21, 2024

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.

jjatria avatar jjatria commented on June 21, 2024

Playing from a script (with --run) with 6.0.14 also has the same effect.

from praat.

PaulBoersma avatar PaulBoersma commented on June 21, 2024

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.

jjatria avatar jjatria commented on June 21, 2024

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.

drammock avatar drammock commented on June 21, 2024

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.

PaulBoersma avatar PaulBoersma commented on June 21, 2024

I'll considered the problem fixed then. Thanks for your help.

from praat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.