Skip to content

Commit

Permalink
refactor: #1 keeping codes clean.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroxpepe committed Oct 14, 2022
1 parent 2720865 commit 8931046
Show file tree
Hide file tree
Showing 30 changed files with 30 additions and 95 deletions.
4 changes: 1 addition & 3 deletions Meowziq.Midi/Midi/Manager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ namespace Meowziq.Midi {
/// <summary>
/// midi class using Sanford.Multimedia.Midi
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Manager {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq.Midi/Midi/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ namespace Meowziq.Midi {
/// <fixme>
/// relies on abstraction instead of ChannelMessage.
/// </fixme>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class Message {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq.Midi/Midi/MessageFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ namespace Meowziq.Midi {
/// <note>
/// static class cannot implement interface.<br/>
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class MessageFactory {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq.Midi/Midi/Multi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ namespace Meowziq.Midi {
/// <summary>
/// class that holds Sanford.Multimedia.Midi.Track objects for smf output.
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class Multi {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq.View/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ namespace Meowziq.View {
/// <todo>
/// exclusive control.
/// </todo>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public partial class FormMain : Form {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq.View/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ namespace Meowziq.View {
/// <summary>
/// the application.
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
static class Program {
/// <summary>
/// the main entry point of the application.
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Core/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ namespace Meowziq.Core {
/// <note>
/// + called from Meowziq.Core.Phrase.onBuild(). <br/>
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Generator {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Core/IMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ namespace Meowziq {
/// <summary>
/// interface of Message.
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public interface IMessage<T1, T2> {

/// <summary>
Expand Down
9 changes: 1 addition & 8 deletions Meowziq/Core/Mixer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ namespace Meowziq.Core {
/// + Mixer に設定がある場合は楽器は Mixer の設定を使用する
/// + ただし Mixer 経由で値を Message に適用した方が好ましい
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class Mixer<T> {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -218,11 +216,6 @@ public class Fader {

bool _mute = false;

///////////////////////////////////////////////////////////////////////////////////////////
// private Constructor

private Fader() { }

///////////////////////////////////////////////////////////////////////////////////////////
// Properties [noun, adjective]

Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Core/Note.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ namespace Meowziq.Core {
/// <note>
/// + ChannelMessage に変換されます
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Note {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Core/Pattern.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ namespace Meowziq.Core {
/// <note>
/// + Meas オブジェクトのリストを管理します
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Pattern {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Core/Phrase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ namespace Meowziq.Core {
/// + キーと旋法は外部から与えられる
/// + Note オブジェクトのリストを管理する
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Phrase {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Core/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ namespace Meowziq.Core {
/// + Phrase オブジェクトのリストを管理
/// + Phrase オブジェクトを適切なタイミングで Build します
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Player<T> {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Core/Song.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ namespace Meowziq.Core {
/// + Pattern のオブジェクトのリストを管理する
/// + フリジアンやロクリアンの調性感というより上5度転調、下4度転調の概念を取り入れる
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Song {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Core/State.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ namespace Meowziq.Core {
/// + 曲がどのような状況で演奏されているかを表す情報を保持する
/// + 設定されて読み出させるだけこれを状態を変更する目的で使わないで下さい
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class State {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ namespace Meowziq {
/// <summary>
/// enumeration type of environment parameters.
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public enum Env {
MeasMax = 12,
}
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ namespace Meowziq {
/// <summary>
/// common extension methods.
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class Extensions {
/// <summary>
/// converts a character to a number.
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/IO/Cache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ namespace Meowziq.IO {
/// <summary>
/// キャッシュ クラス
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class Cache {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ namespace Meowziq {
/// <note>
/// used in the Meowziq namespace.
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Map<K, V> : Dictionary<K, V> {
}

Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Loader/MixerLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ namespace Meowziq.Loader {
/// <summary>
/// loader class for mixer.
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class MixerLoader<T> {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Loader/PatternLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ namespace Meowziq.Loader {
/// <summary>
/// loader class for pattern.
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class PatternLoader {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Loader/PhraseLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ namespace Meowziq.Loader {
/// <summary>
/// loader class for phrase.
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class PhraseLoader {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Loader/PlayerLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ namespace Meowziq.Loader {
/// <summary>
/// loader class for player.
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class PlayerLoader<T> {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Loader/SongLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ namespace Meowziq.Loader {
/// <summary>
/// loader class for song.
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class SongLoader {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ namespace Meowziq {
/// <note>
/// use NLog.
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class Log {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ namespace Meowziq {
/// <memo>
/// do not define variables with var here.
/// </memo>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Utils {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Value/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ namespace Meowziq.Value {
/// <note>
/// used from the Loader class, so it must be made public.
/// </note>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Data {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Value/Inheritor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ namespace Meowziq.Value {
/// <summary>
/// Phrase のデータを継承する為のクラス
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class Inheritor {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Value/Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ namespace Meowziq.Value {
/// <memo>
/// whether it can be an immutable object.
/// </memo>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public class Param {

///////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions Meowziq/Value/Validater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ namespace Meowziq.Value {
/// <summary>
/// 入力値バリデーション クラス
/// </summary>
/// <author>
/// h.adachi (STUDIO MeowToon)
/// </author>
/// <author>h.adachi (STUDIO MeowToon)</author>
public static class Validater {
/// <summary>
/// TODO: 使用可能な文字の判定
Expand Down

0 comments on commit 8931046

Please sign in to comment.