using { /Fortnite.com/Devices } using { /Verse.org/Simulation } # This is our main device. # It holds our music devices. music_device := class(creative_device): # We add the devices here. # They are like parts of a robot. @editable NoteSequencer : patchwork_note_sequencer_device = patchwork_note_sequencer_device{} @editable NoteProgressor : patchwork_note_progressor_device = patchwork_note_progressor_device{} @editable AudioGenerator : patchwork_audio_generator_device = patchwork_audio_generator_device{} @editable Speaker : patchwork_speaker_device = patchwork_speaker_device{} # This is our function. # It is like a button you press. StartMusic() : void = # First, we turn on the sequencer. # It starts playing notes. NoteSequencer.Enable() # Next, we turn on the progressor. # It changes the chords. NoteProgressor.Enable() # Finally, we turn on the speaker. # You can hear the music! Speaker.Enable() # This runs when the game starts. OnBegin() : void = # We call our function. # The music starts automatically! StartMusic()