You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have song.done() and song.write(). When done() is called we are saying that this song is done and anything that we need to do to finish up constructing the song can now be done. The write() method makes the build directory and outputs the assembler for the sound engine and the song. The reason it needs to be two different calls is that it is possible for you to produce multiple songs. This makes the api confusing because you are calling song.write() not songs.write().
A couple ideas:
make a Songs object that is a collection of songs and put the write() method there
do not allow multiple songs, and have a single song restraint per file/program
The text was updated successfully, but these errors were encountered:
We have
song.done()
andsong.write()
. Whendone()
is called we are saying that this song is done and anything that we need to do to finish up constructing the song can now be done. Thewrite()
method makes the build directory and outputs the assembler for the sound engine and the song. The reason it needs to be two different calls is that it is possible for you to produce multiple songs. This makes the api confusing because you are callingsong.write()
notsongs.write()
.A couple ideas:
Songs
object that is a collection of songs and put thewrite()
method thereThe text was updated successfully, but these errors were encountered: