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"