summaryrefslogtreecommitdiff
path: root/audio/csound-manual
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-03-23 01:56:28 +0000
committerwiz <wiz@pkgsrc.org>2002-03-23 01:56:28 +0000
commite44f4b9ff23e721aeb907463defc43cf8315ea7f (patch)
tree4848f669b4fda3c86b97f02e3523a095bba7cfcf /audio/csound-manual
parent9988a01984e1d3d65089fd568071e710d9bf983e (diff)
downloadpkgsrc-e44f4b9ff23e721aeb907463defc43cf8315ea7f.tar.gz
Add examples for using csound with realtime MIDI input on NetBSD,
update MAINTAINER address. Both from pkg/16012 by Ben Collver.
Diffstat (limited to 'audio/csound-manual')
-rw-r--r--audio/csound-manual/Makefile7
-rw-r--r--audio/csound-manual/PLIST4
-rw-r--r--audio/csound-manual/files/rt-midi-input.orc23
-rw-r--r--audio/csound-manual/files/rt-midi-input.sco4
4 files changed, 35 insertions, 3 deletions
diff --git a/audio/csound-manual/Makefile b/audio/csound-manual/Makefile
index 40f69ab3095..d885b7b8527 100644
--- a/audio/csound-manual/Makefile
+++ b/audio/csound-manual/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2002/03/12 22:31:04 jmc Exp $
+# $NetBSD: Makefile,v 1.5 2002/03/23 01:56:28 wiz Exp $
#
DISTNAME= csound-manual-4.10
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= ftp://ftp.csounds.com/manual/current/
EXTRACT_SUFX= .zip
@@ -15,7 +16,7 @@ DISTFILES= ascii.zip \
spplmtxt.zip \
toots.zip
-MAINTAINER= collver@softhome.net
+MAINTAINER= collver@linuxfreemail.com
HOMEPAGE= http://www.csound.org
COMMENT= Manuals and examples for Csound
@@ -44,5 +45,7 @@ do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/csound
cd ${WRKSRC} && ${INSTALL_DATA} hellorcb.aif toot* \
${PREFIX}/share/examples/csound
+ cd ${FILESDIR} && ${INSTALL_DATA} rt-midi-input.* \
+ ${PREFIX}/share/examples/csound
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/csound-manual/PLIST b/audio/csound-manual/PLIST
index 2f304abe219..b74b78714f0 100644
--- a/audio/csound-manual/PLIST
+++ b/audio/csound-manual/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 00:15:37 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/03/23 01:56:28 wiz Exp $
share/doc/csound/manual.pdf
share/doc/csound/manual.txt
share/doc/csound/manual1.pdf
@@ -323,6 +323,8 @@ share/doc/html/csound/zak/zir.htm
share/doc/html/csound/zak/ziw.htm
share/doc/html/csound/zak/zkmod.htm
share/examples/csound/hellorcb.aif
+share/examples/csound/rt-midi-input.orc
+share/examples/csound/rt-midi-input.sco
share/examples/csound/toot01.orc
share/examples/csound/toot01.sco
share/examples/csound/toot02.orc
diff --git a/audio/csound-manual/files/rt-midi-input.orc b/audio/csound-manual/files/rt-midi-input.orc
new file mode 100644
index 00000000000..57d12052c0a
--- /dev/null
+++ b/audio/csound-manual/files/rt-midi-input.orc
@@ -0,0 +1,23 @@
+# use: csound -o /dev/sound -M /dev/rmidi1 rt-midi-input.orc rt-midi-input.sco
+#
+# you may need to use /dev/rmidi0 instead
+
+instr 1
+inum notnum ; note number
+kfreq cpsmidib ; MIDI to frequency
+iamp ampmidi inum*100 ; MIDI to amplitude
+ ; (scaled within range)
+if inum > 60 goto fun1 ; if the MIDI note number
+ ; is over 60...
+if inum < 61 goto fun2 ; if the note number is
+ ; less than 61...
+fun1:
+ifn = 1
+ goto contin
+fun2:
+ifn = 2
+ goto contin
+contin:
+asig oscil iamp,kfreq,ifn
+ out asig
+ endin
diff --git a/audio/csound-manual/files/rt-midi-input.sco b/audio/csound-manual/files/rt-midi-input.sco
new file mode 100644
index 00000000000..d6a9ce2ec36
--- /dev/null
+++ b/audio/csound-manual/files/rt-midi-input.sco
@@ -0,0 +1,4 @@
+f1 0 8192 10 1 ; sine wave
+f2 0 8192 10 1 .9 .8 .7 .6 .5 .4 .3 .2 .1 ; ramp wave
+f0 10000
+e