Re: playing music with GP

Bill Allombert <[email protected]>
Newsgroups gmane.comp.mathematics.pari.user
Message-ID <aHPLqEzvszP8xnI_@seventeen>
On Sat, Jul 12, 2025 at 04:52:32PM +0200, Bill Allombert wrote:
> On Sat, Jul 12, 2025 at 07:03:06AM -0700, John Duncan wrote:
> > On a similar note, I'd be happy to hear about it if anyone has a quick
> > solution for getting this to work on mac os.
>
> I assume ffplay should do it with the right options, but so far I did not find
> them.
> Basically the script generates raw 8bit PCM at 8000Hz, single channel (mono).

I foud the correct options.
So please install ffplay (part of ffmpeg) and then change start to

start(fifo="/tmp/parififo")=
{
  system(Str("test -p ",fifo" || mkfifo ",fifo,"; ffplay -i pipe: -f u8 -ar ",FREQ," -hide_banner -autoexit < ",fifo," &"));
  fileopen(fifo,"w");
}

Since GP produce raw sound, ffmpeg is an overkill, but at least one get a nice histogram.

Cheers,
Bill.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.