Search code examples
phpaudiocsound

Generate sound with pich and duration


Is possible to generate a sound in PHP with a defined note pitch and duration?

I know exists CSOUND but I don't know how to call it from PHP and if exists a CSOUND API for PHP, as I found one in language C.


Solution

  • I don't think there is a standard api or package for it. You could try using the unix command for csound (provided you have it installed).