Search found 4 matches
- Tue Jul 25, 2017 11:31 pm
- Forum: Feature Requests
- Topic: "Range" Modifier (if x >A && x < B )
- Replies: 1
- Views: 3924
"Range" Modifier (if x >A && x < B )
I have MIDI notes doing different things on the same channel, essentially changing the colour of a mask on the video output. The problem is that I want the modifier that deals with colour to only respond to MIDI notes from my 'colour' buttons, and nothing else on the same MIDI channel. The ideal sol...
- Mon Jul 24, 2017 5:07 pm
- Forum: General Discussion
- Topic: InputSelector: passing existing input # into an expression
- Replies: 7
- Views: 7379
Re: InputSelector: passing existing input # into an expressi
Eric has mentioned that opening up variables to the Expression modifier is on the radar, but no idea where it sits on the to do list. Hopefully near the top :D I'd be interested to see how others have used MIDI successfully in Magic; I must be missing something crucial, as the whole idea of passing...
- Mon Jul 24, 2017 8:42 am
- Forum: General Discussion
- Topic: InputSelector: passing existing input # into an expression
- Replies: 7
- Views: 7379
Re: InputSelector: passing existing input # into an expressi
The if control in the expression modifier takes the generic form of: if (x,y,z) , i.e. "If x is true then return y else return z" The original x can be used as the z component, so if (x > 1.0, 3.0 , x) would return 3 when the condition is true and the original input x if not. Which is wha...
- Sun Jul 23, 2017 9:26 pm
- Forum: General Discussion
- Topic: InputSelector: passing existing input # into an expression
- Replies: 7
- Views: 7379
InputSelector: passing existing input # into an expression
I'm using an expression to take MIDI notes and use them to change the channel on my InputSelector, like so: if (roundn(x,3) == 0.236) 1; else if (roundn(x,3) == 0.252) 2; else if (roundn(x,3) == 0.268) 3; else if (roundn(x,3) == 0.283) 4; else if (roundn(x,3) == 0.299) 5; else if (roundn(x,3) == 0.3...