Aurelius Prochazka

2个pods
MIDI 序列器,向其他应用程序发送MIDI事件。基于 AudioKit 的 AKSequencer 构建,用于 iOS 和 macOS。通过专注于音符创建智能 MIDI 序列器乐器。
ruby pod 'MIDISequencer'
MIDISequencer 是基于 AudioKit 的 AKSequencer
并使用 MusicTheory
库构建的,专注于音符的多轨道支持功能。
MIDISequencer
实例。swift let sequencer = MIDISequencer(name: "Awesome Sequencer")
MIDISequencerTrack
并将其添加到序列器的轨道。swift let track = MIDISequencerTrack( name: "Track 1", midiChannel: 1)
MIDISequencerStep
添加到轨道的 steps
swift track.steps = [ MIDISequencerStep( note: Note(type: .c, octave: 4), noteValue: NoteValue(type: .quarter), velocity: .standard(100)), MIDISequencerStep( note: Note(type: .d, octave: 4), noteValue: NoteValue(type: .quarter), velocity: .standard(100)), MIDISequencerStep( note: Note(type: .e, octave: 4), noteValue: NoteValue(type: .quarter), velocity: .standard(100)), MIDISequencerStep( note: Note(type: .f, octave: 4), noteValue: NoteValue(type: .quarter), velocity: .standard(100)), ]
```MIDISequencerStep( chord: Chord(type: .maj, key: .c), octave: 4, noteValue: NoteValue(type: .quarter), velocity: .standard(60))
MIDISequencerStep( notes: [Note(type: .c, octave: 4), Note(type: .d, octave: 4)], octave: 4, noteValue: NoteValue(type: .quarter), velocity: .standard(60))
MIDISequencerStep( notes: Chord(type: .maj, key: .c).notes(octave: 4) + [Note(type: .c, octave: 4), Note(type: .d, octave: 4)], noteValue: NoteValue(type: .quarter), velocity: .standard(60))```
isMuted
属性设置为 true
以静音任何 MIDISequencerStep
。许可证: MIT