Csound Csound-dev Csound-tekno Search About

need help with *pitch* opcode

Date1999-08-21 14:49
FromJosep M Comajuncosas
Subjectneed help with *pitch* opcode
Hi,
I´m trying to use the new "pitch" opcode to track the pitch of a model
to tune it better. It´s not clear in the doccumentation: where it is
supposed to be the optional "ifrqs" parameter? It appears in 2 places!
Does anyone have a working example of it?
Also, when I only use the customary parameters:
koct, kamp pitch aout, .5, 8.5, 9.0, 5
Csound crashes.
Why?

Tnx in advance!
Josep M

--
Josep M Comajuncosas
C/ Circumval.lacio 75  08790 Gelida - Penedes
Catalunya - SPAIN tel. 93 7792243
e-mail:          gelida@intercom.es
ET Informatica de Sistemes
e-mail: jcomajuncosas@campus.uoc.es
  http://members.tripod.com/csound/



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17890;
          21 Aug 99 15: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 11IC9m-0005al-00
	for jpff@maths.bath.ac.uk; Sat, 21 Aug 1999 15:30:06 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (PAA05633); Sat, 21 Aug 1999 15:27:57 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 21 Aug 1999 15:27:45 +0100
Received: from mail2.svr.pol.co.uk [195.92.193.210] by hermes via ESMTP (PAA14974); Sat, 21 Aug 1999 15:27:44 +0100 (BST)
Received: from modem-52.medroxyprogest.dialup.pol.co.uk ([62.136.61.52] helo=internetpc)
	by mail2.svr.pol.co.uk with smtp (Exim 2.12 #2)
	id 11IC7V-0004OT-00
	for csound@maths.ex.ac.uk; Sat, 21 Aug 1999 15:27:45 +0100
Message-ID: <001401beebe1$a8710260$343d883e@internetpc>
From: richard bowers 
To: csound csound 
Subject: schedule, schedwhen
Date: Sat, 21 Aug 1999 15:30:02 +0100
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 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

I understand that the opcodes schedule and schedwhen will only operate once
in a single call to the instrument containing them. Is that correct?

Is there any way of scheduling an instrument any number of times from within
a single instance of the instrument containing these opcodes, and with new
parameters (pfields)?

I would be grateful for any tips.

Many thanks,

Richard Bowers



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17956;
          21 Aug 99 15:41 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11IBGh-0003J7-00
	for jpff@maths.bath.ac.uk; Sat, 21 Aug 1999 14:33:11 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (PAA03661); Sat, 21 Aug 1999 15:37:56 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 21 Aug 1999 15:37:46 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (PAA06929); Sat, 21 Aug 1999 15:37:45 +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 11IBDB-0003IS-00
	for csound@maths.ex.ac.uk; Sat, 21 Aug 1999 14:29:33 +0100
Date:     Sat, 21 Aug 99 15:37:43 BST
From: jpff@maths.bath.ac.uk
Subject:  Csound on Windows98
To: csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 21 Aug 1999 10:13:38 +0100

I received a message (by a round-about route) that a potential user of
Csound on Windows98 claimed that he needed a missing file, ML3211.dll,
in order to run Csound.  I have neither W98 nor that file.  Does
anyone recognise this DLL, or can confirm running/non running on W98?
Thanks for any insight
=John ffitch


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17962;
          21 Aug 99 15:41 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11ICKy-0005ar-00
	for jpff@maths.bath.ac.uk; Sat, 21 Aug 1999 15:41:40 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (PAA12989); Sat, 21 Aug 1999 15:39:33 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 21 Aug 1999 15:39:23 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (PAA03427); Sat, 21 Aug 1999 15:39:23 +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 11IBEo-0003Iy-00
	for csound@maths.ex.ac.uk; Sat, 21 Aug 1999 14:31:14 +0100
Date:     Sat, 21 Aug 99 15:39:24 BST
From: jpff@maths.bath.ac.uk
Subject:  Re: streson question with example
To: csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 21 Aug 1999 15:08:32 +0100
--- Copy of mail to DBoothe@lyrick.com ---

I have been looking at teh streson code, and while I did detect a
minor coding error it did not change the small impulses.  I did also
notice that there is code for fractional delay changes, so the problem
is not that of itself.

I have been staring at the code with no real change (although I have
made it a little faster).

I have also gone back to the original code and that shows the same
problem, so I think we need assistanc from Victor Lazzarini or someone
who understands the algorithm.
=John ffitch


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17974;
          21 Aug 99 15:41 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11IBHB-0003J9-00
	for jpff@maths.bath.ac.uk; Sat, 21 Aug 1999 14:33:41 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (PAA10460); Sat, 21 Aug 1999 15:39:46 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 21 Aug 1999 15:39:35 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (PAA03220); Sat, 21 Aug 1999 15:39:34 +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 11IBEz-0003J4-00
	for csound@maths.ex.ac.uk; Sat, 21 Aug 1999 14:31:25 +0100
Date:     Sat, 21 Aug 99 15:39:35 BST
From: jpff@maths.bath.ac.uk
Subject:  Re: loscil annoyances
To: csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 21 Aug 1999 15:32:31 +0100
--- Copy of mail to slinkp@ulster.net ---
In-reply-to: <37BA5D16.7645F120@ulster.net> (message from Paul Winkler on Wed,
	18 Aug 1999 03:13:26 -0400)
References:  <37BA5D16.7645F120@ulster.net>

The reason why loscil behaves differently from other opcodes wrt
tables is that loscil is allowed to use non-power-of-two tables and
the others are not.  Similarly with a deferred table the only way to
determine its length is to load it (within the current code).  It
would be possible to force loading from within tablen, indeed a
trivial change, but I am not sure if that is correct.
  Actually I have never used loscil so I am largely ignorant of its
needs.  Making a fake loop point may be possible.
=John ffitch


Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa18039;
          21 Aug 99 16: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 11ID4y-0005bK-00
	for jpff@maths.bath.ac.uk; Sat, 21 Aug 1999 16:29:12 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (QAA01026); Sat, 21 Aug 1999 16:26:50 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 21 Aug 1999 16:26:38 +0100
Received: from mail3.svr.pol.co.uk [195.92.193.19] by hermes via ESMTP (QAA17413); Sat, 21 Aug 1999 16:26:38 +0100 (BST)
Received: from modem-57.clown-trigger.dialup.pol.co.uk ([62.136.250.57] helo=internetpc)
	by mail3.svr.pol.co.uk with smtp (Exim 2.12 #2)
	id 11ID2U-0002Ur-00
	for csound@maths.ex.ac.uk; Sat, 21 Aug 1999 16:26:38 +0100
Message-ID: <001101beebe9$e27cf560$39fa883e@internetpc>
From: richard bowers 
To: csound csound 
Subject: non-power-of-two tables
Date: Sat, 21 Aug 1999 16:28:55 +0100
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 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Is it possible to use the Robin Whittle table-write opcodes with
non-power-of-two tables?

If so, can an arbitrary table size be specified differently for each
instance of the instrument. eg. if p4=table size then:

i1    0    3    6256
i1    3    2    3847
etc.?

Thanks in advance,
Richard Bowers.



Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa18111;
          21 Aug 99 17:19 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11ICo0-0003KC-00
	for jpff@maths.bath.ac.uk; Sat, 21 Aug 1999 16:11:40 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (RAA07528); Sat, 21 Aug 1999 17:16:08 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 21 Aug 1999 17:15:57 +0100
Received: from smtp01.interq.net [210.172.128.14] by hermes via ESMTP (RAA02925); Sat, 21 Aug 1999 17:15:55 +0100 (BST)
Received: from s (kokubunji2-219.teleway.ne.jp [210.234.18.219])
	by smtp01.interq.net (8.9.0/8.9.1/matt89-pop) with SMTP id BAA19111
	for ; Sun, 22 Aug 1999 01:15:53 +0900 (JST)
Message-ID: <004d01beebf0$6bcfa000$db12ead2@a.computer>
From: Kanata Motohashi 
To: Csound Mailing List 
References: 
Subject: Re:  Csound on Windows98
Date: Sun, 22 Aug 1999 01:15:36 +0900
Organization: Stand Alone Records
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hello John,

I do not know and do not have the ML3211.dll,
however I am running your WINSOUND on Windows98.

Kanata Motohashi



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa18201;
          21 Aug 99 18:36 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11IF3i-0005cH-00
	for jpff@maths.bath.ac.uk; Sat, 21 Aug 1999 18:36:02 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (SAA00898); Sat, 21 Aug 1999 18:33:45 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 21 Aug 1999 18:33:37 +0100
Received: from root@news.cube.net [194.97.64.2] by hermes via SMTP (SAA09749); Sat, 21 Aug 1999 18:33:36 +0100 (BST)
Received: from orpheus.selene.cube.net([193.149.39.225]) (1141 bytes) by salyko.cube.net
	via smtpd with P:smtp/R:bind_hosts/T:inet_zone_bind_smtp
	(sender: ) 
	id 
	for ; Sat, 21 Aug 1999 19:33:36 +0200 (MEST)
	(Smail-3.2.0.106 1999-Mar-31 #2 built 1999-Aug-6)
Received: from hermes by orpheus.selene.cube.net (NX5.67f2/NX3.0M)
	id AA21595; Sat, 21 Aug 99 19:33:10 +0200
Message-Id: <9908211733.AA21595@orpheus.selene.cube.net>
Received: by hermes.selene.cube.net (NX5.67g/NX3.0X)
	id AA00259; Sat, 21 Aug 99 19:33:07 +0200
Content-Type: text/plain
Mime-Version: 1.0 (NeXT Mail 4.2mach v148)
Received: by NeXT.Mailer (1.148)
From: Peter Neubacker 
Date: Sat, 21 Aug 99 19:33:06 +0200
To: csound@maths.ex.ac.uk
Subject: Re: schedule, schedwhen
Reply-To: peter@orpheus.selene.cube.net
References: <001401beebe1$a8710260$343d883e@internetpc>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


Richard Bowers wrote:

>Is there any way of scheduling an instrument any number of times from within
>a single instance of the instrument containing these opcodes, and with new
>parameters (pfields)?

The orchestra I posted some days ago works for exactly that purpose!
Look for algocomp.csd at:
http://www.harmonik.de/femc/femcdown.html

Best greetings - Peter


Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa18460;
          21 Aug 99 21:17 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11IGVR-0003MT-00
	for jpff@maths.bath.ac.uk; Sat, 21 Aug 1999 20:08:45 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (VAA00229); Sat, 21 Aug 1999 21:14:49 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 21 Aug 1999 21:14:42 +0100
Received: from root@news.cube.net [194.97.64.2] by hermes via SMTP (VAA11893); Sat, 21 Aug 1999 21:14:41 +0100 (BST)
Received: from orpheus.selene.cube.net([193.149.39.225]) (2815 bytes) by salyko.cube.net
	via smtpd with P:smtp/R:bind_hosts/T:inet_zone_bind_smtp
	(sender: ) 
	id 
	for ; Sat, 21 Aug 1999 22:14:40 +0200 (MEST)
	(Smail-3.2.0.106 1999-Mar-31 #2 built 1999-Aug-6)
Received: from hermes by orpheus.selene.cube.net (NX5.67f2/NX3.0M)
	id AA21632; Sat, 21 Aug 99 22:14:15 +0200
Message-Id: <9908212014.AA21632@orpheus.selene.cube.net>
Received: by hermes.selene.cube.net (NX5.67g/NX3.0X)
	id AA00376; Sat, 21 Aug 99 22:14:13 +0200
Mime-Version: 1.0 (NeXT Mail 4.2mach v148)
Content-Type: text/enriched; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Received: by NeXT.Mailer (1.148)
From: Peter =?iso-8859-1?Q?Neubäcker?= 
Date: Sat, 21 Aug 99 22:14:12 +0200
To: csound@maths.ex.ac.uk
Subject: New opcode
Reply-To: peter@orpheus.selene.cube.net
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

 Hi csounders,

I just wrote a new opcode - see description below.
I will post it to jpff - maybe he will put it into the next
release. If you want to use it now and compile it 
yourself you can find it at: 

http://www.harmonik.de/femc/femcdown.html

Best greetings  -  Peter



hsboscil
--------

ar    hsboscil   kamp, ktona, kbrite, ibasef, ifn, imixtbl [, ioctcnt] [, iphs]

DESCRIPTION
This oscillator takes tonality and brightness as arguments, relative to a
base frequency (ibasef). Tonality is a cyclic parameter in the logarithmic
octave, brightness is realized by mixing multiple weighted octaves.
It is useful when tone space is understood in a concept of polar coordinates.
If you run ktona as a line and keep kbrite constant, you get Risset's glissando.
Oscillator table ifn is always read interpolated. 
Performance time requires about ioctcnt * oscili.

INITIALIZATION
ibasef   -  a base frequency to which tonality and brighness are relative.
ifn      -  a function table, usually a sine.
imixtbl  -  a function table used for weighting the octaves, usually
            something like:  f n 0  1024  -19  1  0.5  270  0.5
ioctcnt  -  number of octaves used for brightness blending,
            default is 3, minimum 2, maximum 10.
iphs     -  initial phase if the oscillator, if -1 initialisation is skipped.

PERFORMANCE
kamp     -  Amplitude of note.
ktona    -  Cyclic tonality parameter relative to ibasef in logarithmic 
            octave, range 0 - 1, values > 1 can be used and are internally 
            reduced to frac(ktona).
kbrite   -  brightness parameter relative to ibasef achieved by 
            weighting ioctcnt octaves. It is scaled in a way that a value
            of 0 corresponds to orignal ibasef, 1 one octave above, -2 two
            octaves below ibasef etc. and any fractional value in between.



Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa19694;
          22 Aug 99 12:48 BST
Received: from [144.173.6.14] (helo=exeter.ac.uk)
	by shaun.maths.bath.ac.uk with esmtp (Exim 2.12 #1)
	id 11IW6x-0005se-00
	for jpff@maths.bath.ac.uk; Sun, 22 Aug 1999 12:48:31 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (MAA17055); Sun, 22 Aug 1999 12:45:54 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sun, 22 Aug 1999 12:45:42 +0100
Received: from [209.0.233.37] by hermes via SMTP (MAA15851); Sun, 22 Aug 1999 12:45:41 +0100 (BST)
Received: (qmail 4683 invoked by uid 0); 22 Aug 1999 11:45:27 -0000
Received: from pppa13-resalemontgomery1-2r1103.saturn.bbn.com (HELO netzero.net) (4.16.206.72)
  by mail2.lax.netzero.net with SMTP; 22 Aug 1999 11:45:27 -0000
Message-ID: <37BFE3E5.1A0E8763@netzero.net>
Date: Sun, 22 Aug 1999 06:49:58 -0500
From: Sherlock 
X-Mailer: Mozilla 4.61 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
To: "csound@maths.ex.ac.uk" 
Subject: phasor
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Could someone take a look at this and tell me where I went wrong? 




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

                instr   1
k1      phasor p5
kpch    table   k1 * 12, 2
a1      oscil   p4, cpspch(kpch), 2
        out a1

		endin




;Function 1 uses the GEN8 subroutine to compute a wave
f1  0 4096 10   1    
f2  0 4096 10   1  .5 .333 .25 .2 .166 .142 .125 .111 .1 .09 .083 .076
.071 .066 .062

;inst  start   duration  p4         p5          p6    p7      p8   p9

i1       0       1.75    10000       440
i1       2       1.75    20000       660
e
________________________________________________________
NetZero - We believe in a FREE Internet.  Shouldn't you?
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html