Re: library with click built-in?
On Sat, Aug 13, 2011 at 06:41:54PM +0200, Polytropon wrote: > Date: Sat, 13 Aug 2011 18:41:54 +0200 > From: Polytropon > Subject: Re: library with click built-in? > To: Gary Kline > Cc: freebsd-questions@freebsd.org > X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; amd64-portbld-freebsd8.2) > > On Sat, 13 Aug 2011 09:14:16 -0700, Gary Kline wrote: > > yep; that's hy i wat to know how to use the gtk stuff! > > If I remember correctly, this is the "esound" component > used by Gtk. I don't know if it has its own sound sub- > system, and in how far it's even possible to generate > tones from a description of frequency + duration. > > It requires a sound card that FreeBSD's drivers can > properly access. > > My first own sound card, the Logitech SnoundMan 16, > had an interesting feature: The PC speaker sound was > put as an input channel for the sound card mixer. I > have no idea how this worked, as the sound card was > a typical 16 bit ISA expansion card, and there was > no wired connection from the PC speaker to the sound > card. However, when the speaker was removend and > addressed - e. g. by ^G = BEL or a sound output command > such as sound(1000); delay(500); nosound(); - the sound > could be heared through the speakers (or amplifier) > attached to the sound card. > > Maybe something similar is still possible today? In > this case, addressing the PC speaker, even if it's > just a little piezo speaker (or not present) would > cause an input to the sound card? This would combine > the easy method of generating simple sounds with the > ability to use whatever one wants to connect to the > sound card (builtin speakers, headphones, speakers > or amplifier). > did i mention that there is a linux python script (by Scott Kirkwood) that uses the gtk stufff to "click" whenever you click a mouse? left or right. so i figure there is a C interface. [[i have taught myself python; need to go re-look at Scott's code. gary > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: library with click built-in?
On Sat, 13 Aug 2011 09:14:16 -0700, Gary Kline wrote: > yep; that's hy i wat to know how to use the gtk stuff! If I remember correctly, this is the "esound" component used by Gtk. I don't know if it has its own sound sub- system, and in how far it's even possible to generate tones from a description of frequency + duration. It requires a sound card that FreeBSD's drivers can properly access. My first own sound card, the Logitech SnoundMan 16, had an interesting feature: The PC speaker sound was put as an input channel for the sound card mixer. I have no idea how this worked, as the sound card was a typical 16 bit ISA expansion card, and there was no wired connection from the PC speaker to the sound card. However, when the speaker was removend and addressed - e. g. by ^G = BEL or a sound output command such as sound(1000); delay(500); nosound(); - the sound could be heared through the speakers (or amplifier) attached to the sound card. Maybe something similar is still possible today? In this case, addressing the PC speaker, even if it's just a little piezo speaker (or not present) would cause an input to the sound card? This would combine the easy method of generating simple sounds with the ability to use whatever one wants to connect to the sound card (builtin speakers, headphones, speakers or amplifier). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: library with click built-in?
On Sat, Aug 13, 2011 at 03:34:18AM +0200, Polytropon wrote: > Date: Sat, 13 Aug 2011 03:34:18 +0200 > From: Polytropon > Subject: Re: library with click built-in? > To: Gary Kline > Cc: freebsd-questions@freebsd.org > X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; amd64-portbld-freebsd8.2) > > On Fri, 12 Aug 2011 16:02:24 -0700, Gary Kline wrote: > > thanks. i have _never_ heard the BEL inmy version of > > ubuntu. my server is a 2-proc dell, too cheap to > > have a real spkr; it does beep [bbarely] thanks to some kind > > of piezo gimmick. but no speaker connections. > > This is typical for today's hardware. In some cases, > it's possible to remove the piezo "speaker" and attach > a regular one, but this _might_ kill something on the > mainboard, so it's not adviced. In worst case, it should > be possible to get the signal and put it through a simple > amplifier (e. g. an A210, but that's too much work for > just a beep). yep; that's hy i wat to know how to use the gtk stuff! gary > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: library with click built-in?
On Fri, 12 Aug 2011 16:02:24 -0700, Gary Kline wrote: > thanks. i have _never_ heard the BEL inmy version of > ubuntu. my server is a 2-proc dell, too cheap to > have a real spkr; it does beep [bbarely] thanks to some kind > of piezo gimmick. but no speaker connections. This is typical for today's hardware. In some cases, it's possible to remove the piezo "speaker" and attach a regular one, but this _might_ kill something on the mainboard, so it's not adviced. In worst case, it should be possible to get the signal and put it through a simple amplifier (e. g. an A210, but that's too much work for just a beep). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: library with click built-in?
On Fri, Aug 12, 2011 at 09:39:21PM +0200, Polytropon wrote: > Date: Fri, 12 Aug 2011 21:39:21 +0200 > From: Polytropon > Subject: Re: library with click built-in? > To: Gary Kline > Cc: freebsd-questions@freebsd.org > X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; amd64-portbld-freebsd8.2) > > On Fri, 12 Aug 2011 12:27:48 -0700, Gary Kline wrote: > > I only use my FreeBSD computer as a server; it isn't even hooked > > up to my speakers, so there is no way of testing anything i write > > that involves sound. So does anybody know if any other toolkit > > outputs audio? > > There are two means: > > The first one is the echoing of the ^G (BEL) character, 0x07 > which is handled by the text mode console or terminal emulators > like xterm. In X, the sound that will be produced can be > controlled with a xset setting. > > xset [-b] [b {on|off}] [b [volume [pitch [duration > > See "man xset" for details. > > > The other one is the system speaker. If you have "device speaker" > in your kernel, you can access /dev/speaker (if the permissions > are set properly, see /etc/devfs.conf for an example. Using > the "note language" known from several BASIC dialects for > microcomputers, you can easily create sounds for that. A list > of the "note language" is in "man 4 speaker". > > Here's a small example: > > #!/bin/sh > read -p "CW ===> " TEXT > echo ${TEXT} | morse | awk '{ > if(length($0) == 0) > printf("P4\n"); > else { > gsub(" dit", "P32L32E", $0); > gsub(" di", "P32L32E", $0); > gsub(" dah", "P32L8E", $0); > printf("%sP16\n", $0); > } > }' | dd bs=256 of=/dev/speaker > /dev/null 2>&1 > > NB: The timing is slightly out of proper relation. :-) > > > thanks. i have _never_ heard the BEL inmy version of ubuntu. my server is a 2-proc dell, too cheap to have a real spkr; it does beep [bbarely] thanks to some kind of piezo gimmick. but no speaker connections. i'll check around on my homebrew desktop... > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: library with click built-in?
On Fri, 12 Aug 2011 12:27:48 -0700, Gary Kline wrote: > I only use my FreeBSD computer as a server; it isn't even hooked > up to my speakers, so there is no way of testing anything i write > that involves sound. So does anybody know if any other toolkit > outputs audio? There are two means: The first one is the echoing of the ^G (BEL) character, 0x07 which is handled by the text mode console or terminal emulators like xterm. In X, the sound that will be produced can be controlled with a xset setting. xset [-b] [b {on|off}] [b [volume [pitch [duration See "man xset" for details. The other one is the system speaker. If you have "device speaker" in your kernel, you can access /dev/speaker (if the permissions are set properly, see /etc/devfs.conf for an example. Using the "note language" known from several BASIC dialects for microcomputers, you can easily create sounds for that. A list of the "note language" is in "man 4 speaker". Here's a small example: #!/bin/sh read -p "CW ===> " TEXT echo ${TEXT} | morse | awk '{ if(length($0) == 0) printf("P4\n"); else { gsub(" dit", "P32L32E", $0); gsub(" di", "P32L32E", $0); gsub(" dah", "P32L8E", $0); printf("%sP16\n", $0); } }' | dd bs=256 of=/dev/speaker > /dev/null 2>&1 NB: The timing is slightly out of proper relation. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
library with click built-in?
I have discovered that the gnome toolkit has a click built in. someone has created an educational tool that clicks whenever you use the mouse. [linux.] I only use my FreeBSD computer as a server; it isn't even hooked up to my speakers, so there is no way of testing anything i write that involves sound. So does anybody know if any other toolkit outputs audio? tia, folks. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"