Fwd: How to get t (time) to calculate output = sin ( 2 * PI * freq * t )?

“t” is the representation in continuous-time but in discrete time it can
represented in the form of sample-count (samp-rate must be known).

hold the number of items produced by the block on the output port. This
count along-with “noutput_items” (items that can be produced during
work function call), can possibly be used to determine the factor “t”


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs