⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 melody.h

📁 Nokia手机语音管理程序
💻 H
字号:
#ifndef MELODY_H
#define MELODY_H
#pragma once

#include "Note.h"

class KeySequence;
class MelodyWindow;

// +-------------------------------------------------------------
// |
// | Class           : Melody
// | Description     : 
// | 
// +-------------------------------------------------------------
class Melody  : public CObject
{
  DECLARE_SERIAL(Melody)

public:
	Melody();
	virtual ~Melody();

  void Reset();

  void SetTitle( const char* title );
  const CString&  GetTitle() const;

  void SetTempo( int tempo );
  int GetTempo() const;

  virtual void Serialize(CArchive &ar);

  CString GetString() const;
  bool ParseString(MelodyWindow& melodyWindow);
  void ParseKeySequence(const KeySequence& keySequence);

  int GetNoteCount() const;

  const NoteSequence& GetNotes() const;

  void OctaveDown();
  void OctaveUp();
  void SemitoneDown();
  void SemitoneUp();

  bool CanOctaveUp() const;
  bool CanOctaveDown() const;
  bool CanSemitoneUp() const;
  bool CanSemitoneDown() const;


private:
  CString       title_;
  NoteSequence  notes_;
  int           tempo_;

  static DWORD PlayMIDIFile(HWND hWndNotify, LPSTR lpszMIDIFileName);
};

#endif //MELODY_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -