From 8e619c22c0e0feb817158886233a080b0a014143 Mon Sep 17 00:00:00 2001 From: Vescrity Date: Tue, 14 May 2024 10:21:56 +0800 Subject: [PATCH] Readme & someothers --- README.md | 19 ++++++++++++++++++- workspace/Midi_Writer.cpp | 2 +- workspace/mainwindow.cpp | 2 +- workspace/mainwindow.ui | 14 +++++++++----- 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2a122da..d86b402 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,21 @@ > 开发中... -轻量的旋律灵感记录器。 \ No newline at end of file +轻量的旋律灵感记录器。 + +## TODO + +- [x] midi 导出 +- [x] 状态栏提示 +- [ ] 录制后编辑 + + +## 构建 + +```bash +cd workspace +mkdir build +cd build +cmake .. +make +``` \ No newline at end of file diff --git a/workspace/Midi_Writer.cpp b/workspace/Midi_Writer.cpp index 92600eb..03f7b44 100644 --- a/workspace/Midi_Writer.cpp +++ b/workspace/Midi_Writer.cpp @@ -20,7 +20,7 @@ void Midi_Writer::set_bpm(const long double &bpm) writer.append((microsec_per_beat >> 16) & 0xFF); writer.append((microsec_per_beat >> 8) & 0xFF); writer.append((microsec_per_beat >> 0) & 0xFF); - writer.append(1); //? + writer.append(1); writer.append(0xFF, 0x2F, 0x00); writer.flush(outfile); // 开始接受第一音轨 diff --git a/workspace/mainwindow.cpp b/workspace/mainwindow.cpp index 2edf18f..914c804 100644 --- a/workspace/mainwindow.cpp +++ b/workspace/mainwindow.cpp @@ -32,7 +32,7 @@ void MainWindow::on_start_stop_button_clicked() is_Recording = 0; ui->start_stop_button->setText("Start"); current_list.show(); - ui->BPM_Display->setText(QString::number(current_list.get_bpm())); + ui->bpmNumber->display(current_list.get_bpm()); debug_lable("[Click]"); debug_puts("creating editor window."); Editor *editor = new Editor(this, current_list); diff --git a/workspace/mainwindow.ui b/workspace/mainwindow.ui index d40c0aa..ef868a0 100644 --- a/workspace/mainwindow.ui +++ b/workspace/mainwindow.ui @@ -7,25 +7,29 @@ 0 0 274 - 155 + 171 - MeloNote + MeloNote - Recorder - + BPM: - - + + + + QFrame::Shape::Panel + +