MidiSwing.h 779 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef MIDISWING_H
  2. #define MIDISWING_H
  3. #include <QObject>
  4. #include "Groove.h"
  5. #include "lmms_basics.h"
  6. #include "MidiTime.h"
  7. #include "Note.h"
  8. #include "Pattern.h"
  9. /*
  10. * A swing groove that adjusts by whole ticks.
  11. * Someone might like it, also might be able to save the output to a midi file later.
  12. */
  13. class MidiSwing : public Groove
  14. {
  15. Q_OBJECT
  16. public:
  17. MidiSwing(QObject * parent = NULL);
  18. ~MidiSwing();
  19. // TODO why declaring this should it not come from super class?
  20. int isInTick(MidiTime * cur_start, const fpp_t frames, const f_cnt_t offset, Note * n, Pattern * p);
  21. int isInTick(MidiTime * curStart, Note * n, Pattern * p);
  22. inline virtual QString nodeName() const
  23. {
  24. return "midi";
  25. }
  26. QWidget * instantiateView(QWidget * parent);
  27. };
  28. #endif // MIDISWING_H