Csound Csound-dev Csound-tekno Search About

control of start and end points of a wavetable

Date1998-09-02 18:12
FromGareth Whittock
Subjectcontrol of start and end points of a wavetable
Can anyone tell me how to vary the start and end points of any type of
wavetable in csound?


Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08629;
          2 Sep 98 18:28 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa05894;
          2 Sep 98 18:28 BST
Received: (qmail 21130 invoked from network); 2 Sep 1998 17:28:42 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 2 Sep 1998 17:28:42 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA06049); Wed, 2 Sep 1998 18:25:06 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Wed, 2 Sep 1998 18:24:55 +0100
Received: from www0c.netaddress.usa.net [204.68.24.32] by hermes via SMTP (SAA22869); Wed, 2 Sep 1998 18:24:52 +0100 (BST)
Received: (qmail 14915 invoked by uid 60001); 2 Sep 1998 17:24:51 -0000
Message-ID: <19980902172451.14914.qmail@www0c.netaddress.usa.net>
Received: from 204.68.24.32 by www0c via web-mailer(R2.6) on Wed Sep  2 17:24:45 GMT 1998
Date:  2 Sep 98 13:24:45 EDT
From: Rick Mealey 
To: csound@maths.ex.ac.uk
MMDF-Warning:  Parse error in original version of preceding line at UK.AC.Bath.maths.stork
Subject: hello?
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

>We would encourage you to please send a message to the list outlining =

>your interest with csound, what platform you run on, what stuff you've =

>done that is absolutely amazing etc

Well... OK. I'm fairly new to programming in general and Csound in partic=
ular.
I'm in the peculiar situation of having moved into a new house with none =
of my
usual keyboard-based means of making music present other than an ancient =
Mac
6205 (I'm waiting on a security system to be installed before I move all =
that
stuff in), so thought I would explore some non-real-time rendering.

My version of Csound is whichever Mac version I pulled down from Mills Co=
llege
about a month ago. I presume it's the most recent, though if you ask me w=
hat
version number that is, I don't recall offhand. It seems to have a full
feature set, including a bunch of opcodes not documented in any of the HT=
ML
versions of the manual (but which are documented locally).

Though I console myself thinking I've done things some might consider ama=
zing,
none of them have been with Csound. Which I guess partially explains why =
I'm
here.

If some of these questions sound like I've been sitting off in a corner o=
f the
room deaf, dumb, and blind, it's only because I haven't been able to acce=
ss
the log of recent posts to the mailing list; the document apparently cont=
ains
no data. There _have_ been recent posts, haven't there...?

I've been fairly itching for a chance to explore some of the Amsterdam li=
brary
orcs and scos, but haven't been able to access their server. Has that add=
ress
changed? Does it still exist?

Is there a digest version of the mailing list? Stop laughing....

I have other questions about the nuts and bolts of Csound, but as I don't=
 know
what's currently being discussed, I'll hold off on asking those. So that
should cover me for the time being....

Thanks in advance for the bandwidth.

Right, cheers, thanks a lot,

Rick

____________________________________________________________________
More than just email--Get your FREE Netscape WebMail account today at htt=
p://home.netscape.com/netcenter/mail



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10038;
          3 Sep 98 4:27 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa02432;
          3 Sep 98 4:27 BST
Received: (qmail 22734 invoked from network); 3 Sep 1998 03:27:20 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 3 Sep 1998 03:27:20 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA01590); Thu, 3 Sep 1998 04:24:13 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 3 Sep 1998 04:24:02 +0100
Received: from pop03.globecomm.net [206.253.130.65] by hermes via ESMTP (EAA22790); Thu, 3 Sep 1998 04:24:01 +0100 (BST)
Received: from iname.com (ppp083.223.mmtl.videotron.net [207.96.223.83]) by pop03.globecomm.net (8.9.0/8.8.0) with ESMTP id XAA03039 for ; Wed, 2 Sep 1998 23:24:00 -0400 (EDT)
Message-ID: <35EE0C73.588BCC20@iname.com>
Date: Wed, 02 Sep 1998 23:26:43 -0400
From: Antoine Lefebvre 
X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.0.34 i586)
MIME-Version: 1.0
To: Csound mailing list 
Subject: Real time csound problem
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hello,

