ladybird/Applications/Piano/CMakeLists.txt
William McPherson ee52572ca1 Piano: Allow multiple tracks internally
This commit adds multi-track functionality without exposing it to the
user.

All I really did was rename AudioEngine to Track and allow more than one
Track in TrackManager. A lot of the changes are just changing widgets to
take a TrackManager and use current_track().

The TrackManager creates Tracks and gives them a read-only reference to
the global time value. When the TrackManager wants to fill a sample in
the buffer (in fill_buffer()), it calls fill_sample() on each Track.

The delay code is slightly different - a Track will fill its
m_delay_buffer with the sample it just created rather than the most
recent sample in the buffer (which used to be the same thing).

TrackManager manages the current octave.

Other than those few things, this is a pretty basic separation of
concerns.
2020-06-18 16:42:37 +02:00

14 lines
246 B
CMake

set(SOURCES
Track.cpp
TrackManager.cpp
KeysWidget.cpp
KnobsWidget.cpp
main.cpp
MainWidget.cpp
RollWidget.cpp
SamplerWidget.cpp
WaveWidget.cpp
)
serenity_bin(Piano)
target_link_libraries(Piano LibAudio LibGUI)