| On Wed, 8 Sep 1999, Peter Neubacker wrote:
>
> Larry Troxler wrote:
> > there is no opcode to convert a MIDI
> > note number to a frequency
>
> Well, there could be an opcode, but it can
> be done with this simple conversion:
>
> ikey = p5 ; MIDI Note Number
> ioct = ikey/12 + 3 ; oct 0 is 3 octaves below MIDI 0
> icps = cpsoct(ioct)
>
> or, in one line
>
> icps = cpsoct(p5/12 + 3)
>
> Peter
>
Yes, this is the way I found to do it.
Larry Troxler
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa14671;
8 Sep 99 13:52 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
id 11Og4O-0000kB-00
for jpff@maths.bath.ac.uk; Wed, 8 Sep 1999 12:39:20 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (NAA06766); Wed, 8 Sep 1999 13:48:27 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 8 Sep 1999 13:48:16 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (NAA08576); Wed, 8 Sep 1999 13:48:16 +0100 (BST)
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
id 11Og0O-0000jp-00
for csound@maths.ex.ac.uk; Wed, 8 Sep 1999 12:35:12 +0100
Date: Wed, 8 Sep 99 13:48:14 BST
From: jpff@maths.bath.ac.uk
Subject: Re: Power operator still doesn't work in all cases
To: csound@maths.ex.ac.uk
Message-Id:
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Message written at 8 Sep 1999 09:29:39 +0100
--- Copy of mail to g.maldonado@agora.stm.it ---
There is no attempt for a1 ^ a2 to work. I cannot see why one would
want to do this really. Clearly it could be added, but why?
a1 ^ p1 looks like an oversight. Will investigate
==John ffitch
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa14800;
8 Sep 99 14:37 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
id 11Ohv7-0007Ef-00
for jpff@maths.bath.ac.uk; Wed, 8 Sep 1999 14:37:53 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (OAA14903); Wed, 8 Sep 1999 14:32:22 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 8 Sep 1999 14:32:09 +0100
Received: from express.globetrotter.net [142.169.1.93] by hermes via ESMTP (OAA08526); Wed, 8 Sep 1999 14:32:08 +0100 (BST)
Received: from joss21globetrotter.net (ts1-41.f3211.quebectel.com [142.169.171.181])
by express.globetrotter.net (8.8.5/8.8.5) with ESMTP id JAA28779
for ; Wed, 8 Sep 1999 09:32:07 -0400 (EDT)
Message-Id: <199909081332.JAA28779@express.globetrotter.net>
From: Jocelyn Tremblay
To: csound@maths.ex.ac.uk
MMDF-Warning: Parse error in original version of preceding line at UK.AC.Bath.maths.omphalos
Subject: Re: FOUTIR ETC>>>
Date: Wed, 8 Sep 1999 09:32:30 -0400
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
You could always use a table for doing this, like
____________
Tuning1.txt:
8.176 8.662 9.177 9.723 10.301 10.913 11.562 12.250 12.978 13.750 14.568
15.434 16.352 etc.. etc..
---------------------
in the orc:
inote notnum
iread table inote, 1
in the sco:
f1 0 128 -23 "Tuning1.txt"
You just have to store inote using foutir.
Sure it will be long (in particular if you want many tuning table) but
you'll be able to do exactly anything you want.
> frequency to a particular midi note number
> say converting midi # 60 to 256hz instead of of 261.6hz
Received: from xenakis.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa15161;
8 Sep 99 16:09 BST
From: jpff@maths.bath.ac.uk
To: matthew.armour@immi.gov.au
CC: csound@maths.ex.ac.uk
In-reply-to: <4A2567E6.00166756.00@C3W-NOTES.AU.CSC.NET>
(matthew.armour@immi.gov.au)
Subject: Re: midi file to .sco filter?
BCC: jpff@maths.bath.ac.uk
References: <4A2567E6.00166756.00@C3W-NOTES.AU.CSC.NET>
Date: Wed, 8 Sep 99 16:09:28 BST
Sender: jpff@maths.bath.ac.uk
Source-Info: From (or Sender) name not authenticated.
Depending on how complex the MIDI file, I use Rosegarden for this.
==John
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa15167;
8 Sep 99 16:13 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
id 11OiGd-0000re-00
for jpff@maths.bath.ac.uk; Wed, 8 Sep 1999 15:00:07 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (QAA05434); Wed, 8 Sep 1999 16:09:01 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 8 Sep 1999 16:08:49 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (QAA12056); Wed, 8 Sep 1999 16:08:48 +0100 (BST)
Received: from [138.38.97.36] (helo=maths.Bath.AC.UK ident=mmdf)
by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
id 11OiCI-0000rR-00; Wed, 8 Sep 1999 14:55:38 +0100
From: jpff@maths.bath.ac.uk
To: ppagano@bellsouth.net
CC: csound@maths.ex.ac.uk
In-reply-to: <37D60953.599CBCC9@bellsouth.net> (message from patrick pagano on
Tue, 07 Sep 1999 23:59:31 -0700)
Subject: Re: FOUTIR ETC>>>
References: <37D60953.599CBCC9@bellsouth.net>
Date: Wed, 8 Sep 99 16:08:43 BST
Source-Info: From (or Sender) name not authenticated.
Message-Id:
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
I seem to have lost the argument. If you know the MIDI number and you
know what frequency you think that means, then eitehr a table or a
simple calcuation gives it to you. Same with pitchbend. It gives a
0-127 range and you can interpret it however you like.
What question are you asking?
==John
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa15175;
8 Sep 99 16:13 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
id 11OjPr-0007Iz-00
for jpff@maths.bath.ac.uk; Wed, 8 Sep 1999 16:13:43 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (QAA15419); Wed, 8 Sep 1999 16:09:42 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 8 Sep 1999 16:09:30 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (QAA05966); Wed, 8 Sep 1999 16:09:30 +0100 (BST)
Received: from [138.38.97.36] (helo=maths.Bath.AC.UK ident=mmdf)
by wallace.maths.bath.ac.uk with smtp (Exim 2.12 #1)
id 11OiD1-0000rX-00; Wed, 8 Sep 1999 14:56:23 +0100
From: jpff@maths.bath.ac.uk
To: matthew.armour@immi.gov.au
CC: csound@maths.ex.ac.uk
In-reply-to: <4A2567E6.00166756.00@C3W-NOTES.AU.CSC.NET>
(matthew.armour@immi.gov.au)
Subject: Re: midi file to .sco filter?
References: <4A2567E6.00166756.00@C3W-NOTES.AU.CSC.NET>
Date: Wed, 8 Sep 99 16:09:28 BST
Source-Info: From (or Sender) name not authenticated.
Message-Id:
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Depending on how complex the MIDI file, I use Rosegarden for this.
==John
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa15474;
8 Sep 99 18:09 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
id 11Ok5M-0000wc-00
for jpff@maths.bath.ac.uk; Wed, 8 Sep 1999 16:56:36 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (SAA00596); Wed, 8 Sep 1999 18:06:27 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 8 Sep 1999 18:06:14 +0100
Received: from agora.stm.it [195.62.32.1] by hermes via ESMTP (SAA05466); Wed, 8 Sep 1999 18:06:13 +0100 (BST)
Received: from agora.stm.it (rm1-427.tiscalinet.it [212.123.79.47]) by agora.stm.it (8.9.2/8.8.5) with ESMTP id TAA25591; Wed, 8 Sep 1999 19:06:10 +0200 (ITADST)
Message-ID: <37D68F85.4E75C91B@agora.stm.it>
Date: Wed, 08 Sep 1999 18:32:05 +0200
From: Gabriel Maldonado
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Csound Mailing List ,
Mailing List AIMI ,
Mailing list Conservatori
Subject: [ANNOUNCE] DirectCsound 2.9 available
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Hi all,
DirectCsound version 2.9 is available for download at the following
address:
http://web.tiscalinet.it/G-Maldonado/download.htm
New version includes the following additions:
-------------------------------------
1) Synchronized with canonical version 3.58
2) Gen functions can now generate tables having non-power-of-two length,
by giving a negative length value.
3) poscil now can accept negative frequency values, and a-rate values
both for amplitude and frequency, so both AM and FM are allowed using
poscil. Also, differently by oscil family, they allow non-power-of-two
length tables.
4) tab and tabw opcodes, faster than table and tablew, accept
non-power-of-two length tables.
5) phasor now supports a much more precise phase generation, as phase is
stored into a double internal variable instad than float (like poscil
family). This removes some imprecision and distorsion (tics) when
writing and reading long tables.
6) Added latest opcodes of Peter Neubaecker and Jens Groh (though must
be tested).
7) wguide1 and wguide2 now accept both k and a-rate arguments for
frequency, in order to eliminate distorsion in vibratos and glissandos.
Happy DirectCsounding!
--
Gabriel Maldonado
http://web.tiscalinet.it/G-Maldonado/home2.htm
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa16037;
8 Sep 99 23:43 BST
Received: from [166.84.1.68] (helo=panix3.panix.com ident=[X6kb1/LWRMmIn8362o5Tc/RiElqS4+A2])
by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
id 11OpIb-00013W-00
for jpff@maths.bath.ac.uk; Wed, 8 Sep 1999 22:30:38 +0100
Received: from localhost (coble@localhost)
by panix3.panix.com (8.8.5/8.8.8/PanixU1.4) with ESMTP id SAA18337;
Wed, 8 Sep 1999 18:42:46 -0400 (EDT)
Date: Wed, 8 Sep 1999 18:42:45 -0400 (EDT)
From: Michael Coble
To: tolve
cc: Pete Larson , sursound@lists.uoregon.edu,
csound@maths.ex.ac.uk, Tom Erbe ,
John ffitch , Jean Piche ,
"Matt J. Ingalls" ,
Alex Burton ,
Richard Boulanger , Mike Berry ,
David Madole ,
Gabriel Maldonado ,
Michael Gogins ,
Richard Karpen ,
Robin Whittle
Subject: Re: sursound: What does 3D really mean?
In-Reply-To:
Message-ID:
Errors-To: coble@panix.com
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
> clarity often elusive on the internet.
>
> i am an electro acoustic composer. i really do want the "instrument" to
> sound as if it is coming from the ceiling. then moving down to the
> basement. then onward to the grocery store across the street.
>
Tolve,
You want it for the Mac? Try Soundhack, you can get it at...
ftp://shoko.calarts.edu/pub/SoundHack/. Now this is something to use
on a mono soundfile, but..there's a graphical editor in Soundhack for
spatializing mono sound that outputs stereo, and it works great for
headphones. Using speakers works too, only maybe not as convincing.
The powermac version of Soundhack costs a few shareware dollars, I
think $29.95, but the software's been around for a few years, and has
a mailing list too. Other features of soundhack are quick graphical
ways to do gate, phase vocoding, rate changes, file type conversion,
spectral extraction, mutation, and so on.
hope this helps,
-*-*-*-*-*-*-*-*-*-*-*-*-*=*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Michael Coble => coble@panix.com
Gallery => http://www.sohogallery-nyc.com
Music => http://www.sohogallery-nyc.com/computermusic
-*-*-*-*-*-*-*-*-*-*-*-*-*=*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa16048;
8 Sep 99 23:49 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
id 11OqWm-0007Rd-00
for jpff@maths.bath.ac.uk; Wed, 8 Sep 1999 23:49:20 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (XAA11523); Wed, 8 Sep 1999 23:43:52 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 8 Sep 1999 23:43:41 +0100
Received: from 0KBuM4tg2py56tXkVLA7+ibjnjhOSqwQ@panix3.panix.com [166.84.1.68] by hermes via ESMTP (XAA05713); Wed, 8 Sep 1999 23:43:40 +0100 (BST)
Received: from localhost (coble@localhost)
by panix3.panix.com (8.8.5/8.8.8/PanixU1.4) with ESMTP id SAA18337;
Wed, 8 Sep 1999 18:42:46 -0400 (EDT)
Date: Wed, 8 Sep 1999 18:42:45 -0400 (EDT)
From: Michael Coble
To: tolve
cc: Pete Larson , sursound@lists.uoregon.edu,
csound@maths.ex.ac.uk, Tom Erbe ,
John ffitch , Jean Piche ,
"Matt J. Ingalls" ,
Alex Burton ,
Richard Boulanger , Mike Berry ,
David Madole ,
Gabriel Maldonado ,
Michael Gogins ,
Richard Karpen ,
Robin Whittle
Subject: Re: sursound: What does 3D really mean?
In-Reply-To:
Message-ID:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
> clarity often elusive on the internet.
>
> i am an electro acoustic composer. i really do want the "instrument" to
> sound as if it is coming from the ceiling. then moving down to the
> basement. then onward to the grocery store across the street.
>
Tolve,
You want it for the Mac? Try Soundhack, you can get it at...
ftp://shoko.calarts.edu/pub/SoundHack/. Now this is something to use
on a mono soundfile, but..there's a graphical editor in Soundhack for
spatializing mono sound that outputs stereo, and it works great for
headphones. Using speakers works too, only maybe not as convincing.
The powermac version of Soundhack costs a few shareware dollars, I
think $29.95, but the software's been around for a few years, and has
a mailing list too. Other features of soundhack are quick graphical
ways to do gate, phase vocoding, rate changes, file type conversion,
spectral extraction, mutation, and so on.
hope this helps,
-*-*-*-*-*-*-*-*-*-*-*-*-*=*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Michael Coble => coble@panix.com
Gallery => http://www.sohogallery-nyc.com
Music => http://www.sohogallery-nyc.com/computermusic
-*-*-*-*-*-*-*-*-*-*-*-*-*=*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa16366;
9 Sep 99 2:51 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
id 11OsEA-00018o-00
for jpff@maths.bath.ac.uk; Thu, 9 Sep 1999 01:38:14 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (CAA10089); Thu, 9 Sep 1999 02:46:20 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 9 Sep 1999 02:46:09 +0100
Received: from rcsreg.rcsreg.com [198.176.199.30] by hermes via SMTP (CAA13566); Thu, 9 Sep 1999 02:46:08 +0100 (BST)
Received: from [63.193.151.229] by rcsreg.com (NTMail 3.02.12) with ESMTP id va029895 for ; Wed, 8 Sep 1999 18:35:08 +0100
Message-ID: <37D7115A.850C9896@rcsreg.com>
Date: Thu, 09 Sep 1999 01:46:02 +0000
From: Tobiah
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.7 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Re: midi file to .sco filter?
References: <4A2567E6.00166756.00@C3W-NOTES.AU.CSC.NET>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
jpff@maths.bath.ac.uk wrote:
>
> Depending on how complex the MIDI file, I use Rosegarden for this.
> ==John
The important thing is that the program be usable from
within a Makefile. I used to use a wrapper to midi2cs
for this. I would record a track on my midi keyboard,
and then type 'make', which would build and audition
a sound which relied on that midi file. If I didn't like
it, I would just re-record the keyboard part, and go 'make'
again.
The greatest thing about command-line apps, is that command-line
apps can run them.
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa16471;
9 Sep 99 3:30 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
id 11OtyY-0007W8-00
for jpff@maths.bath.ac.uk; Thu, 9 Sep 1999 03:30:14 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (DAA07918); Thu, 9 Sep 1999 03:25:34 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 9 Sep 1999 03:25:23 +0100
Received: from rothko.bestweb.net [209.94.100.160] by hermes via ESMTP (DAA14386); Thu, 9 Sep 1999 03:25:22 +0100 (BST)
Received: from goodguy ([216.179.14.36])
by rothko.bestweb.net (8.9.1a/8.9.0) with SMTP id WAA19402;
Wed, 8 Sep 1999 22:25:11 -0400 (EDT)
Message-ID: <37D71938.6B1C8A0B@westnet.com>
Date: Thu, 09 Sep 1999 02:19:36 +0000
From: Larry Troxler
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.36 i586)
MIME-Version: 1.0
To: Tobiah
CC: csound@maths.ex.ac.uk
Subject: Using Make for RT/overdubbing on slower machines , was Re: midi file to .sco filter?
References: <4A2567E6.00166756.00@C3W-NOTES.AU.CSC.NET> <37D7115A.850C9896@rcsreg.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Tobiah wrote:
>
> jpff@maths.bath.ac.uk wrote:
> >
> > Depending on how complex the MIDI file, I use Rosegarden for this.
> > ==John
>
> The important thing is that the program be usable from
> within a Makefile. I used to use a wrapper to midi2cs
> for this. I would record a track on my midi keyboard,
> and then type 'make', which would build and audition
> a sound which relied on that midi file. If I didn't like
> it, I would just re-record the keyboard part, and go 'make'
> again.
>
> The greatest thing about command-line apps, is that command-line
> apps can run them.
How timely. I, too, am discovering the joys of using Make for music
composition. In my case, instead of using a MIDI sequencer, I'm using
csound to record MIDI in real time; the instrument both plays the the
sound and uses foutir to generate the csound score, which can be used in
a subsequent csound run. Since I have a slow machine, but still find it
best to play in real-time for creative purposes, I'm trying to set up
something like this, diagramatically speaking:
# Record a MIDI performance using a fast, but real-time instrument.
# Use foutir opcode to generate a score so that this performance
# can be reproduced.
#
target1:
-> -> DAC
-> 1.sco
# In non-real-time, use the generated score to drive a fancier
# but slower, high-quality version of the first instrument. Save
# to a wave file for future overdubs.
#
target1w:
1.sco -> -> 1.wav
# Now, in real-time, play along and add a second instrument!
#
target2:
-> -- >|
1.wav -> -- >|
\
-> DAC
-> 2.sco
Well, this is as far as I've gotten in my little experiment,
but so far it seems to be working.
Larry Troxler
|