Re: ding!

2017-06-02 Thread ToddAndMargo

On 06/02/2017 11:49 AM, Timo Paulssen wrote:

We have portaudio, which you can write PCM data to, and it'll play.



Thank you!

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


Re: ding!

2017-06-02 Thread Timo Paulssen
We have portaudio, which you can write PCM data to, and it'll play.


Re: ding!

2017-06-02 Thread ToddAndMargo

On 05/31/2017 08:23 PM, ToddAndMargo wrote:

Hi All,

Does Perl 6 have a build in "ding" sound, or do I
need to make a system call (which I do all
the time in bash script)?

Many thanks,
-T



Do we have a module to call a wave file?

Or should I just do a system call to aplay?


--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


Re: ding!

2017-06-01 Thread Brent Laabs
The lack of sound is probably from your terminal.  For instance, iTerm2.app
has the "Silence Bell" option in Preferences > Profiles.

On macOS, this makes a ding noise:
perl6 -e 'run '
or
perl6 -e 'run '

On Wed, May 31, 2017 at 9:18 PM, ToddAndMargo  wrote:

> On 05/31/2017 09:11 PM, Peter Scott wrote:
>
>> On 5/31/17 8:44 PM, ToddAndMargo wrote:
>>
>>> On 05/31/2017 08:39 PM, Lloyd Fournier wrote:
>>>
 perl6 -e 'say "\a"'

>>>
>>> No joy under linux.
>>>
>>> 0x07 does not work either.  Just prints a 7
>>>
>>
>> ITYM chr(7).
>>
>
> perl6 -e 'print chr(7)'
>
> No joy.  :'(
>
>
>
>
> --
> ~~
> Computers are like air conditioners.
> They malfunction when you open windows
> ~~
>


Re: ding!

2017-05-31 Thread ToddAndMargo

On 05/31/2017 09:11 PM, Peter Scott wrote:

On 5/31/17 8:44 PM, ToddAndMargo wrote:

On 05/31/2017 08:39 PM, Lloyd Fournier wrote:

perl6 -e 'say "\a"'


No joy under linux.

0x07 does not work either.  Just prints a 7


ITYM chr(7).


perl6 -e 'print chr(7)'

No joy.  :'(



--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


Re: ding!

2017-05-31 Thread ToddAndMargo
On Thu, Jun 1, 2017 at 3:23 PM, ToddAndMargo > wrote:


Hi All,

Does Perl 6 have a build in "ding" sound, or do I
need to make a system call (which I do all
the time in bash script)?

Many thanks,
-T

-- 
~

When we ask for advice, we are usually looking for an accomplice.
--  Charles Varlet de La Grange
~






On 05/31/2017 09:06 PM, David Warring wrote:
> Does printing an ASCII BEL character do what you want?
>
> perl6 -e'print "\x7"'
>
>

Unfortunately, no.

If it matters, I am running Linux.


--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


Re: ding!

2017-05-31 Thread Peter Scott

On 5/31/17 8:44 PM, ToddAndMargo wrote:

On 05/31/2017 08:39 PM, Lloyd Fournier wrote:

perl6 -e 'say "\a"'


No joy under linux.

0x07 does not work either.  Just prints a 7


ITYM chr(7).


Re: ding!

2017-05-31 Thread David Warring
Does printing an ASCII BEL character do what you want?

perl6 -e'print "\x7"'


On Thu, Jun 1, 2017 at 3:23 PM, ToddAndMargo  wrote:

> Hi All,
>
> Does Perl 6 have a build in "ding" sound, or do I
> need to make a system call (which I do all
> the time in bash script)?
>
> Many thanks,
> -T
>
> --
> ~
> When we ask for advice, we are usually looking for an accomplice.
>--  Charles Varlet de La Grange
> ~
>


Re: ding!

2017-05-31 Thread ToddAndMargo

On 05/31/2017 08:39 PM, Lloyd Fournier wrote:

perl6 -e 'say "\a"'


No joy under linux.

0x07 does not work either.  Just prints a 7


Re: ding!

2017-05-31 Thread Lloyd Fournier
perl6 -e 'say "\a"'

Will print the alarm character which causes an annoying  sound on my mac.
Other than that, you'll have to investigate the module ecosystem or shell
out to something.

LL

On Thu, Jun 1, 2017 at 1:24 PM ToddAndMargo  wrote:

> Hi All,
>
> Does Perl 6 have a build in "ding" sound, or do I
> need to make a system call (which I do all
> the time in bash script)?
>
> Many thanks,
> -T
>
> --
> ~
> When we ask for advice, we are usually looking for an accomplice.
> --  Charles Varlet de La Grange
> ~
>