DryWetMIDI에는 MIDI 기반의 음악 프로그래밍 기능이 있습니다. MIDI 파일을 만들 수있는 API 만 작성하면 소리가 생성되지 않습니다. 빠른 예 : 여기에 특별한 구문, 단지 .NET API가 없기 때문에 당신이 지금에 JFugue의 대체하지 않습니다 볼 수 있듯이
Pattern pattern = new PatternBuilder()
// Insert a pause of 5 seconds
.StepForward(new MetricTimeSpan(0, 0, 5))
// Insert an eighth C# note of the 4th octave
.Note(OctaveDefinition.Get(4).CSharp, MusicalTimeSpan.Eighth)
// Set default note length to triplet eighth and default octave to 5
.SetNoteLength(MusicalTimeSpan.Eighth.Triplet())
.SetOctave(5)
// Now we can add triplet eighth notes of the 5th octave in a simple way
.Note(NoteName.A)
.Note(NoteName.B)
.Note(NoteName.GSharp)
// Get pattern
.Build();
// Now we can export pattern to MIDI file
MidiFile midiFile = pattern.ToFile(TempoMap.Default);
midiFile.Write("My Great Song.mid");
.
JFugue의 .NET 구현에 대해 잘 모릅니다. (JFugue의 저자로서, 이에 대한 좋은 통찰력이 있습니다.) 당신이 새로운 것을 창조해 내 조언을 원한다면 알려주세요! –
@David JFugue 용 StackOverflow 광고를 보자 마자 NFugue :-) –
@Ben을 찾고 시작했습니다. sn '뉴스를 얻은 후에는 반드시 팝업으로 나타나야합니다. – Shimmy