프로젝트
GitHub에서 보기
0thernet/MusicKit
소개
Swift에서 음악을 작곡하고 변환하는 프레임워크
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMusicKit
MusicKit is a framework and DSL for creating, analyzing, and transforming music in Swift.
My current work is at Hraness, including Dawn, a TypeScript music SDK and CLI. Dawn is a private preview; installation requires access.
Examples
Functional harmony
let C5 = Pitch(midi: 72)
let neapolitan = Major.bII
print(neapolitan(C5)) // [C♯5, E♯5, G♯5]
let G4 = Chroma.G*4
let plagalCadence = [Major.IV, Major.I]
print(plagalCadence * G4) // [[C5, E5, G5], [G4, B4, D5]]
let V7ofV = HarmonicFunction.create(Scale.Major, degree: 5, chord: Major.V7)
print(V7ofV(C5)) // [D6, F♯6, A6, C7]
Chord recognition
let pitchSet: PitchSet = [Chroma.B*0, Chroma.Cs*2, Chroma.F*3, Chroma.G*4]
print(Chord.name(pitchSet)) // G7♭5/B
let descriptor = Chord.descriptor(pitchSet)
print(descriptor) // root: G, quality: 7♭5, bass: B
MIDI I/O
let midi = MIDI(name: "WholetoneClusters")
midi.noteHandler = { messages in
if let first = messages.first {
midi.send([first, first.transpose(2), first.transpose(3)])
}
}
관련 프로젝트 살펴보기
불러오는 중…