Skip to content

Commit

Permalink
fix: add xml docs and readme to packages (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldivis authored Nov 3, 2023
1 parent f730371 commit c111eb9
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
11 changes: 6 additions & 5 deletions src/DarkMusicConcepts.Units/DarkMusicConcepts.Units.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,26 @@

<PropertyGroup>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<!-- Disable the compiler warnings not documented members-->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<PackageId>Divis.DarkMusicConcepts.Units</PackageId>
<Version>0.0.0-dev</Version>
<Authors>michaldivis</Authors>
<Company>Michal Diviš</Company>
<Product>Dark Music Concepts Units</Product>
<Description>Western music units.</Description>
<PackageProjectUrl>https://github.com/michaldivis/dark-music-concepts</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/michaldivis/dark-music-concepts</RepositoryUrl>
<PackageTags>music, music theory, music-library, units</PackageTags>
<NeutralLanguage>en</NeutralLanguage>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\assets\icon.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\..\assets\icon.png" Pack="true" PackagePath="\"/>
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/DarkMusicConcepts.Units/Time.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace DarkMusicConcepts;
/// <summary>
/// Representation of musical time, the (<see cref="Value"/>) is stored in MIDI ticks
/// Representation of musical time, the value is stored in MIDI ticks
/// </summary>
public class Time : Unit<long, Time>
{
Expand Down
1 change: 1 addition & 0 deletions src/DarkMusicConcepts/Chords/Chord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public static Chord Create(Scale scale, Octave octave, ScaleDegree scaleDegree)
/// var chord = Chord.Create(scale, scale.I, Octave.OneLine, ScaleStep.II, ScaleStep.II);</code>
/// </summary>
/// <param name="scale">Scale</param>
/// <param name="rootPitch">Root pitch</param>
/// <param name="octave">Octave to start the root note in</param>
/// <param name="scaleSteps">The steps to find the notes (each step is relative to the previous one)</param>
/// <returns>A chord created from the scale, root pitch and steps</returns>
Expand Down
2 changes: 1 addition & 1 deletion src/DarkMusicConcepts/Chords/ChordProgressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public static class ChordProgressions
{
public static class Pop
{
//// <summary>
/// <summary>
///This chord progression uses the tonic, subdominant, dominant, and subdominant chords in that order. It is a common and versatile progression, and it can be used in many different keys and styles of pop music. For example, in the key of C major, the progression would be C-F-G-F.
///</summary>
public static ChordProgression I_IV_V_IV { get; } = new(ScaleDegree.I, ScaleDegree.IV, ScaleDegree.V, ScaleDegree.IV);
Expand Down
11 changes: 6 additions & 5 deletions src/DarkMusicConcepts/DarkMusicConcepts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,26 @@

<PropertyGroup>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<!-- Disable the compiler warnings not documented members-->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<PackageId>Divis.DarkMusicConcepts</PackageId>
<Version>0.0.0-dev</Version>
<Authors>michaldivis</Authors>
<Company>Michal Diviš</Company>
<Product>Dark Music Concepts</Product>
<Description>A code model for western music concepts.</Description>
<PackageProjectUrl>https://github.com/michaldivis/dark-music-concepts</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/michaldivis/dark-music-concepts</RepositoryUrl>
<PackageTags>music, music theory, music-library</PackageTags>
<NeutralLanguage>en</NeutralLanguage>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\assets\icon.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\..\assets\icon.png" Pack="true" PackagePath="\"/>
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/DarkMusicConcepts/Scales/Scale.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public class Scale
/// <summary>
/// Create a scale from notes
/// </summary>
/// <param name="root">The root pitch</param>
/// <param name="formula">The scale formula</param>
/// <param name="pitches">Notes to create the scale from</param>
/// <returns>A created scale</returns>
/// <exception cref="ArgumentNullException"></exception>
Expand Down

0 comments on commit c111eb9

Please sign in to comment.