Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

How do I find out the maximum and minimum values (y)?

Still a little green? Ask your beginner's questions here

How do I find out the maximum and minimum values (y)?

Postby ryanbruggeman » Thu Mar 28, 2019 11:05 pm

Simple as that :0) How do I find out the maximum and minimum values (y) from an incoming channel so i know what to set my Limit CHOP to?

Cheers!
ryanbruggeman
 
Posts: 8
Joined: Wed Oct 03, 2018 10:17 pm

Re: How do I find out the maximum and minimum values (y)?

Postby FaustoB » Fri Mar 29, 2019 12:21 am

Hi there,

I am sure that this can be resolved in one single line of Python, but some time ago I came up with a little component that calculates min, max, and average value of a CHOP.

I find it helpful to use when dealing whit erratic values (incoming data from Arduino's sensors etc...)

I have attached the component.

1# Drop this component in your network.
2# Connect the CHOP you want to read to the IN.
3# Connect a null to the OUT. (optional)
4# Press the reset button in the Reset page of the component.


The network inside this component it's definitely over complicated, but it works. I use this component all the time, and never bothered optimising since this is an operator that I usually use for quick testing only and finding min/max ranges.

Let me know if it does the job for you as well.
Attachments
Min_Max_Average.tox
(1.46 KiB) Downloaded 85 times
FaustoB
 
Posts: 71
Joined: Mon Jan 08, 2018 8:33 am
Location: Sydney, NSW

Re: How do I find out the maximum and minimum values (y)?

Postby ryanbruggeman » Fri Mar 29, 2019 4:31 pm

Thanks for the great tool! works well, especially like the average value there as well.

Cheers!
ryanbruggeman
 
Posts: 8
Joined: Wed Oct 03, 2018 10:17 pm

Re: How do I find out the maximum and minimum values (y)?

Postby eric.b » Fri Mar 29, 2019 4:46 pm

The Analyze CHOP can give you the maximum/minimum values from an input channel.
User avatar
eric.b
Staff
 
Posts: 138
Joined: Mon Jun 13, 2016 3:53 pm
Location: Toronto

Re: How do I find out the maximum and minimum values (y)?

Postby FaustoB » Mon Apr 01, 2019 5:46 am

Very true Eric, thanks for that.

However, with the Analize CHOP, I noticed that if I want to get the maximum/minimum value of an LFO for example, or a noise CHOP set to Time slice, I need to hook up my CHOP to something like a Trail Chop first, and then feed this to an Analyze CHOP.

and beyond that, what will I do now with my over engineered Min_Max_Average custom made component ?
:)
FaustoB
 
Posts: 71
Joined: Mon Jan 08, 2018 8:33 am
Location: Sydney, NSW

Re: How do I find out the maximum and minimum values (y)?

Postby FaustoB » Mon Apr 01, 2019 6:06 am

Got it!
I have remade my Min_Max_Average component using two Analyze CHOPs.
Now my component uses half of the operators it was using before, and the Probe likes it better too! it came up with the message "It was about time".
Tox attached.
Attachments
Min_Max_Average_v2.tox
(982 Bytes) Downloaded 76 times
FaustoB
 
Posts: 71
Joined: Mon Jan 08, 2018 8:33 am
Location: Sydney, NSW


Return to Beginners

Who is online

Users browsing this forum: Google [Bot] and 16 guests