MIDIPianoRollView
open class MIDIPianoRollView : UIScrollView, MIDIPianoRollCellViewDelegate
Piano roll with customisable row count, row range, beat count and editable note cells.
-
Piano roll bars.
See moreDeclaration
Swift
public enum Bars -
Piano roll keys.
See moreDeclaration
Swift
public enum Keys -
All grid lines for line with and color customisation.
See moreDeclaration
Swift
public struct GridLine -
Zoom level of the piano roll that showing the mininum amount of beat.
See moreDeclaration
Swift
public enum ZoomLevel : Int -
All notes in the piano roll.
Declaration
Swift
public var notes: [MIDIPianoRollNote] { get set } -
Time signature of the piano roll. Defaults to 4/4.
Declaration
Swift
public var timeSignature: <<error type>> { get set } -
Bar count of the piano roll. Defaults to auto.
Declaration
Swift
public var bars: MIDIPianoRollView.Bars { get set } -
Rendering note range of the piano roll. Defaults all MIDI notes, from 0 to 127.
Declaration
Swift
public var keys: MIDIPianoRollView.Keys { get set } -
Minimum amount of the zoom level.
Declaration
Swift
public var minZoomLevel: MIDIPianoRollView.ZoomLevel -
Maximum amount of the zoom level.
Declaration
Swift
public var maxZoomLevel: MIDIPianoRollView.ZoomLevel -
Speed of zooming by pinch gesture.
Declaration
Swift
public var zoomSpeed: CGFloat -
Maximum width of a beat on the bar, max zoomed in.
Declaration
Swift
public var maxBeatWidth: CGFloat -
Minimum width of a beat on the bar, max zoomed out.
Declaration
Swift
public var minBeatWidth: CGFloat -
Current with of a beat on the measure.
Declaration
Swift
public var beatWidth: CGFloat -
Fixed height of the bar on the top.
Declaration
Swift
public var measureHeight: CGFloat -
Fixed left hand side row width on the piano roll.
Declaration
Swift
public var rowWidth: CGFloat -
Current height of a row on the piano roll.
Declaration
Swift
public var rowHeight: CGFloat -
Maximum height of a row on the piano roll.
Declaration
Swift
public var maxRowHeight: CGFloat -
Minimum height of a row on the piano roll.
Declaration
Swift
public var minRowHeight: CGFloat -
Label configuration for the measure beat labels.
Declaration
Swift
public var measureLabelConfig: UILabel -
Delegate that informs about cell changes.
Declaration
Swift
public weak var pianoRollDelegate: MIDIPianoRollViewDelegate? -
Enables/disables the edit mode. Defaults false.
Declaration
Swift
public var isEditing: Bool { get set } -
Enables/disables the zooming feature. Defaults true.
Declaration
Swift
public var isZoomingEnabled: Bool { get set } -
Enables/disables the measure rendering. Defaults true.
Declaration
Swift
public var isMeasureEnabled: Bool { get set } -
Enables/disables the multiple note cell editing at once. Defaults false.
Declaration
Swift
public var isMultipleEditing: Bool { get set } -
Layer that cells drawn on. Lowest layer.
Declaration
Swift
public private(set) var cellLayer: UIView -
Layer that grid drawn on. Middle low layer.
Declaration
Swift
public private(set) var gridLayer: UIView -
Layer that rows drawn on. Middle top layer.
Declaration
Swift
public private(set) var rowLayer: UIView -
Layer that measure drawn on. Top most layer.
Declaration
Swift
public var measureLayer: UIView
-
Initilizes the piano roll with a frame.
Declaration
Swift
public override init(frame: CGRect)Parameters
frameFrame of the view.
-
Initilizes the piano roll with a coder.
Declaration
Swift
public required init?(coder aDecoder: NSCoder)Parameters
aDecoderCoder.
-
Undocumented
Declaration
Swift
open override func layoutSubviews() -
Undocumented
Declaration
Swift
open override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? -
Removes each component and creates them again.
Declaration
Swift
public func reload()
-
Declaration
Swift
public func midiPianoRollCellViewDidMove(_ midiPianoRollCellView: MIDIPianoRollCellView, pan: UIPanGestureRecognizer) -
Declaration
Swift
public func midiPianoRollCellViewDidResize(_ midiPianoRollCellView: MIDIPianoRollCellView, pan: UIPanGestureRecognizer) -
Declaration
Swift
public func midiPianoRollCellViewDidTap(_ midiPianoRollCellView: MIDIPianoRollCellView) -
Declaration
Swift
public func midiPianoRollCellViewDidDelete(_ midiPianoRollCellView: MIDIPianoRollCellView)
View on GitHub
MIDIPianoRollView Class Reference