Skip to content

Commit

Permalink
Readme & someothers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vescrity committed May 14, 2024
1 parent ae4822f commit 8e619c2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,21 @@

> 开发中...
轻量的旋律灵感记录器。
轻量的旋律灵感记录器。

## TODO

- [x] midi 导出
- [x] 状态栏提示
- [ ] 录制后编辑


## 构建

```bash
cd workspace
mkdir build
cd build
cmake ..
make
```
2 changes: 1 addition & 1 deletion workspace/Midi_Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// 开始接受第一音轨
Expand Down
2 changes: 1 addition & 1 deletion workspace/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
14 changes: 9 additions & 5 deletions workspace/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,29 @@
<x>0</x>
<y>0</y>
<width>274</width>
<height>155</height>
<height>171</height>
</rect>
</property>
<property name="windowTitle">
<string>MeloNote</string>
<string>MeloNote - Recorder</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<item alignment="Qt::AlignmentFlag::AlignLeft">
<widget class="QLabel" name="label">
<property name="text">
<string>BPM: </string>
</property>
</widget>
</item>
<item alignment="Qt::AlignmentFlag::AlignVCenter">
<widget class="QTextBrowser" name="BPM_Display"/>
<item>
<widget class="QLCDNumber" name="bpmNumber">
<property name="frameShape">
<enum>QFrame::Shape::Panel</enum>
</property>
</widget>
</item>
</layout>
</item>
Expand Down

0 comments on commit 8e619c2

Please sign in to comment.