-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
20 lines (19 loc) · 915 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Project_Melody.Instruments;
using Project_Melody;
using static Project_Melody.MusicBase;
class Program
{
static void Main()
{
try
{
MidiGenerator.GenerateMidiFile("chord.mid", BasicNote.CSharp_DFlat, ScaleType.Shang, InstrumentFactory.GetInstrument("6 String Guitar"), 120, "chord", 4); // Increased number of notes to 10
MidiGenerator.GenerateMidiFile("arpeggio.mid", BasicNote.CSharp_DFlat, ScaleType.Shang, InstrumentFactory.GetInstrument("6 String Guitar"), 120, "arpeggio", 4); // Increased number of notes to 10
MidiGenerator.GenerateMidiFile("melody.mid", BasicNote.CSharp_DFlat, ScaleType.Shang, InstrumentFactory.GetInstrument("6 String Guitar"), 120, "melody", 35); // Increased number of notes to 10
}
catch (Exception ex)
{
Console.WriteLine($"An error occurred: {ex.Message}");
}
}
}