+
+ class PopupListener implements ActionListener {
+ public void actionPerformed(ActionEvent e) {
+ Object source = e.getSource();
+ if (source == popupAdd) {
+ addNote(new MooNote());
+ // int channel, int pitch, int velocity, long timestamp, int duration
+ }
+ }
+}
\ No newline at end of file