Csound Csound-dev Csound-tekno Search About

Re: Negative p3 vs polyphonicity

Date1999-08-17 13:44
FromRichard Dobson
SubjectRe: Negative p3 vs polyphonicity
Yes, indeed you can (subject to any evidence to the contrary), and it's
also a good way of identifying those opcodes that need the init flag.
But, to misquote Delius, why should I spoil the look of my orchestra? A
legato instrument can have a lot of gotos anyway, of one kind or
another, and having to wrap so many other opcodes with this is tiresome,
and makes things even more unreadable.  In many cases can be done by
extending the meaning of existing flags. The only reason I haven't done
more work on the existing opcodes myself is that, for better or worse, a
lot of other things demand my attention, and I haven't got a round tuit.

Richard Dobson

Peter Neubacker wrote:
> 
> Richard Dobson wrote:
> 
> > So I have this ongoing request to all developers of opcodes - if there
> > is internal state (i.e phase, table lookup, filter state, etc), ~please~
> > add a switch to skip initialization, otherwise the opcode will most
> > likely not work for legato performance.
> 
> I think you can bypass initilisation of
> any opcode by this construction:
> 
> instr 1
> 
> tigoto skipinit
> asig oscil p4,p5,1
>      out   asig
> skipinit:
> 
> endin
> 
> Best greetings - Peter Neubaecker

-- 
Test your DAW with my Soundcard Attrition Page!
http://wkweb5.cableinet.co.uk/rwd (LU: 6th July 1999)
CDP: http://www.bath.ac.uk/~masjpf/CDP/CDP.htm (LU: 14th June 1999)


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07077;
          17 Aug 99 14:25 BST
