No i can't show you the two-liner, because it was Mike who suggested
that and i have no idea ^^
If you don't care where the beep comes from, you could also use the
AudioIO package and just let your normal speaker play the beep
using AudioIO
play([sin(x) for x=0:0.03*pi:441])
according to the docs on github, audioio should also work on windows.
Am 28.02.2016 um 06:08 schrieb Chris Rackauckas:
> Couldn't get Atom to buzz at all with atom.beep(). print(`\a`) only
> works in the REPL and run(`beep`) doesn't work for me at all (on the
> Windows computer). Could you show me that 2-line Julia function?
>
> On Saturday, February 27, 2016 at 4:11:53 PM UTC-8, FQ wrote:
>
> from normal REPL, you could do
> print('\a')
> which "prints" the bell character. i don't know how whether that works
> for your configuration though.
>
> given there's the program beep available and working on your system,
> you
> could also do
> run(`beep`)
> note the backticks, see
> http://docs.julialang.org/en/release-0.4/manual/running-external-programs/
>
> <http://docs.julialang.org/en/release-0.4/manual/running-external-programs/>
>
>
> Am 28.02.2016 um 00:39 schrieb Chris Rackauckas:
> > Hey,
> > I was wondering about a quick way to make the computer beep when
> code
> > is finished. Usually there's a beep() function. The one in Julia at
> > Base.Terminals.beep takes as input a terminal. Where do I find this
> > terminal object? If it matters, I am using Juno with Atom.
>