Chord
struct Chord
Struct for a chord
-
The Music Sequence
Declaration
Swift
var musicSequence: MusicSequence? -
The tracks
Declaration
Swift
var tracks: [Int: MusicTrack] = [:] -
Init the chord
Declaration
Swift
init() -
Compose a chord
Declaration
Swift
func compose(notes: [Int], instrument: Midi.Instrument) -> ChordParameters
notesThe notes of the chord
instrumentThe instrument to use
Return Value
A
Chord -
Add a track to the chord
Declaration
Swift
mutating func addTrack(instrumentID: UInt8) -> IntParameters
instrumentIDThe ID of the MIDI instrument
Return Value
The track ID
-
Add a note to the track
Declaration
Swift
func addNote(trackID: Int, note: UInt8, duration: Float, position: Float)Parameters
trackIDThe ID of the track
noteThe MIDI note
durationThe duration
positionThe position in the track
View on GitHub