Csound Csound-dev Csound-tekno Search About

Re: MIDI: assigning instr'ments to ranges of notes

Date1997-08-12 14:52
Fromjpff@maths.bath.ac.uk
SubjectRe: MIDI: assigning instr'ments to ranges of notes
Message written at 12 Aug 1997 11:15:22 +0100
--- Copy of mail to master@internexus.net ---
In-reply-to: 
	(message from Laszlo Vecsey on Sat, 9 Aug 1997 09:02:58 -0400 (EDT))
References:  

My suggestiin is NOT to start hacking the source.  i am trying to test
the 3.47 version which has instructions for mapping MIDI instruments
to Csound instruments.  All I need is a little more time and someone
to test it!

Version 3.47 is a major change.  There are a host of new opcodes,
mainly to do with MIDI, and a great deal of internal changes for MIDI.
I will try to get together some notes on the changes soon.

==John



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10718;
          12 Aug 97 15:51 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa22884;
          12 Aug 97 15:50 BST
Received: (qmail 16779 invoked from network); 12 Aug 1997 14:50:26 -0000
Received: from hermes.ex.ac.uk (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 12 Aug 1997 14:50:26 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (PAA01658); Tue, 12 Aug 1997 15:30:34 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Tue, 12 Aug 97 15:30:22 +0100
Received: from internexus.net [206.152.14.2] by hermes via ESMTP (PAA02732); Tue, 12 Aug 1997 15:30:01 +0100
Received: from localhost (master@localhost)
          by micro.internexus.net (8.8.6/8.8.4) with SMTP
	  id KAA07323; Tue, 12 Aug 1997 10:29:21 -0400
Date: Tue, 12 Aug 1997 10:29:20 -0400 (EDT)
From: Laszlo Vecsey 
To: Dave Phillips 
Cc: csound@maths.ex.ac.uk
Subject: Re: C question
In-Reply-To: <33EF34CD.3E223F75@bright.net>
Message-Id: 
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

On Mon, 11 Aug 1997, Dave Phillips wrote:

> I figure someone in this group can help me with this question. I want to
> port an application from Turbo C to compile under the GCC in Linux, but
> I'm stuck by the include file called conio.h. Is there a direct
> replacement in the GCC for that header ?
> 

I know you already found a workaround for conio.h in your application, but
I just thought I'd mention to the list since it was brought up that there
is a unix conio.h package available at sunsite.unc.edu (I forget the
location, but its in the linux software map) the Home Site is:

	http://www.obh.snafu.de/~marte/friends/fractor/

- lv




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10971;
          12 Aug 97 17:45 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa25017;
          12 Aug 97 17:44 BST
Received: (qmail 22913 invoked from network); 12 Aug 1997 16:44:40 -0000
Received: from hermes.ex.ac.uk (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 12 Aug 1997 16:44:40 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (RAA09398); Tue, 12 Aug 1997 17:23:27 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Tue, 12 Aug 97 17:23:17 +0100
Received: from qmailr@pat.bath.ac.uk [138.38.32.2] by hermes via SMTP (RAA09807); Tue, 12 Aug 1997 17:23:11 +0100
From: jpff@maths.bath.ac.uk
Message-Id: <199708121623.RAA09807@hermes>
Received: (qmail 21670 invoked from network); 12 Aug 1997 16:23:52 -0000
Received: from omphalos.maths.bath.ac.uk (HELO maths.Bath.AC.UK) (mmdf@138.38.99.25)
  by pat.bath.ac.uk with SMTP; 12 Aug 1997 16:23:52 -0000
To: james@maths.ex.ac.uk
Cc: csound@maths.ex.ac.uk
In-Reply-To: <16167.199708120853@zeno.maths.exeter.ac.uk>
	(james@maths.ex.ac.uk)
Subject: Re: admin stuff
References:  <16167.199708120853@zeno.maths.exeter.ac.uk>
Date: Tue, 12 Aug 97 17:24:29 BST
Source-Info:  From (or Sender) name not authenticated.
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

On the other hand I still have all the messages sent to the digest
list for that period.  If anyone really wants them.....

==John



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11256;
          12 Aug 97 20:52 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa27682;
          12 Aug 97 20:51 BST
Received: (qmail 29162 invoked from network); 12 Aug 1997 19:51:31 -0000
Received: from hermes.ex.ac.uk (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 12 Aug 1997 19:51:31 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (UAA16995); Tue, 12 Aug 1997 20:34:43 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Tue, 12 Aug 97 20:34:34 +0100
Received: from root@ferrari.sfu.ca [142.58.110.11] by hermes via ESMTP (UAA17046); Tue, 12 Aug 1997 20:34:31 +0100
Received: from 142.58.123.35 (rs35-annex3.sfu.ca [142.58.123.35]) by ferrari.sfu.ca with SMTP (8.8.5/SFU-2.7H)
  id MAA27360 (from dcross@sfu.ca); Tue, 12 Aug 1997 12:35:04 -0700 (PDT)
Message-Id: <33F0BACF.375C@sfu.ca>
Date: Tue, 12 Aug 1997 12:34:41 -0700
From: doug cross 
X-Mailer: Mozilla 3.01 (Macintosh; I; PPC)
Mime-Version: 1.0
To: Burton Alexandre 
Cc: csound@maths.ex.ac.uk
Subject: simple problem
References: 
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hello all:

i have been playing around with this orc and sco to produce some sound
examples  and i've found something curious. when i ask for a sweep
between 800hz and 150000hz there is a strange folding over of the
sound.(starts to play backwards). I've found a number below 10000hz
avoids this problem but I'm just a bit confused. 

;sweep.orc
;-------------------------------
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

instr 1

           iattack              =       .01
           irelease     =       .10
           idur                 =       p3
           iamp                 =       p4
           isweepstart  =       p5
           isweepend    =       p6
           ibandwidth   =       p7
           ibalance     =       p8 
      
           kamp         linen   iamp, iattack, idur, irelease
           ksweep       line    isweepstart, idur, isweepend
           
           asig         oscil   iamp,   ksweep, 3                       
           afilt        reson   asig, ksweep, ibandwidth
           arampsig     =       kamp * afilt                  
           
out     arampsig * ibalance

;, arampsig * (1 - ibalance);disabled for mono file
        endin

;sweep.sco
;-------------------------------
f3 0 8192 7 -1 4096 1 4096 -1 ; -- triangle

i1              0          5          2.2      800        15000   
10          .5;c
e




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11316;
          12 Aug 97 21:56 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa28436;
          12 Aug 97 21:55 BST
Received: (qmail 1016 invoked from network); 12 Aug 1997 20:55:41 -0000
Received: from hermes.ex.ac.uk (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 12 Aug 1997 20:55:41 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (VAA18870); Tue, 12 Aug 1997 21:40:51 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Tue, 12 Aug 97 21:40:40 +0100
Received: from root@scylla.charybdis.com [207.207.44.2] by hermes via ESMTP (VAA18736); Tue, 12 Aug 1997 21:40:35 +0100
Received: from ares.charybdis.com (ares.charybdis.com [207.207.44.53]) by scylla.charybdis.com (8.7.5/8.7.3) with SMTP id OAA13863 for ; Tue, 12 Aug 1997 14:42:34 -0500
Message-Id: <3.0.1.32.19970812154114.006a8450@charybdis.com>
X-Sender: hdan@charybdis.com
X-Mailer: Windows Eudora Light Version 3.0.1 (32)
Date: Tue, 12 Aug 1997 15:41:14 -0500
To: csound@maths.ex.ac.uk
From: Dan Higdon 
Subject: Re: simple problem
In-Reply-To: <33F0BACF.375C@sfu.ca>
References: 
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

At 12:34 PM 8/12/97 -0700, Doug wrote:
>i have been playing around with this orc and sco to produce some sound
>examples  and i've found something curious. when i ask for a sweep
>between 800hz and 150000hz there is a strange folding over of the
>sound.(starts to play backwards). I've found a number below 10000hz
>avoids this problem but I'm just a bit confused. 

I think the effect you're hearing is called "aliasing".  Due to a
limitation in digital signal processing, any frequency above 1/2 the 
sample rate will not be represented properly.  In this case, anything
above about 22kz will flake out.  Since you're using a non-sinewave
input, any overtones in the signal can't be above 22khz either, or 
they will alias as well.  Aliasing can cause unusual artifacts -
that "folding over" you describe is typical.

So - stick with sounds in the human hearing range! :-)

-------------------------------
Dan Higdon (hdan@charybdis.com)
http://www.charybdis.com/~hdan




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11918;
          13 Aug 97 6:13 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa08078;
          13 Aug 97 6:12 BST
Received: (qmail 11526 invoked from network); 13 Aug 1997 05:12:22 -0000
Received: from hermes.ex.ac.uk (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 13 Aug 1997 05:12:22 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (GAA04660); Wed, 13 Aug 1997 06:05:03 +0100
Received: from exub by maths.exeter.ac.uk; Wed, 13 Aug 97 06:04:53 +0100
Received: from chasque.apc.org [206.99.54.1] by exub via ESMTP (GAA18480); Wed, 13 Aug 1997 06:05:20 +0100
Received: from default (a79.chasque.apc.org [206.99.54.79])
	by chasque.apc.org (8.8.5/8.8.5) with SMTP id CAA07688
	for ; Wed, 13 Aug 1997 02:02:23 +0300 (GMT)
Message-Id: <1.5.4.32.19970813050204.0071ce18@chasque.apc.org>
X-Sender: psotuyo@chasque.apc.org
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 13 Aug 1997 02:02:04 -0300
To: Csound Mailing List 
From: Pablo Sotuyo 
Subject: Ihold/Turnoff related msg.
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi everybody,
                Knowing there will be a 3.47 version of Csound (Thanks to
all who were concerned ;) ) I would like it to get the ihold
revised/modified to let the instrument stay poliphonic and not becomes
monophonic as it behaves in 3.46 version of Csound (win) when you use it. Or
at least include this behaviour in the next Csound Manual.
                Thank you all in advance.
                Pablo.

                
-----------------------------------------------
Pablo Sotuyo Blanco
Composer - French Horn Player 
4th French Horn of the City Hall Symphonic Band
Luppo Music (Sounds & Casuals) Editor
-----------------------------------------------
Tomas de Tezanos 1329
CP 11.300 Buceo
Montevideo - Uruguay
mailto:psotuyo@chasque.apc.org
-----------------------------------------------




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12032;
          13 Aug 97 8:26 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa09435;
          13 Aug 97 8:25 BST
Received: (qmail 13536 invoked from network); 13 Aug 1997 07:25:48 -0000
Received: from hermes.ex.ac.uk (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 13 Aug 1997 07:25:48 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (IAA07124); Wed, 13 Aug 1997 08:16:20 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Wed, 13 Aug 97 08:16:10 +0100
Received: from root@[142.58.110.11] by hermes via ESMTP (IAA07243); Wed, 13 Aug 1997 08:16:05 +0100
Received: from 142.58.123.37 (rs37-annex3.sfu.ca [142.58.123.37]) by ferrari.sfu.ca with SMTP (8.8.5/SFU-2.7H)
  id AAA07782 (from dcross@sfu.ca); Wed, 13 Aug 1997 00:16:05 -0700 (PDT)
Message-Id: <33F15EE2.4C05@sfu.ca>
Date: Wed, 13 Aug 1997 00:14:44 -0700
From: doug cross 
X-Mailer: Mozilla 3.01 (Macintosh; I; PPC)
Mime-Version: 1.0
To: "Brown, Chris G" 
Cc: csound@maths.ex.ac.uk
Subject: Re: simple problem
References: 
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

thanks all for your help. 

i may be clearer on the subject now but i'm looking at the mail i sent
and i've made a mistake. 150000hz should be 15000hz.

anything above 22000hz will present problems i understand but i'm not
wanting to go that high and yet i am experiencing some foldover and
aliasing.

doug




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12123;
          13 Aug 97 9:49 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa11066;
          13 Aug 97 9:49 BST
Received: (qmail 16125 invoked from network); 13 Aug 1997 08:49:15 -0000
Received: from hermes.ex.ac.uk (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 13 Aug 1997 08:49:15 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA10173); Wed, 13 Aug 1997 09:37:26 +0100
Received: from zeno by maths.exeter.ac.uk; Wed, 13 Aug 97 09:37:13 +0100
From: james@maths.ex.ac.uk
Message-Id: <23044.199708130837@zeno.maths.exeter.ac.uk>
Subject:  Re: simple problem
To: csound@maths.ex.ac.uk
Date: Wed, 13 Aug 1997 09:37:12 +0100 (BST)
X-Mailer: ELM [version 2.4 PL25]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1496      
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

owner-csound-outgoing wrote
>From owner-csound-outgoing Wed Aug 13 07:55:24 1997
From: owner-csound-outgoing
Date: Wed, 13 Aug 97 07:55:24 GMT
Message-Id: <6767.9708130755@maths.exeter.ac.uk>
To: owner-csound-outgoing
Subject: BOUNCE Csound: Non-member submission from ["Tobias Kunze" ]

>From tkunze@ulysses.stanford.edu Wed Aug 13 08:55:19 1997 remote from 
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Wed, 13 Aug 97 08:55:19 +0100
Received: from ulysses.Stanford.EDU [36.49.0.124] by hermes via ESMTP (IAA08196); Wed, 13 Aug 1997 08:55:15 +0100
Received: (from tkunze@localhost) by ulysses.stanford.edu (950413.SGI.8.6.12/950213.SGI.AUTOCF) id AAA19705; Wed, 13 Aug 1997 00:57:05 -0700
From: "Tobias Kunze" 
Message-Id: <9708130057.ZM19703@ulysses.stanford.edu>
Date: Wed, 13 Aug 1997 00:57:04 -0700
In-Reply-To: doug cross 
        "Re: simple problem" (Aug 13, 12:14am)
References:  
	<33F15EE2.4C05@sfu.ca>
Reply-To: t@ulysses.Stanford.EDU
X-Url: http://www.stanford.edu/~tkunze
X-Mailer: Z-Mail (3.2.3 08feb96 MediaMail)
To: doug cross 
Subject: Re: simple problem
Cc: csound
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii


if you actually add an "endin" to your orc, you get a clean
800-15000 Hz sweep.  at least on my machine (sgi, csound 3.45).

-Tobias


-- 
James Andrews, maths CDO, ext.3977