70 for (
auto instrument : instruments) {
83 Orchestra(std::span<hardware::traits::CommonDevice* const> instruments,
char const *filepath) :
Orchestra{}
85 for (
auto instrument : instruments) {
Orchestra is used to play music through devices.
Definition Orchestra.hpp:41
double GetCurrentTime() const
Gets the current timestamp of the music file.
Orchestra(std::span< hardware::traits::CommonDevice *const > instruments)
Constructor for a new Orchestra using the given Chirp file.
Definition Orchestra.hpp:68
bool IsPlaying() const
Gets whether the current track is actively playing.
ctre::phoenix::StatusCode LoadMusic(char const *filepath)
Loads a Chirp file at the specified file path.
ctre::phoenix::StatusCode Stop()
Stops the loaded music file.
ctre::phoenix::StatusCode Pause()
Pauses the loaded music file.
ctre::phoenix::StatusCode AddInstrument(hardware::traits::CommonDevice const &instrument)
Adds an instrument to the orchestra.
Orchestra()
Constructor for a new Orchestra.
ctre::phoenix::StatusCode Play()
Plays the loaded music file.
Orchestra(std::span< hardware::traits::CommonDevice *const > instruments, char const *filepath)
Constructor for a new Orchestra using the given Chirp file.
Definition Orchestra.hpp:83
ctre::phoenix::StatusCode ClearInstruments()
Clears all instruments in the orchestra.
Orchestra(char const *filepath)
Constructor for a new Orchestra using the given Chirp file.
Definition Orchestra.hpp:58
ctre::phoenix::StatusCode AddInstrument(hardware::traits::CommonDevice const &instrument, uint16_t trackNumber)
Adds an instrument to the orchestra on the given track.
Contains everything common between Phoenix 6 devices.
Definition CommonDevice.hpp:23
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition motor_constants.h:14