public class Orchestra
type Orchestra = class end
Orchestra | Constructor for a new Orchestra. |
Orchestra(ParentDevice) | Constructor for a new Orchestra using the given instruments. |
Orchestra(String) | Constructor for a new Orchestra using the given Chirp file. |
Orchestra(String, ParentDevice) | Constructor for a new Orchestra using the given instruments and chirp file. |
CurrentTime | Gets the current timestamp of the music file in seconds. The timestamp will reset to zero whenever LoadMusic(String) or Stop is called. If IsPlaying returns false, this method can be used to determine if the music is stopped or paused. |
AddInstrument(ParentDevice) | Adds an instrument to the orchestra |
AddInstrument(ParentDevice, UInt16) | Adds an instrument to the given track. |
ClearInstruments | Clears all instruments in the orchestra. |
Close | Closes this Orchestra Instance |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
IsPlaying | Gets whether the current track is actively playing. |
LoadMusic | Loads a chirp file at the specified file path If the Chirp file is inside your "src/main/deploy" directory, it will be automatically deployed to a default directory on the roboRIO when you deploy code.For these files, the name and file extension is sufficient. A Chirp file can be created from a MIDI file using Phoenix Tuner. |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
Pause | Pauses the loaded music file. This saves the current position in the track so it can be resumed later |
Play | Plays the loaded music file. If the player is paused, this will resume the orchestra |
Stop | Stops the loaded music file. This resets the current position in the track to the start |
ToString | Returns a string that represents the current object. (Inherited from Object) |