Received: from [128.240.226.11] (helo=mailout1.mailbase.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11GiCA-0000gk-00
	for jpff@maths.bath.ac.uk; Tue, 17 Aug 1999 13:18:26 +0100
Received: from naga.mailbase.ac.uk (naga.mailbase.ac.uk [128.240.226.3])
	by mailout1.mailbase.ac.uk (8.9.1a/8.9.1) with ESMTP id OAA25842;
	Tue, 17 Aug 1999 14:24:52 +0100 (BST)
Received: (from daemon@localhost) 
        by naga.mailbase.ac.uk (8.8.x/Mailbase) id OAA24417;
        Tue, 17 Aug 1999 14:24:08 +0100 (BST)
Received: from dryctnath.mmu.ac.uk (dryctnath.mmu.ac.uk [149.170.190.134]) 
        by naga.mailbase.ac.uk (8.8.x/Mailbase) with ESMTP id OAA24406;
        Tue, 17 Aug 1999 14:23:55 +0100 (BST)
Received: from althaea.als.aca.mmu.ac.uk ([149.170.138.131])
	by dryctnath.mmu.ac.uk with esmtp (Exim 2.04 #1)
	id 11GjDV-0006Mu-00; Tue, 17 Aug 1999 14:23:53 +0100
Received: from MMU-CRA-ALTHAEA/SpoolDir by althaea.als.aca.mmu.ac.uk (Mercury 1.44);
    17 Aug 99 14:23:45 gmt
Received: from SpoolDir by MMU-CRA-ALTHAEA (Mercury 1.44); 17 Aug 99 14:23:43 gmt
Received: from [149.170.229.28] (149.170.190.138) by althaea.als.aca.mmu.ac.uk (Mercury 1.44) with ESMTP;
    17 Aug 99 14:23:36 gmt
X-Mailer: Microsoft Outlook Express for Macintosh - 4.01 (295) 
Date: Tue, 17 Aug 1999 14:21:23 +0100
Mime-version: 1.0
X-Priority: 3
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Message-ID: <2A5C8CC0290@althaea.als.aca.mmu.ac.uk>
Subject: Organised Sound - Call for Papers - Interactivity
From: "Prof. Leigh Landy" 
To: os@cage.york.ac.uk, algo-comp@heinous.isca.uiowa.edu, 
    antunez@guarany.cdp.unb.br, barry_truax@sfu.ca, 
    brit-comp-music@mailbase.ac.uk, caesar@acd.ufrj.br, cec@vax2.concordia.ca, 
    csound@maths.ex.ac.uk, dalfarra@clacso.edu.ar, David.Worrall@anu.edu.au, 
    dgang@cs.huji.ac.il, emusic-l@american.edu, icma@umich.edu, 
    Jonathas@dsif.fee.unicamp.br, lelioc@risc.idg.fi.cnr.it, 
    msp@muttley.ucsd.edu, Music-Research@comlab.ox.ac.uk, 
    music@watson.ibm.com, csound@maths.ex.ac.uk, synth-l@american.edu, 
    EMF@emf.org, caesar@acd.ufrj.br, antunez@guarany.cdp.unb.br, 
    Jonathas@dsif.fee.unicamp.br, dalfarra@clacso.edu.ar, 
    pcsound@maths.bath.ac.uk, phil@sonicartsnetwork.org, piotr@connect.ab.ca, 
    smallmusic@xcf.berkeley.edu, SOUND@acm.org, synth-l@american.edu, 
    uri@violin.technion.ac.il
X-List: brit-comp-music@mailbase.ac.uk
X-Unsub: To leave, send text 'leave brit-comp-music' to mailbase@mailbase.ac.uk
X-List-Unsubscribe: 
Reply-To: "Prof. Leigh Landy" 
Sender: brit-comp-music-request@mailbase.ac.uk
Errors-To: brit-comp-music-request@mailbase.ac.uk
Precedence: list
Content-Transfer-Encoding: 7bit



                            Organised Sound
              An International Journal of Music and Technology


Volume 5, Number 1
Issue thematic title: Interactivity 
Date of Publication: January 2000
Publishers: Cambridge University Press

Articles to be considered for publication in the named issue are now
invited.

Interactivity

Despite the activity of recent decades in the fields of Live
Electronics, Human-Computer Interfacing, Gestural Sensing, Motion
Tracking, Virtual Reality and other forms of interactivity between
humans and their machines, most of us still use the mouse and ASCII
keyboard to communicate with our musical computers. If you don't, write
an article for Organised Sound and tell us why you don't and how you
manage not to?

Cross-arts work has inspired a good deal of innovation in
human-computer interaction to allow dance, sculpture, video and public
events to be closely linked with musical creation and performance, and
to allow extra-musical events to be mapped into a musical domain. Do
you map events to music or write music which can only be performed
interactively? Do you produce mechanisms or write programs that allow
this type of interaction to take place?

Are you working with new materials which allow information to be
transduced from people or events in a form suitable for artistic
applications?

Real-time computing, once a goal of all music applications, is now only
a special case in time since many of our most complex musical processes
can be realised "faster than sound", or at least faster than many
performers. What forms of interaction will be possible with computer
music applications in future electronic music performances?  

How will new computer resources effect the necessity for the
out-of-time compositional processes of electroacoustic music? Will
electroacoustic music become a performance based music, where an
audience might visit concert halls to enjoy a certain performer's
interpretation of a piece?  

Complex scenarios like those described above require years of
development work in hardware, software, creative processes,
compositional techniques and in audience awareness or desire to
interact with artists. If you are making a contribution in any of these
fields Organised Sound would be delighted to consider your work for
publication.

SUBMISSION DEADLINE: 15 November 1999

SUBMISSION FORMAT

Notes for Contributors can be obtained from the inside back cover of
published issues of Organised Sound or from:

http://www.cup.cam.ac.uk/journals/oso/osoifc.htm

TIMETABLE for SUBMISSIONS

Articles and other material for the editors' consideration should be
submitted
by 15 November 1999. Hard copy to:

 The Editors
 Organised Sound
 Centre for Technology and the Arts
 De Montfort University
 Leicester LE1 9BH, UK.

Email submissions should be mailed to (please see SUBMISSION FORMAT above):

 os@cage.york.ac.uk


Further details about Organised Sound are available at:

http://www.cup.cam.ac.uk/Journals/JNLSCAT/oso/oso.html


Editors: Ross Kirk, Leigh Landy, Tony Myatt, Richard Orton.
Corresponding Editors:
 Lelio Camilleri, Daniel Oppenheim, Miller Puckette, Barry Truax,
 David Worrall
International Editorial Board:
 Marc Battier, Francois Bayle, Peter Castine, Alcedo Coenen, 
 Francis Dhomont,Simon Emmerson, Rajmil Fischman, Takayuki Rai, 
 John Rimmer, Jean-Claude Risset, Francis Rumsey, Conrado Silva, 
 Christiane Ten-Hoopen, Daniel Teruggi, Jukka Tiensuu, 
 Trevor Wishart, Scott Wyatt, Iannis Xenakis.



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07640;
          17 Aug 99 18:20 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11GmuZ-0003lQ-00
	for jpff@maths.bath.ac.uk; Tue, 17 Aug 1999 18:20:35 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (SAA17654); Tue, 17 Aug 1999 18:14:57 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 17 Aug 1999 18:14:45 +0100
Received: from jaguars-int.cableinet.net [193.38.113.9] by hermes via SMTP (SAA07771); Tue, 17 Aug 1999 18:14:44 +0100 (BST)
Received: (qmail 9122 invoked from network); 17 Aug 1999 17:15:10 -0000
Received: from unknown (HELO cableinet.co.uk) (194.117.146.154)
  by jaguars with SMTP; 17 Aug 1999 17:15:10 -0000
Message-ID: <37B99A9D.A0B56E1@cableinet.co.uk>
Date: Tue, 17 Aug 1999 18:23:41 +0100
From: Richard Dobson 
Organization: Composers Desktop Project
X-Mailer: Mozilla 4.51 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Csound 
Subject: Re: Negative p3 vs polyphonicity
References: <199907271411.KAA18866@renoir.op.net>
			<379E3C5E.3751F522@cableinet.co.uk>
			<37B0D474.85C4DCD9@worldnet.att.net>
			<37B2A08E.5A2415BD@cableinet.co.uk>
			<37B4D77C.866688B0@worldnet.att.net>
			<37B6C7AB.41AA9E27@cableinet.co.uk> <37B6F0CD.4C8F7581@intercom.es>
			<37B7E202.5DB1253B@cableinet.co.uk> <9908170820.AA19943@orpheus.selene.cube.net> <37B9591A.1CB17817@cableinet.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

As you were: contrary evidence: it doesn't work for fof, and may well
not work for other ugs too. The reason is that some initialization
~does~ need to be done, even for tied notes. In the case of fof, linked
lists need to be reset.


I have tried a minimalist change to fof which ~seems~ to work:

the iphs flag is currently confined to the range 0 to 1 , so is a
convenient one to appropriate for a skip-init copmmand.

Inside the fof() function itself, it looks as if all that needs to be
done is wrap the alloc inside the skip test, thus:

	if(*p->iphs >= 0){
		auxalloc((long)olaps * sizeof(OVRLAP), &p->auxch);
	}

there may be other things that need to be wrapped thusly too, but it is
clear that the init cannot be skipped completely. I still suspect that
it may not be easy to run a tie across the middle of a fof grain - some
sort of wraparound might be needed. In the worst case,  considerable
redesign might have to be done to support legato. Maybe the newer
fof/fog opcodes are more suitable for this?



Richard Dobson 

> 
> Yes, indeed you can (subject to any evidence to the contrary), and it's
> also a good way of identifying those opcodes that need the init flag.
[etc]

> 
> Peter Neubacker wrote:
> >
> > Richard Dobson wrote:
> >
> > > So I have this ongoing request to all developers of opcodes - if there
> > > is internal state (i.e phase, table lookup, filter state, etc), ~please~
> > > add a switch to skip initialization, otherwise the opcode will most
> > > likely not work for legato performance.
> >
> > I think you can bypass initilisation of
> > any opcode by this construction:
> >
> > instr 1
> >
> > tigoto skipinit
> > asig oscil p4,p5,1
> >      out   asig
> > skipinit:
> >
> > endin


-- 
Test your DAW with my Soundcard Attrition Page!
http://wkweb5.cableinet.co.uk/rwd (LU: 6th July 1999)
CDP: http://www.bath.ac.uk/~masjpf/CDP/CDP.htm (LU: 14th June 1999)


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07679;
          17 Aug 99 18:34 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11Gm5X-0000na-00
	for jpff@maths.bath.ac.uk; Tue, 17 Aug 1999 17:27:51 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (SAA05849); Tue, 17 Aug 1999 18:29:50 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Tue, 17 Aug 1999 18:29:40 +0100
Received: from smtp1.erols.com [207.172.3.234] by hermes via ESMTP (SAA13892); Tue, 17 Aug 1999 18:29:39 +0100 (BST)
Received: from VX900 (207-172-74-203.s203.tnt2.man.va.dialup.rcn.com [207.172.74.203])
	by smtp1.erols.com (8.8.8/8.8.5) with SMTP id NAA13251
	for ; Tue, 17 Aug 1999 13:29:32 -0400 (EDT)
Message-ID: <37B9C777.46D@erols.com>
Date: Tue, 17 Aug 1999 13:35:03 -0700
From: Jeffrey John Hall 
X-Mailer: Mozilla 2.01KIT (Win95; U; 16bit)
MIME-Version: 1.0
To: csound 
Subject: CD formats
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 an audio CD from a colleague in Europe which is full,   
     but will not play on any CD player or computer that I have tried,
     (9 in all). When I try to play it on a computer, the system 
     does not recognize that there is a disk in the drive. The 
     message is: "No Disk in Drive".
          When I check properties I see that the format  is called:
     CDFS. 
          Just to try to clear up the "mystery", I wanted to ask the
     list whether anyone knew what might be the source of the problem.
                               Luck to All,
                                               Jeff Hall


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08187;
          18 Aug 99 0:21 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11GsXr-0003rh-00
	for jpff@maths.bath.ac.uk; Wed, 18 Aug 1999 00:21:31 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (AAA12294); Wed, 18 Aug 1999 00:18:30 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 18 Aug 1999 00:18:19 +0100
Received: from law2-f9.hotmail.com [216.32.181.9] by hermes via SMTP (AAA17534); Wed, 18 Aug 1999 00:18:18 +0100 (BST)
Received: (qmail 12020 invoked by uid 0); 17 Aug 1999 23:17:47 -0000
Message-ID: <19990817231747.12019.qmail@hotmail.com>
Received: from 206.173.98.124 by www.hotmail.com with HTTP;
	Tue, 17 Aug 1999 16:17:47 PDT
X-Originating-IP: [206.173.98.124]
From: David Matthews 
To: csound@maths.ex.ac.uk
Subject: tubular bell instrument/samples
Date: Tue, 17 Aug 1999 23:17:47 GMT
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Does anyone have a decent instrument for emulating a tubular bell/orchestral 
chime, or, alternatively, a sample of such a bell?  Also, I'd like to be 
able to manipulate the spectrum of the sound over time, so if anyone has a 
method for doing this, I'd like some suggestions.  (I'm kind of a newbie to 
CSound.)
Thanks,
DGM


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08332;
          18 Aug 99 1: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 11GsuP-0000ui-00
	for jpff@maths.bath.ac.uk; Wed, 18 Aug 1999 00:44:49 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (BAA18272); Wed, 18 Aug 1999 01:49:24 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 18 Aug 1999 01:49:14 +0100
Received: from howl.werewolf.net [12.23.152.10] by hermes via ESMTP (BAA09771); Wed, 18 Aug 1999 01:49:13 +0100 (BST)
Received: from default (dial29.werewolf.net [12.23.153.29])
	by howl.werewolf.net (8.9.0/8.9.0) with SMTP id TAA04450
	for ; Tue, 17 Aug 1999 19:43:51 -0500 (CDT)
Message-ID: <000f01bee913$eda7cc40$1d99170c@default>
From: Hans Mikelson 
To: csound@maths.ex.ac.uk
MMDF-Warning:  Parse error in original version of preceding line at UK.AC.Bath.maths.omphalos
Subject: Re: tubular bell instrument/samples
Date: Tue, 17 Aug 1999 19:52:19 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi,

David wrote:

>Does anyone have a decent instrument for emulating a tubular
bell/orchestral
>chime, or, alternatively, a sample of such a bell?

Josep has a very good one at:

http://members.tripod.com/csound/

Bye,
Hans Mikelson



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08585;
          18 Aug 99 4:15 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11GwCf-0003v3-00
	for jpff@maths.bath.ac.uk; Wed, 18 Aug 1999 04:15:53 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (EAA14823); Wed, 18 Aug 1999 04:13:48 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 18 Aug 1999 04:13:38 +0100
Received: from saba.wwa.com [198.49.174.36] by hermes via ESMTP (EAA09130); Wed, 18 Aug 1999 04:13:37 +0100 (BST)
Received: from [157.238.67.144] (157-238-67-144.il.verio.net [157.238.67.144])
	by saba.wwa.com (8.9.0/8.9.0) with SMTP id WAA23008
	for ; Tue, 17 Aug 1999 22:13:31 -0500 (CDT)
Message-Id: <199908180313.WAA23008@saba.wwa.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 17 Aug 1999 22:17:57 -0600
To: csound@maths.ex.ac.uk
MMDF-Warning:  Parse error in original version of preceding line at UK.AC.Bath.maths.omphalos
From: "17.hzV.tRL.478" 
Subject: Re: tubular bell instrument/samples
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi,

David wrote:

>Does anyone have a decent instrument for emulating a tubular
bell/orchestral
>chime, or, alternatively, a sample of such a bell?

Josep has a very good one at:

http://members.tripod.com/csound/

Bye,
Hans Mikelson



>Hi,
>
>David wrote:
>
>>Does anyone have a decent instrument for emulating a tubular
>bell/orchestral
>>chime, or, alternatively, a sample of such a bell?
>
>Josep has a very good one at:
>
>http://members.tripod.com/csound/
>
>Bye,
>Hans Mikelson



Hi,

David wrote:

>Does anyone have a decent instrument for emulating a tubular
bell/orchestral
>chime, or, alternatively, a sample of such a bell?

Josep has a very good one at:

http://members.tripod.com/csound/

Bye,
Hans Mikelson




Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08636;
          18 Aug 99 5:00 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11GvqH-0000wo-00
	for jpff@maths.bath.ac.uk; Wed, 18 Aug 1999 03:52:45 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (EAA07636); Wed, 18 Aug 1999 04:57:33 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 18 Aug 1999 04:57:23 +0100
Received: from root@ulster.net [208.148.73.65] by hermes via ESMTP (EAA14046); Wed, 18 Aug 1999 04:57:22 +0100 (BST)
Received: from ulster.net (port55.king.ulster.net [208.242.160.56])
	by nerf.ulster.net (8.9.3/8.9.3/Debian/GNU) with ESMTP id AAA08944
	for ; Wed, 18 Aug 1999 00:10:54 -0400
Message-ID: <37BA30B3.AD627640@ulster.net>
Date: Wed, 18 Aug 1999 00:04:03 -0400
From: Paul Winkler 
X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.0.36 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: CSOUND list 
Subject: Pscore version 0.0.3 (living dead release)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Pscore (my Csound::Pscore.pm perl module for generating/modifying
scores) is now at version 0.0.3. Actually, I wrote 0.0.3 months ago,
then I got really busy, then I never uploaded it or updated the web
page.

Though pscore is not really an active project anymore, and though it is
still very limited and buggy, I though those csounders who know a little
perl might like to play with it.
http://www.ulster.net/~abigoo/pw_linux/code.html


----------------    paul winkler    ------------------
slinkP arts:  music, sound, illustration, design, etc.

zarmzarm@hotmail.com   --or-- slinkp AT ulster DOT net
http://www.ulster.net/~abigoo/
======================================================


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08880;
          18 Aug 99 8: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 11Gyns-00014e-00
	for jpff@maths.bath.ac.uk; Wed, 18 Aug 1999 07:02:28 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (IAA16816); Wed, 18 Aug 1999 08:06:57 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 18 Aug 1999 08:06:47 +0100
Received: from root@ulster.net [208.148.73.65] by hermes via ESMTP (IAA16244); Wed, 18 Aug 1999 08:06:45 +0100 (BST)
Received: from ulster.net (port55.king.ulster.net [208.242.160.56])
	by nerf.ulster.net (8.9.3/8.9.3/Debian/GNU) with ESMTP id DAA21493
	for ; Wed, 18 Aug 1999 03:20:16 -0400
Message-ID: <37BA5D16.7645F120@ulster.net>
Date: Wed, 18 Aug 1999 03:13:26 -0400
From: Paul Winkler 
X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.0.36 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: CSOUND list 
Subject: loscil annoyances
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Is this a bug, or a "feature"?

I'm currently running Unofficial Linux Csound Version  v3.53.0.1b.

I've been using loscil, and I find that it will not work as
I think it should with .aiff files that don't have sustain loop 
points set in the file.
Gen 01 seems to have no trouble loading the file, but here's an
example of an orc that won't work:

;orchestra
        sr      =       44100
        kr      =       2205
        ksmps   =       20
        nchnls  =       1
instr 2
; amp 1, freq = 100, ftable = 12, base freq = 100
a1 loscil  1, 100, 12, 100
out a1                           
endin

; score
f12  0       0     -1 "FX/Worry_Baby/drip_single.aiff"  0 0 0
i2      0       0.45
i2      +       .

This causes csound to report "WARNING: loscil: sustain defers to
non-looping source". No problem-- that's what I want.  But the 
output is silent. If I run the _exact same_ score after adding
sustain and end loop points to the file, it works... though
I've now made the sound loop, which isn't what I wanted. But if
I then modify the orchestra to look like this:

 a1 loscil  ipitch, 100, 12, 100, 0 

...I get the error "INIT ERROR in instr 2: illegal sustain loop
data
a1      loscil  ipitch  100     12      100     0       0
0       -1    0 

This seems unreasonable to me. To my thinking, I've requested
loscil to turn off looping, expecting to get the table played
from beginning to end; but loscil refuses! 

I guess you could argue that
there's no reason to want to turn off looping in loscil (it's a
"looping oscillator", after all.)  But there is: loscil has a
key feature that no other opcode has -- it can read gen01 tables
with deferred table size. This is a big convenience. If you work
with a lot of soundfiles, you don't want to have to look up the
table size every time you edit a soundfile. Why should you?

