C# 클래스 kOS.Sound.NoteValue

상속: kOS.Safe.Serialization.SerializableStructure
파일 보기 프로젝트 열기: KSP-KOS/KOS 1 사용 예제들

공개 메소드들

메소드 설명
Dump ( ) : Dump
LetterToHertz ( string letterString ) : float

A utility function to return the frequency in Hertz given a note expressed as in "letter" form as a string.

LoadDump ( Dump dump ) : void
NoteValue ( ) : System
NoteValue ( float freq, float vol, float keyDownLength, float duration ) : System
NoteValue ( float freq, float endFreq, float vol, float keyDownLength, float duration ) : System
NoteValue ( string letterNote, float vol, float keyDownLength, float duration ) : System
NoteValue ( string letterNote, string endLetterNote, float vol, float keyDownLength, float duration ) : System
ToString ( ) : string

비공개 메소드들

메소드 설명
InitializeSuffixes ( ) : void

메소드 상세

Dump() 공개 메소드

public Dump ( ) : Dump
리턴 Dump

LetterToHertz() 공개 정적인 메소드

A utility function to return the frequency in Hertz given a note expressed as in "letter" form as a string.
public static LetterToHertz ( string letterString ) : float
letterString string The format of the string must be as follows:
/// Starts with a Letter from A to G for the note.
/// Next, optionaly a "#" or "b" for sharp or flat.
/// Next, mandatorily, a digit of 0-8 for the octave.
/// Examples: "C4" = middle C. "C#4" = middle c sharp. "Cb4" = middle c flat. C5 = high C. C3 = low C.
/// octaves follow the weird musical convention of starting at C instead of at A. (i.e. C4 is one higher than B3, not B4)
리턴 float

LoadDump() 공개 메소드

public LoadDump ( Dump dump ) : void
dump Dump
리턴 void

NoteValue() 공개 메소드

public NoteValue ( ) : System
리턴 System

NoteValue() 공개 메소드

public NoteValue ( float freq, float vol, float keyDownLength, float duration ) : System
freq float
vol float
keyDownLength float
duration float
리턴 System

NoteValue() 공개 메소드

public NoteValue ( float freq, float endFreq, float vol, float keyDownLength, float duration ) : System
freq float
endFreq float
vol float
keyDownLength float
duration float
리턴 System

NoteValue() 공개 메소드

public NoteValue ( string letterNote, float vol, float keyDownLength, float duration ) : System
letterNote string
vol float
keyDownLength float
duration float
리턴 System

NoteValue() 공개 메소드

public NoteValue ( string letterNote, string endLetterNote, float vol, float keyDownLength, float duration ) : System
letterNote string
endLetterNote string
vol float
keyDownLength float
duration float
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string