I am trying to play csound in real-time with a midi keyboard but there
is a big delay of about 6 seconds between the moment I press the key and
the moment I listen the sound.

I'm not able to solve out the problem so I ask you some cue.

Thanks for help

Antoine Lefebvre



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10084;
          3 Sep 98 4:54 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa04863;
          3 Sep 98 4:53 BST
Received: (qmail 13126 invoked from network); 3 Sep 1998 03:53:55 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 3 Sep 1998 03:53:55 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA23895); Thu, 3 Sep 1998 04:51:09 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 3 Sep 1998 04:50:58 +0100
Received: from root@westnet.com [206.24.6.2] by hermes via ESMTP (EAA18282); Thu, 3 Sep 1998 04:50:57 +0100 (BST)
Received: from goodguy (port4.ts1.westnet.com [206.24.7.225])
	by westnet.com (8.9.0/8.9.0) with SMTP id XAA20709;
	Wed, 2 Sep 1998 23:50:46 -0400 (EDT)
Message-ID: <35EE0AFD.14C1EB97@westnet.com>
Date: Thu, 03 Sep 1998 03:20:29 +0000
From: Larry Troxler 
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.31 i586)
MIME-Version: 1.0
To: Antoine Lefebvre 
CC: Csound mailing list 
Subject: What platform? Re: Real time csound problem
References: <35EE0C73.588BCC20@iname.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Mac? DOS? Windows? SGI? Linux?  ....

Sounds like your DAC buffers are set too large, accounting for the
latency.

  

Antoine Lefebvre wrote:
> 
> Hello,
> 
> I am trying to play csound in real-time with a midi keyboard but there
> is a big delay of about 6 seconds between the moment I press the key and
> the moment I listen the sound.
> 
> I'm not able to solve out the problem so I ask you some cue.
> 
> Thanks for help
> 
> Antoine Lefebvre



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10432;
          3 Sep 98 7:27 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa18124;
          3 Sep 98 7:26 BST
Received: (qmail 17604 invoked from network); 3 Sep 1998 06:27:10 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 3 Sep 1998 06:27:10 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (HAA20519); Thu, 3 Sep 1998 07:24:21 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 3 Sep 1998 07:24:10 +0100
Received: from endeavor.flash.net [209.30.0.40] by hermes via ESMTP (HAA01986); Thu, 3 Sep 1998 07:24:08 +0100 (BST)
Received: from flash.net (p40.amax1.dialup.ftw1.flash.net [209.30.14.40])
	by endeavor.flash.net (8.8.8/8.8.5) with ESMTP id BAA25667
	for ; Thu, 3 Sep 1998 01:24:05 -0500 (CDT)
Message-ID: <35EE360C.F6AD6C5D@flash.net>
Date: Thu, 03 Sep 1998 01:24:12 -0500
From: pete moss 
Organization: pete moss GmbH
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: csound 
Subject: way way way off topic
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

sorry for this post, but i dont know who else to ask...

one of the profs here at the university wants me to build his sister a
computer.  they have a few stipulations.  she is blind and wants a voice
recognition program so she can run things without seeing them. also,
they want it to be a mac.  does anyone know of any voice software for
the mac out there?
next question, she wants a midi hookup to a keyboard.  how midi friendly
is mac?  what kind of software / hardware should i be looking for?
also, jim stevenson, what kind of a setup do you use?  you have
mentioned your mail reader in the past, but what other hardware /
software do you use?  do they make braille keyboards?

any info or url that anyone could give would be most appreciated.  sorry
for the off topic post.

pete



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10767;
          3 Sep 98 9:45 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa29992;
          3 Sep 98 9:45 BST
Received: (qmail 25333 invoked from network); 3 Sep 1998 08:45:26 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 3 Sep 1998 08:45:26 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA26027); Thu, 3 Sep 1998 09:38:18 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 3 Sep 1998 09:38:06 +0100
Received: from jaguars-int.cableinet.net [193.38.113.9] by hermes via SMTP (JAA08240); Thu, 3 Sep 1998 09:38:06 +0100 (BST)
Received: (qmail 17942 invoked from network); 3 Sep 1998 08:38:14 -0000
Received: from unknown (HELO cableinet.co.uk) (194.117.146.200)
  by jaguars with SMTP; 3 Sep 1998 08:38:14 -0000
