Initial commit — WPF guitar note name tutor using FFT frequency detection
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<Window x:Class="GuitarNoteNameTutor.Window"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="Window" Height="300" Width="300" Closing="Window_Closing">
|
||||
<Grid>
|
||||
<Viewbox Margin="4,4,4,41" Stretch="Uniform">
|
||||
<Label Name="label" FontFamily="Lucida Sans Unicode">Guitar Note Trainer
|
||||
<Label.Triggers>
|
||||
<EventTrigger RoutedEvent="Label.Loaded">
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation
|
||||
Storyboard.TargetName="label"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
From="1.0" To="0.0" Duration="0:0:1"
|
||||
AutoReverse="True" RepeatBehavior="Forever" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger>
|
||||
</Label.Triggers>
|
||||
</Label>
|
||||
</Viewbox>
|
||||
<Button Height="23" Margin="12,0,0,12" Name="startButton" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="75" Click="startButton_Click">Start</Button>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="3*"></ColumnDefinition>
|
||||
<ColumnDefinition Width="1*"></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"></RowDefinition>
|
||||
<RowDefinition Height="3*"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Viewbox Grid.Column="1" Grid.Row="0">
|
||||
<Label Name="unknownFreqLabel" Visibility="Hidden" Foreground="Red" >?</Label></Viewbox>
|
||||
</Grid>
|
||||
<Label Height="28" HorizontalAlignment="Right" Margin="0,0,4,7" Name="frequencyLabel" VerticalAlignment="Bottom" Width="53" HorizontalContentAlignment="Right"></Label>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user