Csound Csound-dev Csound-tekno Search About

Re: [Csnd] tab/table anomoly

Date2012-07-20 17:47
From"Art Hunkins"
SubjectRe: [Csnd] tab/table anomoly
Thanks, Tito. The revised f table indeed permits ctrl7 to reach full volume 
(1).

However, now tab exhibits the same behavior as table, i.e., the note 
initializes to full on before ctrl7 continues with the expected amplitude 
behavior.

Clearly, something is wrong with the way in which tab and table interact 
with GEN16 (here in f1). Perhaps part of the problem is in the way ctrl7 
"initializes" (or rather, puts out nothing until it is moved).

The only way to get proper performance and a full range of 0-1 for ctrl7, 
is to use your revised f table *and* add the line:
ctrlinit 1, 7, 0
at the beginning of instr 1. (Then both tab and table work as expected.)

I don't believe *either* of these additions should be necessary, and would 
appreciate a developer investigating and fixing this elusive bug.

Art Hunkins

----- Original Message ----- 
From: "Tito Latini" 
To: 
Sent: Friday, July 20, 2012 4:56 AM
Subject: Re: [Csnd] tab/table anomoly


> it works
>
> f1 0 16385 16 0 16384 6 1
>
> tito
>
> On Thu, Jul 19, 2012 at 09:51:11PM -0400, Art Hunkins wrote:
>> I don't understand the action of tab, or its substitute, table, in the 
>> .csd
>> below.
>>
>> The example uses a MIDI volume control (typically controller 7) to vary 
>> the
>> amplitude of a sine wave.
>>
>> With *tab*, controller response is normal until it reaches max (1), where
>> it drops precipitously to zero; once below max, it resumes normal 
>> behavior.
>>
>> With *table* (replacing tab) and controller 7 preset to 0, the example
>> initializes at full volume. When the controller is raised, output reverts
>> to what is expected, and continues normally.
>>
>> I presume the problem has to do with converting or interpolating 
>> different
>> kinds of numbers - or having to do with the way 0 and 1 are handled by 
>> tab
>> and table. I'm running Csound 5.06 on Windows XP (if this is a factor).
>>
>> Explanations?
>>
>> Art Hunkins
>>
>>
>> 
>> 
>>
>> ; for Windows, Mac
>> -odac -M0 -b128 -B2048
>> ; for Linux
>> ;-odac -+rtaudio=alsa -+rtmidi=alsa -M hw:1,0 -b128 -B2048
>>
>> 
>> 
>>
>> sr = 44100
>> ksmps = 100
>> nchnls  =       2
>>
>>        instr 1
>>
>> k1 ctrl7    1, 7, 0, 1
>> k2      tab      k1, 1, 1
>> k2      port     k2, .01
>> a1      oscil    5000 * k2, 440, 2
>>        outs     a1, a1
>>
>>        endin
>>
>> 
>> 
>>
>> f1 0 16384 16 0 16384 6 1
>> f2 0 16384 10 1
>> i1 0 60
>>
>> 
>> 
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
> 


Date2012-07-20 17:59
FromTito Latini
SubjectRe: [Csnd] tab/table anomoly
AttachmentsNone