I think I've figured out what's going on. It seems that loscil
will only play the sample up until the end of the sustain loop,
EVEN IF LOOPING IS TURNED OFF. This means that .aiff samples
with the default non-looping header information will play from
sample 0 to sample 0... that is, not at all.

Furthermore, if the sustain and end loops are set in the
soundfile, setting loscil's loop mode to 0 prevents reading 
the loop points from the soundfile... that is, if you
override the loop mode, you are forced to override the start and
end points as well.
 
Can anyone figure out how to fix this? It seems to me that, in
loop mode 0 (off), the sample should play from beginning to end,
ignoring the loop points entirely.
That would be consistent with the expectations of anyone who's
ever used pretty much any sampler or soundfile editor.

On a related note, while looking for a workaround for the above
problem, I found that I apparently can't use tableng on a
deferred-size ftable. This is rather ironic, since that would
seem to be the case in which it would be most useful to find the
table size automatically!

For example, this code:
 ilast tableng ifn
 a1 loscil  1, 100, ifn, 100, 0 , 1, ilast

...gives this error:
INIT ERROR in instr 2: deferred-size ftable 12.000000 illegal
here
ilast   tableng_i       ifn

There are two ways I could imagine fixing this:
1) Rewrite tableng, et al. to allow them to work with
deferred-size tables; or
2) Add a feature to loscil so that the loop point "-1" is
interpreted as the last point in the table; I could then write
the code above as
 a1 loscil  1, 100, ifn, 100, 0 , 1, -1

