1 package com.jamesbryangraves.bob.midi; 2 3 import java.util.List; 4 5 import javax.sound.midi.InvalidMidiDataException; 6 7 import com.jamesbryangraves.bob.music.MusicContext; 8 9 public class BobMidiSequence { 10 11 private List<BobMidiTrack> tracks; 12 private MusicContext musicContext; 13 14 public BobMidiSequence(MusicContext musicContext) 15 throws InvalidMidiDataException { 16 this.musicContext = musicContext; 17 } 18 19 public void setTracks(List<BobMidiTrack> tracks) { 20 this.tracks = tracks; 21 } 22 23 public List<BobMidiTrack> getTracks() { 24 return tracks; 25 } 26 27 public BobMidiTrack getTrack(int index) { 28 return tracks.get(index); 29 } 30 31 public MusicContext getMusicContext() { 32 return musicContext; 33 } 34 35 public void setMusicContext(MusicContext musicContext) { 36 this.musicContext = musicContext; 37 } 38 }