Re: playing music with GP
Hans L <[email protected]>
| Newsgroups | gmane.comp.mathematics.pari.user |
|---|---|
| Message-ID | <CAFoRp-P2+rOdDoxYL=fo57UGROvBCLA-nnz3p7kGP9HXjk0fHQ@mail.gmail.com> |
Very interesting usage of pari. For fun I added a basic ADSR envelope https://en.wikipedia.org/wiki/Envelope_(music)#ADSR This gets rid of the pops between notes (without a "release"/fade-out, previous notes are interrupted at any point mid-sine-wave causing sharp transitions) and adds a little more character to the sound. And of course I recognize Ode to Joy :) -Hans On Wed, Jul 9, 2025 at 4:15 PM Bill Allombert < [email protected]> wrote: > Dear PARI lovers, > > I have written a GP script to play music using GP (really play music, not > just sending MIDI data). > > One need the "aplay" alsa utility. the instrument is the formula in the > playnote > function. > > If you use the latest GIT version, you can use the first "start" function > instead of the second one. > > Can you recognize the music (without reading the score) ? > (Sorry in advance for any error in the score) > > Cheers, > Bill. >
music2.gp
(application/x-gnuplot, 1.2 KB) - not displayed