Csound Csound-dev Csound-tekno Search About

Re: [Csnd] tab/table anomoly

Date2012-07-22 00:01
From"Art Hunkins"
SubjectRe: [Csnd] tab/table anomoly
Thanks, Tito. This clears up my confusion. The problem is only at init time.

>From this experience, I request that the following clarifications be added 
to the manual pages below:

GEN16
(following the text "The normal value is power-of-2 plus 1."):
The end value is only reached  when the table length is power-of-2 plus 1. 
(This length is crucial for use with the tab opcode.)

CTRL7
(suggest inserting as new paragraph just before the "See Also" section):
Note that ctrl7 only outputs k values once the controller is first moved. To 
set an initial k-value, a call to initc7 is required. Ctrlinit does not work 
for this purpose.

Art Hunkins

----- Original Message ----- 
From: "Tito Latini" 
To: 
Sent: Saturday, July 21, 2012 2:55 AM
Subject: Re: [Csnd] tab/table anomoly


> If your problem is a bad value during the performance, then it is a
> bug on windows. If it is only a problem at init time, I think that
> it is not a bug. From initc7 man page:
>
>  "initc7 can be used together with both midic7 and ctrl7 opcodes for
>  initializing the first controller's value."
>
> tito
>
> On Fri, Jul 20, 2012 at 05:51:21PM -0400, Art Hunkins wrote:
>> Thanks, Tito. It must be a difference between linux 64bit and the latest
>> doubles Windows version at Sourceforge (as well as previous Windows
>> distributions).
>>
>> I've identified one specific problem with ctrl7 in my distribution: prior
>> to moving the controller, ctrl7 outputs the *high limit* value rather 
>> than
>> 0. Thus:
>> ctrl7 1, 7, 10, 20
>> outputs 20 before the controller moves. This is not correct. Here's the
>> .csd to demonstrate:
>>
>> 
>> 
>>
>> ; 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, 10, 20
>> printk2 k1
>>
>>        endin
>>
>> 
>> 
>>
>> i1 0 60
>>
>> 
>> 
>>
>> Art Hunkins
>>
>> ----- Original Message ----- 
>> From: "Tito Latini" 
>> To: 
>> Sent: Friday, July 20, 2012 3:24 PM
>> Subject: Re: [Csnd] tab/table anomoly
>>
>>
>> >yes, I use a MIDI controller and your example works with
>> >
>> > f1 0 16385 16 0 16384 6 1
>> >
>> >Values checked with printk2, the range is [0.00000; 1.00000]
>> >I use linux 64bit.
>> >
>> >tito
>> >
>> >On Fri, Jul 20, 2012 at 02:52:03PM -0400, Art Hunkins wrote:
>> >>Strange.
>> >>
>> >>I did a clean install of Csound5.17 (Windows doubles), and I get
>> >>identical
>> >>results to before.
>> >>
>> >>Did you try the example with a MIDI controller? I get a note with 
>> >>maximum
>> >>volume (and controller set at 0 - not that that matters any; whatever 
>> >>the
>> >>setting, the initial volume - prior to moving the control - should be 
>> >>0).
>> >>
>> >>Art Hunkins
>> >
>> >
>> >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"
>
>
> 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"
>