Solution 1 would be preferable, I think, because I've never
understood why only one opcode is allowed to work with
deferred-size tables, and it would be nice to have a more
generalized solution. (For that matter, I've never understood
why only the .aiff format is allowed for creating deferred-size
tables with gen 01. Those of us on intel-based platforms would benefit
from eliminating the byte-reverse overhead.)

-- 

----------------    paul winkler    ------------------
slinkP arts:  music, sound, illustration, design, etc.

zarmzarm@hotmail.com   --or-- slinkp AT ulster DOT net
http://www.ulster.net/~abigoo/
======================================================


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08901;
          18 Aug 99 8:29 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11H0AR-00041y-00
	for jpff@maths.bath.ac.uk; Wed, 18 Aug 1999 08:29:51 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (IAA10557); Wed, 18 Aug 1999 08:27:51 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 18 Aug 1999 08:27:40 +0100
Received: from front3.grolier.fr [194.158.96.53] by hermes via ESMTP (IAA16918); Wed, 18 Aug 1999 08:27:39 +0100 (BST)
Received: from club-internet.fr (ppp-165-160.villette.club-internet.fr [195.36.165.160])
	by front3.grolier.fr (8.9.3/No_Relay+No_Spam_MGC990224) with ESMTP id JAA17342
	for ; Wed, 18 Aug 1999 09:27:38 +0200 (MET DST)
