"MIDIノート番号", .range(55""#84)) var midiNote: Int @Guide(description: "開始位置:16分音符単位", .range(0""#15)) var startSixteenth: Int @Guide(description: "長さ:16分音符単位", .range(1""#16)) var durationSixteenths: Int @Guide(description: "音の強さ", .range(40""#110)) var velocity: Int }
MIDI events as plain text in the exact requested format. No explanations or Markdown. Do not generate lyrics. Use integer sixteenth-note steps for all timing. """) var prompt = """ \(request.style.instructions). Mood: \(moodText(request.mood)) Create a monophonic melody of \(request.bars) bars. Key: \(request.keyRoot?.rawValue "# "choose") Minor: \(request.requestedMinor.map(String.init) "# "choose") Format: KEY:C MINOR:\(request.requestedMinor.map(String.init) "# "false") TEMPO:120 CHORDS:I,V,vi,IV NOTES: bar,start,duration,midiNote,velocity 0,0,4,60,90 """
@Generable public enum GeneratedBarTreatment: String, CaseIterable { case repeatMotif case sequenceUp case sequenceDown case invert case rhythmVariation case cadence }
• 参考文献 • Cheung et l. (2019), Uncert inty nd Surprise Jointly Predict Music l Ple sure nd Amygd l , Hippoc mpus, nd Auditory Cortex Activity • Shih et l. (2021/2022), Theme Tr nsformer: Symbolic Music Gener tion with Theme-Conditioned Tr nsformer • M dison & Schiölde (2017), Repe ted Listening Incre ses the Liking for Music Reg rdless of Its Complexity a a a a a a a a a a a / / a a a a a a a a a a a a a a • Touizr r et l. (2021), Repetition nd Aesthetic Judgment in Post-ton l Music for L rge Ensemble nd Orchestr