LiveValues
Values
Live values are automatically updated when they have changin values.
Live values are ease to animate with the .live or .seconds static properites.
Install
Install with CocoaPods.
pod 'LiveValues'import LiveValuesTypes:
CGFloat-->LiveFloatInt-->LiveIntBool-->LiveBoolCGPoint-->LivePointCGSize-->LiveSizeCGRect-->LiveRectUIColor-->LiveColor
Static properites:
LiveFloat.liveLiveFloat.secondsLiveFloat.secondsSince1970LiveFloat.gyroXLiveFloat.gyroYLiveFloat.gyroZLiveFloat.accelerationX/Y/ZLiveFloat.magneticFieldX/Y/ZLiveFloat.deviceAttitudeX/Y/ZLiveFloat.deviceGravityX/Y/ZLiveFloat.deviceHeading
Functions:
liveFloat.delay(seconds: 1.0)liveFloat.filter(seconds: 1.0)liveFloat.filter(frames: 60)
Static functions:
LiveFloat.noise(range: -1.0...1.0, for: 1.0)LiveFloat.wave(range: -1.0...1.0, for: 1.0)
MIDI
Here's an example of live midi values in range 0.0 to 1.0.
let midiAny = LiveFloat.midiAny
let midiValue = .midi("<address>")
You can find the addresses by enabeling logging like this:
MIDI.main.log = true