# Bitten by i

**URL:** <https://forum.csound.com/t/bitten-by-i/1132>\
**Category:** General\
**Created:** [March 10, 2023, 3:01pm UTC](https://forum.csound.com/t/bitten-by-i/1132 "2023-03-10T15:01:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tjingboem](https://forum.csound.com/user_avatar/forum.csound.com/tjingboem/32/44_2.png) [@tjingboem](https://forum.csound.com/u/tjingboem)\
**Post date:** [March 10, 2023, 3:01pm UTC](https://forum.csound.com/t/bitten-by-i/1132/1 "2023-03-10T15:01:31Z")

</div>

I have this LFO. From time to time i want to harvest a value from the k rate values and use that as an i rate value.  
And this would have to happen each time a note is produced.  
And not change during the note…

It is the classic k to i rate problem, but perhaps someone has come up with a nifty solution?

---

<div class="post-metadata">

**Author:** ![stevenyi](https://forum.csound.com/user_avatar/forum.csound.com/stevenyi/32/4_2.png) [@stevenyi](https://forum.csound.com/u/stevenyi)\
**Post date:** [March 10, 2023, 3:20pm UTC](https://forum.csound.com/t/bitten-by-i/1132/2 "2023-03-10T15:20:30Z")

</div>

If it’s a global k-rate variable, you can use i(gk\_global\_val) to read it at init-time and use it for the duration of a note.

---

<div class="post-metadata">

**Author:** ![tjingboem](https://forum.csound.com/user_avatar/forum.csound.com/tjingboem/32/44_2.png) [@tjingboem](https://forum.csound.com/u/tjingboem)\
**Post date:** [March 10, 2023, 3:50pm UTC](https://forum.csound.com/t/bitten-by-i/1132/3 "2023-03-10T15:50:26Z")

</div>

True, that works Thanks.  
In my experiments this afternoon i found the article from Andrés Cabrera about a, k, and i rate conversions [Csound Journal](http://www.csounds.com/journal/issue10/CsoundRates.html)

“There is a simple converter which will convert a k-type signal to i-type: i(). The problem lies in the fact that the conversion takes place during the init-pass, which is a moment when the k-type variable might actually have a value of 0, because there has been no perf-pass to update it!”

and that is exactly what is happening; the first note is muted because the pitch is multiplied by 0…but now that i know it i can take it into account.
