This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
4rpl:commands:signalgenerator [2025/09/02 20:43] – [Sine wave in any direction without gaps] kalli | 4rpl:commands:signalgenerator [2025/09/03 16:43] (current) – [Sine wave in any direction without gaps] kalli | ||
---|---|---|---|
Line 156: | Line 156: | ||
<-cell1 <-cell0 sub ->dir | <-cell1 <-cell0 sub ->dir | ||
<-dir.0 abs <-dir.1 abs max ->length | <-dir.0 abs <-dir.1 abs max ->length | ||
- | <-dir <-length asfloat div ->dirL | + | <-length eq0 if 0 0 v2 else <-dir <-length asfloat div endif ->dirL |
<-cell0 | <-cell0 | ||
< | < |