Message-ID: <37BA7025.1B5BD5CB@club-internet.fr>
Date: Wed, 18 Aug 1999 09:34:46 +0100
From: "K.H" 
Reply-To: karmha@club-internet.fr
X-Mailer: Mozilla 4.6 (Macintosh; I; PPC)
X-Accept-Language: en
MIME-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Re: loscil other annoyances
References: <37BA5D16.7645F120@ulster.net>
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hello

    I'm using the last Csound ppc3.56, and have also problems with
loscil!

    While using stereo samples through Gen01 and outputing floating 16
bits i get strange clicks at the end of each sample on the right channel
only!
this is avoided using rescaling.


sr= 44100
kr= 4410
ksmps=  10
nchnls= 2


instr 2
kenv  linenr  p6,p7,p3,p8

asig1,asig2 loscil  kenv,p5,p4,261.626

     outs  asig1,asig2
    endin

f1 0 0 1 1 0 4 0
f2 0 0 1 2 0 4 0

f4 0 0 1 3 0 4 0

f6 0 0 1 4 0 4 0

;p1 p2 p3 p4 p5 p6 p7 p8
i2 9.4840 2.0000 2 261.6260 8000 0 0.01
i2 8.6320 2.1810 6 239.9120 10000 . .
i2 6.4650 2.0000 6 261.6260 10000 . .
i2 15.7580 5.0000 4 261.6260 10000 . .
i2 3.2900 2.0000 2 261.6260 8000 . .
i2 1.5870 2.0000 6 261.6260 10000 . .
e