Step

90 views
Skip to first unread message

Jack

unread,
Aug 19, 2017, 3:31:27 AM8/19/17
to Lightjams
Suddenly I have this idea.. a source can move random, organic, sine etcera...  but it can't step yet.  like step 10% every second. ha. That would be so cool.
On second thougth .. one could use a formula I guess. But Cos is in the wave table too. Step should be ?

Jack

unread,
Aug 19, 2017, 4:20:44 AM8/19/17
to Lightjams
Cos is actually the same as Sin. Square is step with step from 0 to 100 and back. StepUp and StepDown could be nice. 0-10-20-30-40-50-etc. StepDown 100-90-80..  or random increments on the stepping. Or stepping based on the beats or taps per minute. haha. Probably a crazy idea ? I have the feeling a stepping waveform could be fun.

Mathieu

unread,
Aug 19, 2017, 9:14:50 AM8/19/17
to ligh...@googlegroups.com
Hi Jack,

Stepping can be implemented using the counter, pingCounter and noLoopCounter functions. They can count up or down and have a handy reset parameter.

For example, step of 10% each second: counter(0, 10, pulse(1))*10

Step down (counting backward): counter(0, 10, 0, pulse(1))*10

or just invert the counter: 100 - counter(0, 10, pulse(1))*10

Stepping based on the music beats: counter(0, 10, onbeat(music.1.low.beat))*10

Random step: latch(pulse(1), rand())


You have many options!

Jack

unread,
Aug 19, 2017, 9:30:26 AM8/19/17
to Lightjams
Ah. I see. counter(0, 100, pulse(1)) is increasing the counter every second.

But only on relevant percentages will it cause an x or y to change. So, I will have to calculate the relevant percentage.

Mathieu

unread,
Aug 19, 2017, 9:43:36 AM8/19/17
to Lightjams
Use the xToPercent and yToPercent functions. To move a source forward one cell each second, from cell 0 to 10:

xtopercent(counter(0, 10, pulse(1)))

If you want to go up to the last cell, use the  grid.lastX variable:

xtopercent(counter(0, grid.lastX, pulse(1)))

That's the main formula behind a sequencer, where you move the sequencer head at regular interval or when a midi note or other event is received.

Jack de Visser

unread,
Aug 19, 2017, 9:47:22 AM8/19/17
to ligh...@googlegroups.com
oh man. I think I have just created an inverse sawtooth with
counter(0, 100, 0, pulse(0.01))
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Lightjams" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/lightjams/6A7_bjNqkd0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> lightjams+...@googlegroups.com.
> To post to this group, send email to ligh...@googlegroups.com.
> Visit this group at https://groups.google.com/group/lightjams.
> For more options, visit https://groups.google.com/d/optout.
>

Mathieu

unread,
Aug 19, 2017, 9:51:58 AM8/19/17
to Lightjams
Well, you can also use 100-sawtooth(1)  ;)

Jack

unread,
Aug 19, 2017, 9:54:50 AM8/19/17
to Lightjams
hehe.. it's quite amazing what can be done. Really cool. LightJams is so powerful.
I'm amazed so relatively few people discovered it.

On Saturday, 19 August 2017 15:51:58 UTC+2, Mathieu wrote:

Jack

unread,
Aug 19, 2017, 11:22:23 AM8/19/17
to Lightjams
If I select a number of sources on the y attribute and press the random step button, they  all move randomly.
If I push the organic button, they all have the same y value. One would think, they will all start moving organicly from their starting position.
But somehow they are reset to the same value, and then they move the same. Isn't that strange ?
Reply all
Reply to author
Forward
0 new messages