Message-ID: <35EE534D.9FDE4F63@cableinet.co.uk>
Date: Thu, 03 Sep 1998 09:29:01 +0100
From: Richard Dobson 
Organization: Composers Desktop project
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: pete moss 
CC: csound 
Subject: Re: way way way off topic
References: <35EE360C.F6AD6C5D@flash.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

I have an interest in this too, and would also like to have any information,
general or specific. I would have thought that the Mac could pose some problems,
being so graphical in nature - it does not have a console window as PC and Unix
machines do, so text-based programs cannot be ued.

Richard Dobson


pete moss wrote:
> 
> sorry for this post, but i dont know who else to ask...
> 
> one of the profs here at the university wants me to build his sister a
> computer.  they have a few stipulations.  she is blind and wants a voice
> recognition program so she can run things without seeing them. also,
> they want it to be a mac.  does anyone know of any voice software for
> the mac out there?
> next question, she wants a midi hookup to a keyboard.  how midi friendly
> is mac?  what kind of software / hardware should i be looking for?
> also, jim stevenson, what kind of a setup do you use?  you have
> mentioned your mail reader in the past, but what other hardware /
> software do you use?  do they make braille keyboards?
> 
> any info or url that anyone could give would be most appreciated.  sorry
> for the off topic post.
> 
> pete


Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa11030;
          3 Sep 98 11:36 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa11557;
          3 Sep 98 11:36 BST
Received: (qmail 13429 invoked from network); 3 Sep 1998 10:36:47 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 3 Sep 1998 10:36:47 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA14705); Thu, 3 Sep 1998 11:29:34 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 3 Sep 1998 11:29:16 +0100
Received: from agora.stm.it [195.62.32.1] by hermes via ESMTP (LAA00983); Thu, 3 Sep 1998 11:29:00 +0100 (BST)
Received: from default (ppp02-09.dial-access.stm.it [195.62.37.73]) by agora.stm.it (8.8.8/8.8.5) with ESMTP id MAA18070; Thu, 3 Sep 1998 12:28:52 +0200 (ITADST)
Message-ID: <35ED9F9C.70EB656B@agora.stm.it>
Date: Wed, 02 Sep 1998 21:42:20 +0200
From: Gabriel Maldonado 
X-Mailer: Mozilla 4.0 [en] (Win95; I)
MIME-Version: 1.0
To: Gareth Whittock 
CC: Csound mailing list 
Subject: Re: control of start and end points of a wavetable
X-Priority: 3 (Normal)
References: <35ED7C6E.C9529E60@dial.pipex.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Do you intend to vary start and end loop points during the performance?

In this case, if you have my realtime Windows version you can use the
'lposc' (or 'lposcint', if you are using GEN22 to store samples in
integer format). These opcodes allow  you to vary the start and the loop
point at the performance time.  If you don't have a Windows platform,
you must wait for a while, all my opcodes will be relased in standard
version in the future.

This is the manual:

posc and lposc

ar posc kamp, kcps, ift [,iphs]
kr posc kamp, kcps, ift [,iphs]

ar lposc kamp, kfreqratio, kloop, kend, ift [,iphs]
kr lposc kamp, kfreqratio, kloop, kend, ift [,iphs]

ar lposcint kamp, kfreqratio, kloop, kend, ift [,iphs]


INITALIZATION

ift - function table number
iphs - initial phase (in samples)

PERFORMANCE

ar - output signal
kamp - amplitude
kcps - frequency
kfreqratio - multiply factor of table frequency (for example: 1 =
original frequency,
  1.5 = a fifth up , .5 = an octave down)
kloop - loop point (in samples)
kend - end loop point (in samples)

posc (precise oscillator) is the same as oscili but allows hugely more
precise frequency
control (especially when using long tables and low frequency values).
It is only a bit slower than oscili.

lposc (loop oscillator) allows to vary in k rate the starting and ending
phase of a table.
This can be useful when reading samples
loop of a wavetable which repeat speed can be varied during the
performance.

lposcint is the same as lposc, but read integer stored sample tables
(GEN 22) to reduce
ram memory needs.



Gareth Whittock wrote:

> Can anyone tell me how to vary the start and end points of any type of
>
> wavetable in csound?
> X-UIDL: 80d38a9575db0daeefeca1ef1e7b8159



--
Gabriel Maldonado

http://www.agora.stm.it/G.Maldonado/home2.htm