Could someone explain this patch to me?

MINHYEOCK LEE's icon

MINHYEOCK LEE

5月 30 2024 | 1:36 午後

Could someone explain this patch to me? please!!

Graham Wakefield's icon

Graham Wakefield

5月 30 2024 | 2:03 午後

These are the go.ramp.div and go.latchsync patches from the GO book (https://cycling74.com/books/go). There's definitely some explanation in the book and also in the comments in the patches. They've also been discussed in the forum here in the past.

Do you have a specific question about them?

MINHYEOCK LEE's icon

MINHYEOCK LEE

5月 30 2024 | 10:43 午後

I don't really understand the concept of history. When should I use history, and what can I expect when using history together with Switch?

LSka's icon

LSka

5月 31 2024 | 6:48 午前

as it says in the comments, [history] stores the last sample and allows for feedback loops. In this case it takes the output from the last [switch] and it makes it available for the next cycle.

You can think of [switch] as a "if then else" block, so in this case the logic is something like:

if in1 is 0
then switch output is in1
else switch output is previous value (stored in history)