[Csnd] Filling part of an ftable with one value
Date | 2020-08-05 09:50 |
From | "Jeanette C." |
Subject | [Csnd] Filling part of an ftable with one value |
Hey hey, is an i-time while loop the fastest way to fill part of an ftable with one value, asumming you don't have another ftablle which contains that value? I need this kind of operation on an existing table without touching elements beyond the designated part. Example: giTable = ftgen(0, 0, 512, 2, 0) ... ; Fill positions 128-255 with .5 iIndex init 128 while (iIndex < 256) do tabw_i(.5, iIndex, giTable, 0) iIndex += 1 od ... Best wishes, Jeanette -- * Website: http://juliencoder.de - for summer is a state of sound * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g * SoundCloud: https://soundcloud.com/jeanette_c * Twitter: https://twitter.com/jeanette_c_s * Audiobombs: https://www.audiobombs.com/users/jeanette_c * GitHub: https://github.com/jeanette-c Ain't no way I'll be lonely <3 (Britney Spears) Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2020-08-05 10:18 |
From | Rory Walsh |
Subject | Re: [Csnd] Filling part of an ftable with one value |
Isn't there a new opcode to do just this? ftset or something. I think Eduardo might have added it. On Wed, 5 Aug 2020 at 09:50, Jeanette C. <julien@mail.upb.de> wrote: Hey hey, |