Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

README.sndlib 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. S N D L I B
  2. The sound library is a collection of sound file and audio hardware
  3. handlers written in C, Forth, Scheme, Common Lisp, and Ruby, and
  4. running currently on Linux, *BSD, Mac OSX, and Windows systems.
  5. It provides relatively straightforward access to many sound file
  6. headers and data types.
  7. Documentation is in sndlib.html.
  8. To build it
  9. ./configure
  10. make
  11. make install
  12. The configure script takes several arguments:
  13. --with-audio include audio (default=yes)
  14. --with-alsa use ALSA if possible
  15. --with-jack use Jack if possible
  16. --with-s7 use s7 as the extension language (the default)
  17. --with-forth use Forth as the extension language
  18. --with-ruby use Ruby as the extension language
  19. --with-gsl try to include GSL
  20. --enable-shared include shared object version of sndlib (the default)
  21. Many examples and more documentation can be found in the Snd
  22. package (ccrma-ftp.stanford.edu:/pub/Lisp/snd-13.tar.gz), and
  23. CLM (clm-4.tar.gz).
  24. There are two packages included with sndlib, both written
  25. by Michael Scholz: sndins (a faster Scheme/Ruby connection to
  26. some instruments) and gfm (a Forth implementation of sndlib).
  27. If your Ruby installation is missing its pkgconfig file (ruby.pc
  28. or some such name), run the make-config-pc.rb script and move the
  29. resultant file to some pkgconfig directory:
  30. make-config-pc.rb > ruby.pc
  31. mv ruby.pc /usr/local/lib/pkgconfig/ruby.pc
  32. --------------------------------------------------------------------------------
  33. from Rick Taube:
  34. BUILDING SNDLIB AND CM FROM SOURCES ON WINDOWS
  35. These instructions assume you already have Microsoft Visual Studio
  36. Express C++ 2008 installed on your computer. Its easiest if you create
  37. a common folder to hold the source trees for CM and SndLib. I created
  38. a C:\Software directory to hold both systems on my machine:
  39. C:\Software\sndlib
  40. C:\Software\cm
  41. BUILDING SNDLIB ON WINDOWS
  42. 1. Download and install the latest version of SndLib:
  43. ftp://ccrma-ftp.stanford.edu/pub/Lisp/sndlib.tar.gz
  44. 2. Double-click 'sndlib.sln' to open the project in Visual Studio
  45. and choose 'Build Solution' from the Build menu (or press F7). This
  46. should compile the release version of the sndlib library.
  47. BUILDING CM ON WINDOWS
  48. 1. Download and install Premake 4.4, make sure that the executable is
  49. on your PATH variable:
  50. http://downloads.sourceforge.net/premake/premake-win32-4.4.zip
  51. 2. Open a CMD shell (terminal): Select Run... from the Start menu and
  52. click OK.
  53. 3. In the terminal window, change directories to your CM directory and
  54. use premake to create the Visual Studio project files:
  55. cd \Software\cm
  56. premake --target vs2008 --sndlib ../sndlib
  57. 4. Double click the file 'cm.sln' , select the Release configuration
  58. in the pulldown menu and press F7.
  59. BUILDING SNDLIB AND CM FROM SOURCES ON OSX AND LINUX
  60. These instructions assume you already have all c++ developer tools,
  61. libraries and headers installed on your machine. Its easiest if you
  62. create a common folder to hold the source trees for CM and SndLib. I
  63. created a ~/Software directory to hold both systems on my machine:
  64. ~/Software/sndlib
  65. ~/Software/cm
  66. BUILDING SNDLIB ON OSX/LINUX
  67. 1. Download, install and make the latest version of SndLib:
  68. $ cd ~/Software
  69. $ wget ftp://ccrma-ftp.stanford.edu/pub/Lisp/sndlib.tar.gz
  70. $ tar -zxf sndlib.tar.gz
  71. $ cd sndlib
  72. $ ./configure CC=g++
  73. $ make
  74. BUILDING CM ON OS X/LINUX
  75. 1. Download and install Premake 4.4, make sure that the executable is
  76. on your PATH variable:
  77. os x: http://downloads.sourceforge.net/premake/premake-macosx-4.4.tar.gz
  78. linux: http://downloads.sourceforge.net/premake/premake-linux-4.4.tar.gz
  79. 2. Download and build the latest CM3 sources from Sourceforge.
  80. $ cd ~/Software
  81. $ svn co http://commonmusic.svn.sourceforge.net/svnroot/commonmusic/trunk
  82. cm
  83. $ cd cm
  84. $ premake --target gnu --sndlib ../sndlib
  85. $ make
  86. The applications will be saved in the bin/ subdirectory. Documentation
  87. and examples are in cm/res/doc. See cm/readme.text for more information.